diff --git a/test/net/test_mobilenet+ssd.cpp b/test/net/test_mobilenet+ssd.cpp index c7ba847f7ef0968095da0a1e2369a75d1deeea73..0bb6fea0e7bb5bd8d3154bd1a6ea21e42582aaa4 100644 --- a/test/net/test_mobilenet+ssd.cpp +++ b/test/net/test_mobilenet+ssd.cpp @@ -33,9 +33,9 @@ int main() { GetInput(g_hand, &input, dims); // 预热一次 - for (int i = 0; i < 10; ++i) { - auto output = paddle_mobile.Predict(input, dims); - } + for (int i = 0; i < 10; ++i) { + auto output = paddle_mobile.Predict(input, dims); + } auto time3 = time(); for (int i = 0; i < 10; ++i) { auto output = paddle_mobile.Predict(input, dims); diff --git a/test/net/test_mobilenet.cpp b/test/net/test_mobilenet.cpp index 3fd9ee320b305dfbe16ee8060039e12db8ca5d79..fe7b431caf07ae260e60dbe2fdc8765eecd43f2f 100644 --- a/test/net/test_mobilenet.cpp +++ b/test/net/test_mobilenet.cpp @@ -39,9 +39,9 @@ int main() { std::cout << " Max element is " << *biggest << " at position " << std::distance(std::begin(vec_result), biggest) << std::endl; - for (int i = 0; i < 10; ++i) { - auto vec_result = paddle_mobile.Predict(input, dims); - } + for (int i = 0; i < 10; ++i) { + auto vec_result = paddle_mobile.Predict(input, dims); + } auto time3 = time(); for (int i = 0; i < 10; ++i) { auto vec_result = paddle_mobile.Predict(input, dims); diff --git a/test/net/test_squeezenet.cpp b/test/net/test_squeezenet.cpp index 7a5022b3566e2f2dff771a196c8195737988024c..3ed0299d9df69bb9c77e078f2f42ee90f0667b1e 100644 --- a/test/net/test_squeezenet.cpp +++ b/test/net/test_squeezenet.cpp @@ -33,9 +33,9 @@ int main() { std::vector input(input_tensor.data(), input_tensor.data() + input_tensor.numel()); // 预热一次 - for (int i = 0; i < 10; ++i) { - paddle_mobile.Predict(input, dims); - } + for (int i = 0; i < 10; ++i) { + paddle_mobile.Predict(input, dims); + } auto time3 = time(); for (int i = 0; i < 10; ++i) { paddle_mobile.Predict(input, dims); diff --git a/test/net/test_yolo.cpp b/test/net/test_yolo.cpp index 15bb5ea3217acc40906991ba4c3ba3c65383e0ff..bb566d8b8e4907f8b979222d36f421914cca50bf 100644 --- a/test/net/test_yolo.cpp +++ b/test/net/test_yolo.cpp @@ -34,9 +34,9 @@ int main() { std::vector input(input_tensor.data(), input_tensor.data() + input_tensor.numel()); // 预热一次 - for (int i = 0; i < 10; ++i) { - paddle_mobile.Predict(input, dims); - } + for (int i = 0; i < 10; ++i) { + paddle_mobile.Predict(input, dims); + } auto time3 = time(); for (int i = 0; i < 10; ++i) { paddle_mobile.Predict(input, dims);