diff --git a/tools/infer/utility.py b/tools/infer/utility.py index 5177236a3332a7caa3ee47cbbea53cb5557fc005..793ff28a22dddffa937dc3cb042c12123cbc90fb 100644 --- a/tools/infer/utility.py +++ b/tools/infer/utility.py @@ -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)