Skip to content

Commit 822a6fa

Browse files
committed
fix graph_net/apply_sample_pass.py
1 parent 8f4d482 commit 822a6fa

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

graph_net/apply_sample_pass.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,11 @@ def handle_model_path_list_in_current_process(handler, args):
5858

5959
def handle_model_path_list_in_subprocess(args):
6060
for model_path in _get_model_path_list(args):
61-
# 构造新版参数格式的命令,方便 bash -x 调试
6261
cmd = (
6362
f"{sys.executable} -m graph_net.apply_sample_pass "
64-
f"--file-path {args.sample_pass_file_path} "
65-
f"--class-name {args.sample_pass_class_name} "
66-
f"--sample_pass_config '{args.sample_pass_config}' "
63+
f"--sample-pass-file-path {args.sample_pass_file_path} "
64+
f"--sample-pass-class-name {args.sample_pass_class_name} "
65+
f"--sample-pass-config '{args.sample_pass_config}' "
6766
f"--model-path {model_path}"
6867
)
6968
try:

0 commit comments

Comments
 (0)