From c218eee1e003dbf4bafba7b83424d640cd84fe8c Mon Sep 17 00:00:00 2001 From: nihuini Date: Fri, 10 Jul 2020 19:12:03 +0800 Subject: [PATCH] fix binaryop test ooops --- tests/test_binaryop.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_binaryop.cpp b/tests/test_binaryop.cpp index 71d477075..7e9f20ce7 100644 --- a/tests/test_binaryop.cpp +++ b/tests/test_binaryop.cpp @@ -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 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 weights(0);