-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Inference]Open TensorRT unittest (#67638)
* open tensorrt unittest * Revert "【Error Message No. 11】Update error massage of paddle\fluid\inference\tensorrt\convert\test_custom_op_plugin.h (#67429)" This reverts commit 6d660ac. * fix bug * open trt download * fix docker file * fix timeout * fix py3 * install tensorrt local
- Loading branch information
1 parent
c1d7f52
commit c781cd2
Showing
14 changed files
with
297 additions
and
406 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
# Open after the unilateral issue is resolved | ||
# file( | ||
# GLOB TEST_OPS | ||
# RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" | ||
# "test_*.py") | ||
# string(REPLACE ".py" "" TEST_OPS "${TEST_OPS}") | ||
if(NOT WIN32 AND TENSORRT_FOUND) | ||
file( | ||
GLOB TEST_OPS | ||
RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" | ||
"test_*.py") | ||
string(REPLACE ".py" "" TEST_OPS "${TEST_OPS}") | ||
|
||
# foreach(TEST_OP ${TEST_OPS}) | ||
# py_test_modules(${TEST_OP} MODULES ${TEST_OP}) | ||
# endforeach() | ||
foreach(TEST_OP ${TEST_OPS}) | ||
py_test_modules(${TEST_OP} MODULES ${TEST_OP}) | ||
endforeach() | ||
set_tests_properties(test_converter_model_bert PROPERTIES TIMEOUT "500") | ||
set_tests_properties(test_converter_model_dummy PROPERTIES TIMEOUT "500") | ||
set_tests_properties(test_converter_model_resnet50 PROPERTIES TIMEOUT "500") | ||
endif() |
Oops, something went wrong.