Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bugs in "test_custom_plugin_creater" unit test #46075

Merged
merged 1 commit into from
Sep 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions paddle/fluid/inference/tensorrt/convert/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,7 @@ nv_test(
nv_test(
test_custom_plugin_creater
SRCS test_custom_plugin_creater.cc
DEPS paddle_framework
${GLOB_OPERATOR_DEPS}
tensorrt_engine
tensorrt_plugin
tensorrt_converter
op_meta_info
custom_operator)
DEPS paddle_framework tensorrt_converter op_meta_info custom_operator)

if(WITH_ONNXRUNTIME AND WIN32)
# Copy onnxruntime for some c++ test in Windows, since the test will
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ TEST(CustomPluginCreater, StaticShapePlugin) {

framework::Scope scope;

tensorrt::plugin::TrtPluginRegistry::Global()->RegistToTrt();

auto &custom_plugin_tell = OpTeller::Global().GetCustomPluginTeller();

framework::OpDesc custom_op(*op_desc, nullptr);
Expand Down Expand Up @@ -186,6 +188,8 @@ TEST(CustomPluginCreater, DynamicShapePlugin) {

framework::Scope scope;

tensorrt::plugin::TrtPluginRegistry::Global()->RegistToTrt();

auto &custom_plugin_tell = OpTeller::Global().GetCustomPluginTeller();

framework::OpDesc custom_op(*op_desc, nullptr);
Expand Down