Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge from GO #10

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions automation/script/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -4314,19 +4314,24 @@ def enable_or_skip_script(meta, env):
(AND function)
"""
for key in meta:
meta_key = [str(v).lower() for v in meta[key]]
if key in env:
value = str(env[key]).lower()

meta_key = [str(v).lower() for v in meta[key]]

if set(meta_key) & set(["yes", "on", "true", "1"]):
# Any set value other than false is taken as set
if value not in ["no", "off", "false", "0"]:
continue
elif set(meta_key) & set(["no", "off", "false", "0"]):
if value in ["no", "off", "false", "0"]:
continue
elif value in meta_key:
continue
else:
if set(meta_key) & set(["no", "off", "false", "0"]):
# If key is missing in env, and if the expected value is False, consider it a match
continue

return False

return True
Expand Down
2 changes: 1 addition & 1 deletion script/app-mlperf-inference/_cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ variations:
tags: run,accuracy,mlperf,_imagenet
docker:
deps:
- tags: get,dataset,imagenet,original
- tags: get,dataset,imagenet,validation,original
names:
- imagenet-original
- dataset-original
Expand Down
2 changes: 1 addition & 1 deletion script/run-mlperf-inference-app/_cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ variations:
CM_MLPERF_DASHBOARD: 'on'

find-performance:
default: true
env:
CM_MLPERF_FIND_PERFORMANCE_MODE: 'yes'
CM_MLPERF_LOADGEN_ALL_MODES: 'no'
Expand Down Expand Up @@ -264,6 +263,7 @@ variations:
group: submission-generation-style

performance-and-accuracy:
default: true
base:
- all-modes
default_variations:
Expand Down
4 changes: 4 additions & 0 deletions script/run-mlperf-inference-app/customize.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ def preprocess(i):

os_info = i['os_info']
env = i['env']

inp = i['input']
state = i['state']
script_path = i['run_script_input']['path']
Expand Down Expand Up @@ -215,6 +216,9 @@ def preprocess(i):
r = cm.access(ii)
if r['return'] > 0:
return r
if action == "docker":
return {'return': 0} # We run commands interactively inside the docker container

if state.get('docker', {}):
del(state['docker'])

Expand Down
Loading