From 6206b9bc712c7de974277d1f0c4589fb55d97e57 Mon Sep 17 00:00:00 2001 From: Pei Yang Date: Tue, 29 Dec 2020 15:02:18 +0800 Subject: [PATCH] fix ut:trt_resnext_test, trt_quant_int8_yolov3_r50_test, test_trt_dynamic_shape_ernie, test_trt_dynamic_shape_ernie_fp16_ser_deser, trt_cascade_rcnn_test (#29977) --- paddle/fluid/inference/tests/api/CMakeLists.txt | 12 ++++++------ .../tests/api/trt_dynamic_shape_ernie_test.cc | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/paddle/fluid/inference/tests/api/CMakeLists.txt b/paddle/fluid/inference/tests/api/CMakeLists.txt index 56b222c75c..52e711444d 100644 --- a/paddle/fluid/inference/tests/api/CMakeLists.txt +++ b/paddle/fluid/inference/tests/api/CMakeLists.txt @@ -621,13 +621,13 @@ if(WITH_GPU) endif() if(WITH_GPU AND TENSORRT_FOUND) - set_tests_properties(trt_resnext_test PROPERTIES TIMEOUT 120) - set_tests_properties(trt_quant_int8_yolov3_r50_test PROPERTIES TIMEOUT 120) + set_tests_properties(trt_resnext_test PROPERTIES TIMEOUT 150) + set_tests_properties(trt_quant_int8_yolov3_r50_test PROPERTIES TIMEOUT 150) set_tests_properties(trt_resnet50_test PROPERTIES TIMEOUT 120) - set_tests_properties(trt_cascade_rcnn_test PROPERTIES TIMEOUT 120) - set_tests_properties(test_trt_dynamic_shape_ernie_ser_deser PROPERTIES TIMEOUT 120) - set_tests_properties(test_trt_dynamic_shape_ernie_fp16_ser_deser PROPERTIES TIMEOUT 120) - set_tests_properties(test_trt_dynamic_shape_ernie PROPERTIES TIMEOUT 120) + set_tests_properties(trt_cascade_rcnn_test PROPERTIES TIMEOUT 150) + set_tests_properties(test_trt_dynamic_shape_ernie_ser_deser PROPERTIES TIMEOUT 150) + set_tests_properties(test_trt_dynamic_shape_ernie_fp16_ser_deser PROPERTIES TIMEOUT 150) + set_tests_properties(test_trt_dynamic_shape_ernie PROPERTIES TIMEOUT 150) endif() if(WITH_MKLDNN) diff --git a/paddle/fluid/inference/tests/api/trt_dynamic_shape_ernie_test.cc b/paddle/fluid/inference/tests/api/trt_dynamic_shape_ernie_test.cc index 6bf34484e5..875175d9e8 100644 --- a/paddle/fluid/inference/tests/api/trt_dynamic_shape_ernie_test.cc +++ b/paddle/fluid/inference/tests/api/trt_dynamic_shape_ernie_test.cc @@ -139,7 +139,7 @@ TEST(AnalysisPredictor, no_fp16) { TEST(AnalysisPredictor, fp16) { #ifdef TRT_PLUGIN_FP16_AVALIABLE std::vector result = {0.598, 0.219, 0.182}; - trt_ernie(true, result, 3e-3); + trt_ernie(true, result, 4e-3); #endif } -- GitLab