Skip to content

Commit

Permalink
Merge pull request mlcommons#606 from GATEOverflow/mlperf-inference
Browse files Browse the repository at this point in the history
Fix formatting bug on module_misc.py
  • Loading branch information
arjunsuresh authored Nov 24, 2024
2 parents e727650 + 3c93281 commit c91f5b6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: MLPerf Inference Nvidia implementations

on:
schedule:
- cron: "02 00 * * *" #to be adjusted
- cron: "55 01 * * *" #to be adjusted

jobs:
run_nvidia:
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.6.1
0.6.2
4 changes: 2 additions & 2 deletions automation/script/module_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1251,12 +1251,12 @@ def regenerate_script_cmd(i):
# Cleanup from env everything that has a host path value
if i_run_cmd.get('env'):
for key in list(i_run_cmd.get('env')):
if isinstance(i_run_cmd['env'][key], str):
if isinstance(i_run_cmd['env'][key], str) and ((os.path.join("local", "cache", "") in i_run_cmd['env'][key]) or (os.path.join("CM", "repos", "") in i_run_cmd['env'][key])):
del (i_run_cmd['env'][key])
elif isinstance(i_run_cmd['env'][key], list):
values_to_remove = []
for val in i_run_cmd['env'][key]:
if isinstance(val, str):
if isinstance(val, str) and ((os.path.join("local", "cache", "") in val) or (os.path.join("CM", "repos", "") in val)):
values_to_remove.append(val)
if values_to_remove == i_run_cmd['env'][key]:
del (i_run_cmd['env'][key])
Expand Down

0 comments on commit c91f5b6

Please sign in to comment.