From 8205860e9571141d1a030df27461ca466c61da7d Mon Sep 17 00:00:00 2001 From: zhangwen31 Date: Sun, 27 Sep 2020 01:39:12 +0000 Subject: [PATCH] fix: remove unused variable test=develop --- lite/tests/kernels/pow_compute_test.cc | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/lite/tests/kernels/pow_compute_test.cc b/lite/tests/kernels/pow_compute_test.cc index f7b0ba7b56..cb08a25cf2 100644 --- a/lite/tests/kernels/pow_compute_test.cc +++ b/lite/tests/kernels/pow_compute_test.cc @@ -65,15 +65,11 @@ class PowComputeTester : public arena::TestCase { }; void test_pow(Place place) { - for (float scale : {0.923, 2., 1.2}) { - for (float shift : {1., 0., 1.2331}) { - for (float factor : {1., 1.2, 1.6}) { - std::unique_ptr tester( - new PowComputeTester(place, "def", factor)); - arena::Arena arena(std::move(tester), place, 2e-4); - arena.TestPrecision(); - } - } + for (float factor : {1., 1.2, 1.6}) { + std::unique_ptr tester( + new PowComputeTester(place, "def", factor)); + arena::Arena arena(std::move(tester), place, 2e-4); + arena.TestPrecision(); } } -- GitLab