提交 d1519c74 编写于 作者: 赵奇可

fix code style

上级 536a5868
...@@ -53,7 +53,7 @@ TEST_F(ResizeBicubicTest, CPUResizeBicubicWOAlignCorners) { ...@@ -53,7 +53,7 @@ TEST_F(ResizeBicubicTest, CPUResizeBicubicWOAlignCorners) {
ExpectTensorNear<float>(*expected, *net.GetOutput("Output"), 1e-5); ExpectTensorNear<float>(*expected, *net.GetOutput("Output"), 1e-5);
} }
TEST_F(ResizeBicubicTest, CPUResizeBicubicWOAlignCorners1) { TEST_F(ResizeBicubicTest, CPUResizeBicubicWOAlignCornersFloat) {
testing::internal::LogToStderr(); testing::internal::LogToStderr();
// Construct graph // Construct graph
OpsTestNet net; OpsTestNet net;
...@@ -121,13 +121,13 @@ void TestRandomResizeBicubic() { ...@@ -121,13 +121,13 @@ void TestRandomResizeBicubic() {
testing::internal::LogToStderr(); testing::internal::LogToStderr();
static unsigned int seed = time(NULL); static unsigned int seed = time(NULL);
for (int round = 0; round < 10; ++round) { for (int round = 0; round < 10; ++round) {
int batch = 1 + rand_r(&seed) % 5; int batch = 1 + rand_r(&seed) % 5;
int channels = 1 + rand_r(&seed) % 100; int channels = 1 + rand_r(&seed) % 100;
int height = 1 + rand_r(&seed) % 100; int height = 1 + rand_r(&seed) % 100;
int width = 1 + rand_r(&seed) % 100; int width = 1 + rand_r(&seed) % 100;
int in_height = 1 + rand_r(&seed) % 100; int in_height = 1 + rand_r(&seed) % 100;
int in_width = 1 + rand_r(&seed) % 100; int in_width = 1 + rand_r(&seed) % 100;
int align_corners = rand_r(&seed) % 1; int align_corners = rand_r(&seed) % 1;
// Construct graph // Construct graph
OpsTestNet net; OpsTestNet net;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册