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

add inference api:exp_disable_tensorrt_dynamic_shape_ops #62352

Merged
merged 10 commits into from
Mar 6, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
lll
  • Loading branch information
lizexu123 committed Mar 4, 2024
commit 687f3b38d77bb1a81c62a43b6c1ef1568cf8d1d0
3 changes: 1 addition & 2 deletions test/ir/inference/test_forbid_dynamic_op_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ def init_predictor(self):
config = Config(
self.model_prefix + '.pdmodel', self.model_prefix + '.pdiparams'
)
config.switch_ir_debug(True)
config.enable_use_gpu(256, 0, PrecisionType.Half)
config.enable_tensorrt_engine(
workspace_size=1 << 30,
Expand All @@ -107,7 +106,7 @@ def init_predictor(self):
)
config.enable_memory_optim()
config.exp_disable_dynamic_tensorrt_ops(True)
# config.disable_glog_info()
config.disable_glog_info()
config.set_tensorrt_optimization_level(0)
self.assertEqual(config.tensorrt_optimization_level(), 0)
predictor = create_predictor(config)
Expand Down