未验证 提交 29efbdb6 编写于 作者: Y Yuanle Liu 提交者: GitHub

Fix error of test_save_optimized_model_pass unittest (#56522)

上级 b9330fe1
......@@ -122,9 +122,9 @@ class TestSaveOptimizedModelPassWithTRT(
use_calib_mode=False,
)
config.set_trt_dynamic_shape_info(
{"x": [1, 3, 224, 224], "flatten_1.tmp_0": [1, 9216]},
{"x": [1, 3, 224, 224], "flatten_1.tmp_0": [1, 9216]},
{"x": [1, 3, 224, 224], "flatten_1.tmp_0": [1, 9216]},
{"x": [1, 3, 224, 224], "flatten_0.tmp_0": [1, 9216]},
{"x": [1, 3, 224, 224], "flatten_0.tmp_0": [1, 9216]},
{"x": [1, 3, 224, 224], "flatten_0.tmp_0": [1, 9216]},
)
config.exp_disable_tensorrt_ops(["flatten_contiguous_range"])
config.enable_memory_optim()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册