提交 a8c61733 编写于 作者: L LDOUBLEV

add txt

上级 98811562
......@@ -228,7 +228,7 @@ def create_predictor(args, mode, logger):
# collect shape
model_name = os.path.basename(model_dir[:-1]) if model_dir.endswith("/") else os.path.basename(model_dir)
trt_shape_f = f"{mode}_{model_name}"
trt_shape_f = f"{mode}_{model_name}.txt"
if trt_shape_f is not None:
if not os.path.exists(trt_shape_f):
config.collect_shape_range_info(trt_shape_f)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册