Skip to content

Commit

Permalink
Fix codeformatting bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunsuresh committed Nov 23, 2024
1 parent 816edea commit 556ec80
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion script/get-generic-sys-util/customize.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ def preprocess(i):
if tmp_value in env:


if isinstance(package_name, if ) package_name = package_name.replace("<<<" + tmp_value + ">>>", str(env[tmp_value]))
if isinstance(package_name, str):
package_name = package_name.replace("<<<" + tmp_value + ">>>", str(env[tmp_value]))

install_cmd = env.get('CM_HOST_OS_PACKAGE_MANAGER_INSTALL_CMD')
if not install_cmd:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# This test covers version, variation, compilation from src, add_deps,
# add_deps_recursive, deps, post_deps

import check as checks
import cmind as cm
from pathlib import Path
import sys
Expand All @@ -12,6 +11,7 @@
os.path.join(
Path(__file__).parent.parent.resolve(),
"script"))
import check as checks # noqa

r = cm.access({'action': 'run', 'automation': 'script', 'tags': 'app,mlperf,inference,generic,_cpp,_retinanet,_onnxruntime,_cpu', 'adr':
{'python': {'version_min': '3.8'}, 'compiler': {'tags': "gcc"}, 'openimages-preprocessed': {'tags': '_50'}}, 'scenario': 'Offline',
Expand Down
2 changes: 1 addition & 1 deletion script/test-cm-core/src/tutorials/test_tutorial_tvm.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# This test covers version, variation, compilation from src, add_deps,
# add_deps_recursive, deps, post_deps

import check as checks
import cmind as cm

from pathlib import Path
Expand All @@ -13,6 +12,7 @@
os.path.join(
Path(__file__).parent.parent.resolve(),
"script"))
import check as checks # noqa

r = cm.access({'action': 'run', 'automation': 'script', 'tags': 'run,mlperf,inference,generate-run-cmds', 'adr':
{'python': {'name': 'mlperf', 'version_min': '3.8'}}, 'submitter': 'Community',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import check as checks
import cmind as cm

from pathlib import Path
Expand All @@ -10,6 +9,7 @@
os.path.join(
Path(__file__).parent.parent.resolve(),
"script"))
import check as checks # noqa

r = cm.access({'action': 'run', 'automation': 'script', 'tags': 'run,mlperf,inference,generate-run-cmds', 'adr':
{'python': {'name': 'mlperf', 'version_min': '3.8'}, 'tvm': {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# This test covers version, variation, compilation from src, add_deps,
# add_deps_recursive, deps, post_deps

import check as checks
import cmind as cm

from pathlib import Path
Expand All @@ -13,6 +12,7 @@
os.path.join(
Path(__file__).parent.parent.resolve(),
"script"))
import check as checks # noqa

r = cm.access({'action': 'run', 'automation': 'script', 'tags': 'run,mlperf,inference,generate-run-cmds', 'adr':
{'python': {'name': 'mlperf', 'version_min': '3.8'}, 'tvm': {'tags': '_pip-install'}}, 'submitter': 'Community',
Expand Down

0 comments on commit 556ec80

Please sign in to comment.