Skip to content

Commit bca3ea4

Browse files
committed
[Script] Do not remove tune.log and fix model name parsing mistake.
1 parent 2a0aede commit bca3ea4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tools/run_pipeline.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,12 @@ def compile_kernels():
6262
return
6363

6464
# Clear previous tune.log
65-
command = [
66-
'rm',
67-
os.path.join("tuned", "preprocessor", "tune.log"),
68-
os.path.join("tuned", "qgemm_lut", "tune.log"),
69-
]
70-
run_command(command, deploy_dir, ignore_errors=True)
65+
# command = [
66+
# 'rm',
67+
# os.path.join("tuned", "preprocessor", "tune.log"),
68+
# os.path.join("tuned", "qgemm_lut", "tune.log"),
69+
# ]
70+
# run_command(command, deploy_dir, ignore_errors=True)
7171

7272
qargs = get_quant_args()
7373
command = [
@@ -138,7 +138,7 @@ def install_t_mac():
138138

139139

140140
def convert_models():
141-
model_dir = FLAGS.model_dir
141+
model_dir = str(FLAGS.model_dir).rstrip('\\').rstrip('/')
142142
if not os.path.exists(model_dir):
143143
raise FileNotFoundError(model_dir)
144144

0 commit comments

Comments
 (0)