Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

Commit

Permalink
Fix batch size change issue
Browse files Browse the repository at this point in the history
  • Loading branch information
manofmountain committed Jan 12, 2018
1 parent 187c913 commit c29e6fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/run_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def obtain_model_file(self, model):
for line in src_f.readlines():
if re.match(batch_size_pattern, line) and cnt < batch_size_cnt:
#change batch size
re.sub("[0-9]+", new_batch_size, line, count = 1)
line = re.sub("[0-9]+", new_batch_size, line, count = 1)
cnt += 1
dst_f.write(line)
return dst_model_file
Expand Down

0 comments on commit c29e6fa

Please sign in to comment.