From d1519c74741d774d8e7888a5d00afb07d5997ec1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=A5=87=E5=8F=AF?= Date: Fri, 24 Aug 2018 13:48:34 +0800 Subject: [PATCH] fix code style --- mace/ops/resize_bicubic_test.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/mace/ops/resize_bicubic_test.cc b/mace/ops/resize_bicubic_test.cc index a834d98f..ada126e6 100644 --- a/mace/ops/resize_bicubic_test.cc +++ b/mace/ops/resize_bicubic_test.cc @@ -53,7 +53,7 @@ TEST_F(ResizeBicubicTest, CPUResizeBicubicWOAlignCorners) { ExpectTensorNear(*expected, *net.GetOutput("Output"), 1e-5); } -TEST_F(ResizeBicubicTest, CPUResizeBicubicWOAlignCorners1) { +TEST_F(ResizeBicubicTest, CPUResizeBicubicWOAlignCornersFloat) { testing::internal::LogToStderr(); // Construct graph OpsTestNet net; @@ -121,13 +121,13 @@ void TestRandomResizeBicubic() { testing::internal::LogToStderr(); static unsigned int seed = time(NULL); for (int round = 0; round < 10; ++round) { - int batch = 1 + rand_r(&seed) % 5; - int channels = 1 + rand_r(&seed) % 100; - int height = 1 + rand_r(&seed) % 100; - int width = 1 + rand_r(&seed) % 100; - int in_height = 1 + rand_r(&seed) % 100; - int in_width = 1 + rand_r(&seed) % 100; - int align_corners = rand_r(&seed) % 1; + int batch = 1 + rand_r(&seed) % 5; + int channels = 1 + rand_r(&seed) % 100; + int height = 1 + rand_r(&seed) % 100; + int width = 1 + rand_r(&seed) % 100; + int in_height = 1 + rand_r(&seed) % 100; + int in_width = 1 + rand_r(&seed) % 100; + int align_corners = rand_r(&seed) % 1; // Construct graph OpsTestNet net; -- GitLab