From d1de7db09411a79cc036d0ba56ba60bfc5834252 Mon Sep 17 00:00:00 2001 From: qnqinan Date: Wed, 21 Nov 2018 18:36:40 +0800 Subject: [PATCH] update --- test/fpga/test_densebox_combine.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/fpga/test_densebox_combine.cpp b/test/fpga/test_densebox_combine.cpp index 2d25270a85..056bbe52d8 100644 --- a/test/fpga/test_densebox_combine.cpp +++ b/test/fpga/test_densebox_combine.cpp @@ -27,19 +27,19 @@ static const char *g_densebox_combine = "../models/densebox"; int main() { paddle_mobile::fpga::open_device(); paddle_mobile::PaddleMobile paddle_mobile; - //paddle_mobile.SetThreadNum(4); + // paddle_mobile.SetThreadNum(4); if (paddle_mobile.Load(std::string(g_densebox_combine) + "/model", std::string(g_densebox_combine) + "/params", true)) { - //std::vector input; - //std::vector dims{1, 3, 512, 1024}; - //GetInput(g_test_image_1x3x224x224_banana, &input, dims); + // std::vector input; + // std::vector dims{1, 3, 512, 1024}; + // GetInput(g_test_image_1x3x224x224_banana, &input, dims); - //auto vec_result = paddle_mobile.Predict(input, dims); + // auto vec_result = paddle_mobile.Predict(input, dims); Tensor input_tensor; SetupTensor(&input_tensor, {1, 3, 512, 1024}, static_cast(0), static_cast(1)); - //readStream(g_image_src_float, + // readStream(g_image_src_float, // input_tensor.mutable_data({1, 3, 224, 224})); paddle_mobile.FeedData(input_tensor); paddle_mobile.Predict_To(-1); -- GitLab