Browse Source

fix binaryop test ooops

tags/20200727
nihuini 6 years ago
parent
commit
c218eee1e0
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      tests/test_binaryop.cpp

+ 2
- 2
tests/test_binaryop.cpp View File

@@ -33,7 +33,7 @@ static int test_binaryop(const ncnn::Mat& _a, const ncnn::Mat& _b)
ncnn::ParamDict pd;
pd.set(0, op_type);
pd.set(1, 0); // with_scalar
pd.set(11, 0.f); // b
pd.set(2, 0.f); // b

std::vector<ncnn::Mat> weights(0);

@@ -68,7 +68,7 @@ static int test_binaryop(const ncnn::Mat& _a, float b)
ncnn::ParamDict pd;
pd.set(0, op_type);
pd.set(1, 1); // with_scalar
pd.set(11, b); // b
pd.set(2, b); // b

std::vector<ncnn::Mat> weights(0);



Loading…
Cancel
Save