diff --git a/ck/ck/files.py b/ck/ck/files.py index 18dce9b622..0057ff29cb 100644 --- a/ck/ck/files.py +++ b/ck/ck/files.py @@ -8,7 +8,6 @@ # import sys -import os ############################################################################## diff --git a/ck/ck/kernel.py b/ck/ck/kernel.py index ea1f72ae1d..090ab2dcb5 100755 --- a/ck/ck/kernel.py +++ b/ck/ck/kernel.py @@ -33,7 +33,6 @@ # Import packages that are global for the whole kernel import sys -import json import os import imp # Needed to load CK Python modules from CK repositories @@ -442,7 +441,6 @@ def restore_state(r): global initialized, cfg, paths_repos, cache_repo_init, paths_repos_all, cache_repo_uoa, cache_repo_info - import copy import os cfg = r['cfg'] @@ -553,7 +551,6 @@ def debug_out(i): """ - import copy import json ii = {} @@ -1151,7 +1148,6 @@ def convert_iso_time(i): t = i['iso_datetime'] import datetime - import time dto = None @@ -3166,7 +3162,6 @@ def download(i): # Download file # Import modules compatible with Python 2.x and 3.x - import urllib try: from urllib.request import urlretrieve @@ -4177,7 +4172,6 @@ def perform_remote_action(i): """ # Import modules compatible with Python 2.x and 3.x - import urllib try: import urllib.request as urllib2 @@ -6058,9 +6052,9 @@ def status(i): import urllib2 try: - from urllib.parse import urlencode + pass except: - from urllib import urlencode + pass page = '' try: @@ -9416,7 +9410,6 @@ def list_data(i): if aidb != '' or aida != '' or aid != '': - import datetime if aidb != '': rx = convert_iso_time({'iso_datetime': aidb}) if rx['return'] > 0: @@ -9858,7 +9851,6 @@ def list_data2(i): lst = rr['lst'] if len(lst) == 0 and cfg.get('download_missing_components', '') == 'yes': # Search on cKnowledge.org - import copy oo = '' if o == 'con': @@ -10035,7 +10027,6 @@ def search(i): lst = rr['lst'] if len(lst) == 0 and cfg.get('download_missing_components', '') == 'yes': # Search on cKnowledge.org - import copy oo = '' if o == 'con': @@ -10890,9 +10881,9 @@ def access_index_server(i): import urllib2 try: - from urllib.parse import urlencode + pass except: - from urllib import urlencode + pass # Prepare post variables r = dumps_json({'dict': dd, 'skip_indent': 'yes'}) @@ -12251,7 +12242,6 @@ def filter_delete_index(i): def rm_read_only(f, p, e): import os import stat - import errno ex = e[1] diff --git a/ck/ck/net.py b/ck/ck/net.py index 753ceda271..bba2d9b134 100644 --- a/ck/ck/net.py +++ b/ck/ck/net.py @@ -7,15 +7,12 @@ # Developer: Grigori Fursin # -import urllib import json import sys try: - from urllib.parse import urlencode from urllib.parse import quote_plus except: - from urllib import urlencode from urllib import quote_plus try: @@ -124,7 +121,6 @@ def access_ck_api(i): d = i.get('dict', {}) # Import modules compatible with Python 2.x and 3.x - import urllib try: import urllib.request as urllib2 @@ -132,9 +128,9 @@ def access_ck_api(i): import urllib2 try: - from urllib.parse import urlencode + pass except: - from urllib import urlencode + pass # Prepare post variables r = ck.strings.dump_json({'dict': d, 'skip_indent': 'yes'}) diff --git a/ck/ck/repo/module/apk/module.py b/ck/ck/repo/module/apk/module.py index 8486c38e45..d288d0437b 100644 --- a/ck/ck/repo/module/apk/module.py +++ b/ck/ck/repo/module/apk/module.py @@ -12,7 +12,6 @@ ck=None # Will be updated by CK (initialized CK kernel) # Local settings -import os ############################################################################## # Initialize module diff --git a/ck/ck/repo/module/artifact/module.py b/ck/ck/repo/module/artifact/module.py index ae2c8096b9..dcf63ef59d 100644 --- a/ck/ck/repo/module/artifact/module.py +++ b/ck/ck/repo/module/artifact/module.py @@ -99,7 +99,6 @@ def snapshot(i): """ import os - import platform import zipfile import shutil diff --git a/ck/ck/repo/module/ck-platform/ck_032630d041b4fd8a/client.py b/ck/ck/repo/module/ck-platform/ck_032630d041b4fd8a/client.py index e99f468884..da22c3f022 100644 --- a/ck/ck/repo/module/ck-platform/ck_032630d041b4fd8a/client.py +++ b/ck/ck/repo/module/ck-platform/ck_032630d041b4fd8a/client.py @@ -7,7 +7,6 @@ # from . import config -from . import comm import ck.kernel as ck @@ -32,9 +31,9 @@ import urlparse try: - from urllib.parse import quote as urlquote + pass except: - from urllib import quote as urlquote + pass try: from urllib.parse import unquote as urlunquote @@ -49,7 +48,7 @@ try: from socketserver import ThreadingMixIn except: - from SocketServer import ThreadingMixInqZBMfAaH + pass diff --git a/ck/ck/repo/module/ck-platform/ck_032630d041b4fd8a/comm.py b/ck/ck/repo/module/ck-platform/ck_032630d041b4fd8a/comm.py index d57479ffdc..fbd5dc8f98 100644 --- a/ck/ck/repo/module/ck-platform/ck_032630d041b4fd8a/comm.py +++ b/ck/ck/repo/module/ck-platform/ck_032630d041b4fd8a/comm.py @@ -10,7 +10,6 @@ import ck.kernel as ck -import json import sys import os @@ -33,13 +32,12 @@ def send(i): """ # Import modules compatible with Python 2.x and 3.x - import urllib try: import urllib.request as urllib2 except: import urllib2 - try: from urllib.parse import urlencode - except: from urllib import urlencode + try: pass + except: pass # Get server and user config config=i.get('config',{}) @@ -239,7 +237,6 @@ def download_file(i): fn=i['file'] # Import modules compatible with Python 2.x and 3.x - import urllib try: from urllib.request import urlretrieve except: from urllib import urlretrieve diff --git a/ck/ck/repo/module/ck-platform/ck_032630d041b4fd8a/comm_min.py b/ck/ck/repo/module/ck-platform/ck_032630d041b4fd8a/comm_min.py index e9c36fa10a..d331d0b812 100644 --- a/ck/ck/repo/module/ck-platform/ck_032630d041b4fd8a/comm_min.py +++ b/ck/ck/repo/module/ck-platform/ck_032630d041b4fd8a/comm_min.py @@ -6,7 +6,6 @@ import json import sys -import os ############################################################################## # Send JSON request to the cK portal (without CK) @@ -26,13 +25,12 @@ def send(i): """ # Import modules compatible with Python 2.x and 3.x - import urllib try: import urllib.request as urllib2 except: import urllib2 - try: from urllib.parse import urlencode - except: from urllib import urlencode + try: pass + except: pass url=i.get('url') if url=='' or url==None: diff --git a/ck/ck/repo/module/ck-platform/ck_032630d041b4fd8a/graph.py b/ck/ck/repo/module/ck-platform/ck_032630d041b4fd8a/graph.py index bc7a0fb93e..27b73056f4 100644 --- a/ck/ck/repo/module/ck-platform/ck_032630d041b4fd8a/graph.py +++ b/ck/ck/repo/module/ck-platform/ck_032630d041b4fd8a/graph.py @@ -10,7 +10,6 @@ import ck.kernel as ck -import json import os import copy diff --git a/ck/ck/repo/module/ck-platform/ck_032630d041b4fd8a/obj.py b/ck/ck/repo/module/ck-platform/ck_032630d041b4fd8a/obj.py index b4e7979b35..0323254fad 100644 --- a/ck/ck/repo/module/ck-platform/ck_032630d041b4fd8a/obj.py +++ b/ck/ck/repo/module/ck-platform/ck_032630d041b4fd8a/obj.py @@ -9,7 +9,6 @@ import ck.kernel as ck -import json import zipfile import os import time diff --git a/ck/ck/repo/module/ck-platform/ck_032630d041b4fd8a/solution.py b/ck/ck/repo/module/ck-platform/ck_032630d041b4fd8a/solution.py index 4846cecb98..8a88ef9c37 100644 --- a/ck/ck/repo/module/ck-platform/ck_032630d041b4fd8a/solution.py +++ b/ck/ck/repo/module/ck-platform/ck_032630d041b4fd8a/solution.py @@ -6,14 +6,12 @@ # from . import config -from . import comm from . import obj from . import graph import ck.kernel as ck import json -import zipfile import os import locale diff --git a/ck/ck/repo/module/dashboard/module.py b/ck/ck/repo/module/dashboard/module.py index 2231932321..d05a1c2cee 100644 --- a/ck/ck/repo/module/dashboard/module.py +++ b/ck/ck/repo/module/dashboard/module.py @@ -13,7 +13,6 @@ # Local settings -import os fdata_name='ck_top_data' fmodule_name='ck_top_module' diff --git a/ck/ck/repo/module/dataset.features/module.py b/ck/ck/repo/module/dataset.features/module.py index 0674d4a06f..42d1a0757c 100644 --- a/ck/ck/repo/module/dataset.features/module.py +++ b/ck/ck/repo/module/dataset.features/module.py @@ -57,7 +57,6 @@ def extract(i): """ import os - import json o=i.get('out','') diff --git a/ck/ck/repo/module/dataset/module.py b/ck/ck/repo/module/dataset/module.py index 4d27540c9a..17b722bdb3 100644 --- a/ck/ck/repo/module/dataset/module.py +++ b/ck/ck/repo/module/dataset/module.py @@ -170,7 +170,6 @@ def check_size(i): """ import os - import json o=i.get('out','') diff --git a/ck/ck/repo/module/env/module.py b/ck/ck/repo/module/env/module.py index 0af4927eee..67de87d40e 100644 --- a/ck/ck/repo/module/env/module.py +++ b/ck/ck/repo/module/env/module.py @@ -1688,7 +1688,6 @@ def refresh(i): name=i.get('name','') wname=False if name.find('*')>=0 or name.find('?')>=0: - import fnmatch wname=True name=name.lower() diff --git a/ck/ck/repo/module/experiment.bench.dnn.mobile/module.py b/ck/ck/repo/module/experiment.bench.dnn.mobile/module.py index f861b5d37e..8c593bfc02 100644 --- a/ck/ck/repo/module/experiment.bench.dnn.mobile/module.py +++ b/ck/ck/repo/module/experiment.bench.dnn.mobile/module.py @@ -85,7 +85,6 @@ def show(i): """ - import os import copy import time @@ -1442,7 +1441,6 @@ def generate(i): """ import os - import copy import shutil import itertools diff --git a/ck/ck/repo/module/experiment.bench.dnn/module.py b/ck/ck/repo/module/experiment.bench.dnn/module.py index 1a31793ba0..0345ae8776 100644 --- a/ck/ck/repo/module/experiment.bench.dnn/module.py +++ b/ck/ck/repo/module/experiment.bench.dnn/module.py @@ -1527,8 +1527,6 @@ def replay(i): """ - import copy - import os # Setting output o=i.get('out','') diff --git a/ck/ck/repo/module/experiment.check.algorithm.scalability/module.py b/ck/ck/repo/module/experiment.check.algorithm.scalability/module.py index 4f18e2dfdf..b977047207 100644 --- a/ck/ck/repo/module/experiment.check.algorithm.scalability/module.py +++ b/ck/ck/repo/module/experiment.check.algorithm.scalability/module.py @@ -12,7 +12,6 @@ ck=None # Will be updated by CK (initialized CK kernel) # Local settings -import copy ############################################################################## # Initialize module diff --git a/ck/ck/repo/module/experiment.check.numerical.stability/module.py b/ck/ck/repo/module/experiment.check.numerical.stability/module.py index 4f18e2dfdf..b977047207 100644 --- a/ck/ck/repo/module/experiment.check.numerical.stability/module.py +++ b/ck/ck/repo/module/experiment.check.numerical.stability/module.py @@ -12,7 +12,6 @@ ck=None # Will be updated by CK (initialized CK kernel) # Local settings -import copy ############################################################################## # Initialize module diff --git a/ck/ck/repo/module/experiment.detect.opencl.bugs/module.py b/ck/ck/repo/module/experiment.detect.opencl.bugs/module.py index 4f18e2dfdf..b977047207 100644 --- a/ck/ck/repo/module/experiment.detect.opencl.bugs/module.py +++ b/ck/ck/repo/module/experiment.detect.opencl.bugs/module.py @@ -12,7 +12,6 @@ ck=None # Will be updated by CK (initialized CK kernel) # Local settings -import copy ############################################################################## # Initialize module diff --git a/ck/ck/repo/module/experiment.model.program.behavior/module.py b/ck/ck/repo/module/experiment.model.program.behavior/module.py index 4f18e2dfdf..b977047207 100644 --- a/ck/ck/repo/module/experiment.model.program.behavior/module.py +++ b/ck/ck/repo/module/experiment.model.program.behavior/module.py @@ -12,7 +12,6 @@ ck=None # Will be updated by CK (initialized CK kernel) # Local settings -import copy ############################################################################## # Initialize module diff --git a/ck/ck/repo/module/experiment.tune.cuda.ws.e/module.py b/ck/ck/repo/module/experiment.tune.cuda.ws.e/module.py index 4f18e2dfdf..b977047207 100644 --- a/ck/ck/repo/module/experiment.tune.cuda.ws.e/module.py +++ b/ck/ck/repo/module/experiment.tune.cuda.ws.e/module.py @@ -12,7 +12,6 @@ ck=None # Will be updated by CK (initialized CK kernel) # Local settings -import copy ############################################################################## # Initialize module diff --git a/ck/ck/repo/module/experiment.tune.opencl.lws.e/module.py b/ck/ck/repo/module/experiment.tune.opencl.lws.e/module.py index 4f18e2dfdf..b977047207 100644 --- a/ck/ck/repo/module/experiment.tune.opencl.lws.e/module.py +++ b/ck/ck/repo/module/experiment.tune.opencl.lws.e/module.py @@ -12,7 +12,6 @@ ck=None # Will be updated by CK (initialized CK kernel) # Local settings -import copy ############################################################################## # Initialize module diff --git a/ck/ck/repo/module/experiment.tune.opencl.lws.ep/module.py b/ck/ck/repo/module/experiment.tune.opencl.lws.ep/module.py index 4f18e2dfdf..b977047207 100644 --- a/ck/ck/repo/module/experiment.tune.opencl.lws.ep/module.py +++ b/ck/ck/repo/module/experiment.tune.opencl.lws.ep/module.py @@ -12,7 +12,6 @@ ck=None # Will be updated by CK (initialized CK kernel) # Local settings -import copy ############################################################################## # Initialize module diff --git a/ck/ck/repo/module/experiment.user/module.py b/ck/ck/repo/module/experiment.user/module.py index d8d04ce628..74f2accd9f 100644 --- a/ck/ck/repo/module/experiment.user/module.py +++ b/ck/ck/repo/module/experiment.user/module.py @@ -48,7 +48,6 @@ def show(i): """ - import os h='
' h+='

Collective Knowledge Timeline
(non-anonymous participation in collaborative experiments)

\n' diff --git a/ck/ck/repo/module/experiment/module.py b/ck/ck/repo/module/experiment/module.py index 921c787aca..803d5068ee 100644 --- a/ck/ck/repo/module/experiment/module.py +++ b/ck/ck/repo/module/experiment/module.py @@ -4028,7 +4028,6 @@ def get_unique_keys_from_list(i): """ - import time choices={} # just choices wchoices={} # selector for HTML (name and value) diff --git a/ck/ck/repo/module/graph/module.py b/ck/ck/repo/module/graph/module.py index c65099f1d0..ee30e45e88 100644 --- a/ck/ck/repo/module/graph/module.py +++ b/ck/ck/repo/module/graph/module.py @@ -475,7 +475,6 @@ def plot(i): bl=i.get('bound_lines','') if pt=='mpl_3d_scatter' or pt=='mpl_3d_trisurf': - from mpl_toolkits.mplot3d import Axes3D sp=fig.add_subplot(111, projection='3d') else: sp=fig.add_subplot(111) @@ -521,7 +520,6 @@ def plot(i): # If heatmap, prepare colorbar if pt=='mpl_2d_heatmap' or pt=='mpl_3d_trisurf': - from matplotlib import cm if len(i.get('color_dict',{}))>0: xcmap = mpl.colors.LinearSegmentedColormap('my_colormap', i['color_dict'], 1024) diff --git a/ck/ck/repo/module/graph/module_shifted_colormap.py b/ck/ck/repo/module/graph/module_shifted_colormap.py index 6f5e0a5292..b52c8e51d8 100644 --- a/ck/ck/repo/module/graph/module_shifted_colormap.py +++ b/ck/ck/repo/module/graph/module_shifted_colormap.py @@ -9,7 +9,6 @@ import numpy as np import matplotlib import matplotlib.pyplot as plt -from mpl_toolkits.axes_grid1 import AxesGrid def shiftedColorMap(cmap, start=0, midpoint=0.5, stop=1.0, name='shiftedcmap'): ''' diff --git a/ck/ck/repo/module/kernel/module.py b/ck/ck/repo/module/kernel/module.py index 2f9436c16d..883b93417d 100644 --- a/ck/ck/repo/module/kernel/module.py +++ b/ck/ck/repo/module/kernel/module.py @@ -9,7 +9,6 @@ import copy import os -import sys cfg = {} # Will be updated by CK (meta description of this module) work = {} # Will be updated by CK (temporal data) ck = None # Will be updated by CK (initialized CK kernel) diff --git a/ck/ck/repo/module/kernel/test/test_mgmt.py b/ck/ck/repo/module/kernel/test/test_mgmt.py index c2e62c040e..2a1c981994 100644 --- a/ck/ck/repo/module/kernel/test/test_mgmt.py +++ b/ck/ck/repo/module/kernel/test/test_mgmt.py @@ -10,7 +10,6 @@ import shutil import tempfile import sys -from contextlib import contextmanager ck = None # Will be updated by CK (initialized CK kernel) test_util = None # Will be updated by CK (initialized CK test utils) diff --git a/ck/ck/repo/module/misc/module.py b/ck/ck/repo/module/misc/module.py index f109cee79d..ec57f0fa4f 100644 --- a/ck/ck/repo/module/misc/module.py +++ b/ck/ck/repo/module/misc/module.py @@ -78,7 +78,6 @@ def replace_string_in_file(i): """ - import copy o=i.get('out','') @@ -1737,7 +1736,6 @@ def replace_strings_in_file(i): """ - import copy o=i.get('out','') @@ -2056,7 +2054,6 @@ def list_kernel_functions_md(i): """ import os - import copy o=i.get('out','') diff --git a/ck/ck/repo/module/mlperf.inference/module.py b/ck/ck/repo/module/mlperf.inference/module.py index d494da5efc..e16451c79d 100644 --- a/ck/ck/repo/module/mlperf.inference/module.py +++ b/ck/ck/repo/module/mlperf.inference/module.py @@ -19,12 +19,6 @@ ck=None # Will be updated by CK (initialized CK kernel) import os -import sys -import json -import re -import traceback -from collections import defaultdict -from pprint import pprint import pandas as pd import numpy as np diff --git a/ck/ck/repo/module/mlperf.mobilenets/module.py b/ck/ck/repo/module/mlperf.mobilenets/module.py index 3811ef718b..5095995b79 100644 --- a/ck/ck/repo/module/mlperf.mobilenets/module.py +++ b/ck/ck/repo/module/mlperf.mobilenets/module.py @@ -19,7 +19,6 @@ ck=None # Will be updated by CK (initialized CK kernel) import os -import sys import json import re import traceback diff --git a/ck/ck/repo/module/mlperf/module.py b/ck/ck/repo/module/mlperf/module.py index 9b86c0707d..8193320a05 100644 --- a/ck/ck/repo/module/mlperf/module.py +++ b/ck/ck/repo/module/mlperf/module.py @@ -13,9 +13,6 @@ work={} # Will be updated by CK (temporal data) ck=None # Will be updated by CK (initialized CK kernel) -import getpass -import os -import sys from pprint import pprint diff --git a/ck/ck/repo/module/model.image.classification/module.py b/ck/ck/repo/module/model.image.classification/module.py index 3e0c0c41c2..45d9a91beb 100644 --- a/ck/ck/repo/module/model.image.classification/module.py +++ b/ck/ck/repo/module/model.image.classification/module.py @@ -60,8 +60,6 @@ def show(i): import os import shutil - import time - import copy form_name='milepost_web_form' @@ -515,7 +513,6 @@ def html_viewer(i): pxx=os.path.join(p,ff) if not os.path.isfile(pxx): try: - import PIL from PIL import Image img=Image.open(px) diff --git a/ck/ck/repo/module/model.r/module.py b/ck/ck/repo/module/model.r/module.py index 499aa282bc..441588fd64 100644 --- a/ck/ck/repo/module/model.r/module.py +++ b/ck/ck/repo/module/model.r/module.py @@ -221,7 +221,6 @@ def validate(i): import tempfile import os import csv - import sys mn=i['model_name'] mf=i['model_file'] diff --git a/ck/ck/repo/module/model.sklearn/module.py b/ck/ck/repo/module/model.sklearn/module.py index 3710d16321..d8e84a5199 100644 --- a/ck/ck/repo/module/model.sklearn/module.py +++ b/ck/ck/repo/module/model.sklearn/module.py @@ -314,7 +314,6 @@ def validate(i): ############################################################# if mn=='dtc' or mn=='dtr': - from sklearn import tree pr=clf.predict(ftable1) # Check if CK decision tree file exists diff --git a/ck/ck/repo/module/model.tensorflowapi/module.py b/ck/ck/repo/module/model.tensorflowapi/module.py index 96eb3fdd1b..dbc61257a1 100644 --- a/ck/ck/repo/module/model.tensorflowapi/module.py +++ b/ck/ck/repo/module/model.tensorflowapi/module.py @@ -67,7 +67,6 @@ def train(i): } """ - import json muid=i.get('model_uid','') if muid == '': @@ -135,7 +134,6 @@ def eval(i): """ - import json muid=i.get('model_uid','') if muid == '': diff --git a/ck/ck/repo/module/model.tf/module.py b/ck/ck/repo/module/model.tf/module.py index 3ca517547b..989978e6d1 100644 --- a/ck/ck/repo/module/model.tf/module.py +++ b/ck/ck/repo/module/model.tf/module.py @@ -251,8 +251,6 @@ def validate(i): import tempfile import os - import csv - import sys o=i.get('out','') oo='' diff --git a/ck/ck/repo/module/nntest/module.py b/ck/ck/repo/module/nntest/module.py index 001ec38f4f..b0ff5b9409 100644 --- a/ck/ck/repo/module/nntest/module.py +++ b/ck/ck/repo/module/nntest/module.py @@ -12,10 +12,8 @@ # - Grigori Fursin, cTuning foundation, 2017 # -import json import copy import os -from time import strftime, gmtime cfg={} # Will be updated by CK (meta description of this module) work={} # Will be updated by CK (temporal data) @@ -157,8 +155,6 @@ def show(i): """ - import os - import copy import time # Preparing various parameters to render HTML dashboard @@ -1799,8 +1795,6 @@ def get_raw_data(i): """ - import os - import copy import time # Preparing various parameters to render HTML dashboard diff --git a/ck/ck/repo/module/pipeline.cmd/module.py b/ck/ck/repo/module/pipeline.cmd/module.py index 3b0b25f004..e678f3b82e 100644 --- a/ck/ck/repo/module/pipeline.cmd/module.py +++ b/ck/ck/repo/module/pipeline.cmd/module.py @@ -49,7 +49,6 @@ def pipeline(i): """ - import json import os import time import sys diff --git a/ck/ck/repo/module/pipeline/module.py b/ck/ck/repo/module/pipeline/module.py index b62b1f21ac..207298b648 100644 --- a/ck/ck/repo/module/pipeline/module.py +++ b/ck/ck/repo/module/pipeline/module.py @@ -244,7 +244,6 @@ def autotune(i): import os import copy import fnmatch - import json import time from random import Random diff --git a/ck/ck/repo/module/platform.nn/module.py b/ck/ck/repo/module/platform.nn/module.py index f2c946a91f..7e88177556 100644 --- a/ck/ck/repo/module/platform.nn/module.py +++ b/ck/ck/repo/module/platform.nn/module.py @@ -71,7 +71,6 @@ def detect(i): """ - import os o=i.get('out','') @@ -159,7 +158,6 @@ def set_freq(i): """ - import os o=i.get('out','') oo='' diff --git a/ck/ck/repo/module/platform.npu/module.py b/ck/ck/repo/module/platform.npu/module.py index 167ab59f39..3de7fb468a 100644 --- a/ck/ck/repo/module/platform.npu/module.py +++ b/ck/ck/repo/module/platform.npu/module.py @@ -71,7 +71,6 @@ def detect(i): """ - import os o=i.get('out','') @@ -263,7 +262,6 @@ def set_freq(i): """ - import os o=i.get('out','') oo='' diff --git a/ck/ck/repo/module/platform/module.py b/ck/ck/repo/module/platform/module.py index a179d88a56..99720eb9d4 100644 --- a/ck/ck/repo/module/platform/module.py +++ b/ck/ck/repo/module/platform/module.py @@ -696,7 +696,6 @@ def exchange(i): """ - import os ruoa=i.get('repo_uoa','') smuoa=i['sub_module_uoa'] diff --git a/ck/ck/repo/module/program.optimization.mobile/module.py b/ck/ck/repo/module/program.optimization.mobile/module.py index ce76521a92..1d1094a05e 100644 --- a/ck/ck/repo/module/program.optimization.mobile/module.py +++ b/ck/ck/repo/module/program.optimization.mobile/module.py @@ -639,7 +639,6 @@ def server(i): import time import os - import datetime o=i.get('out','') oo='' @@ -763,7 +762,6 @@ def crowdsource(i): """ - import time import os import copy diff --git a/ck/ck/repo/module/program.optimization/module.py b/ck/ck/repo/module/program.optimization/module.py index 5b0dfb1107..8245dbda2d 100644 --- a/ck/ck/repo/module/program.optimization/module.py +++ b/ck/ck/repo/module/program.optimization/module.py @@ -87,7 +87,6 @@ def test(i): """ - import os o=i.get('out','') @@ -1328,8 +1327,6 @@ def initialize(i): """ - import copy - import os # Setting output o=i.get('out','') @@ -3904,7 +3901,6 @@ def problem(i): """ - import os o=i.get('out','') diff --git a/ck/ck/repo/module/program.static.features/module.py b/ck/ck/repo/module/program.static.features/module.py index 43a648d160..2f100b83be 100644 --- a/ck/ck/repo/module/program.static.features/module.py +++ b/ck/ck/repo/module/program.static.features/module.py @@ -56,8 +56,6 @@ def extract(i): """ - import os - import json o=i.get('out','') oo='' diff --git a/ck/ck/repo/module/program/module.py b/ck/ck/repo/module/program/module.py index 8f0239779a..8cce6ed241 100644 --- a/ck/ck/repo/module/program/module.py +++ b/ck/ck/repo/module/program/module.py @@ -383,7 +383,6 @@ def process_in_dir(i): import sys import shutil import time - import copy start_time=time.time() diff --git a/ck/ck/repo/module/repo/module.py b/ck/ck/repo/module/repo/module.py index 27fb5f06b1..4247742bd0 100644 --- a/ck/ck/repo/module/repo/module.py +++ b/ck/ck/repo/module/repo/module.py @@ -1981,7 +1981,6 @@ def get_and_unzip_archive(i): os.remove(fn) # Import modules compatible with Python 2.x and 3.x - import urllib try: import urllib.request as urllib2 diff --git a/ck/ck/repo/module/soft/module.py b/ck/ck/repo/module/soft/module.py index b0ae45c006..36e3f6a58f 100644 --- a/ck/ck/repo/module/soft/module.py +++ b/ck/ck/repo/module/soft/module.py @@ -77,7 +77,6 @@ def internal_detect(i): """ - import os o=i.get('out','') @@ -1246,7 +1245,6 @@ def search_tool(i): o=i.get('out','') import time - import os start_time = time.time() pl=i['path_list'] @@ -1475,7 +1473,6 @@ def check(i): """ import os - import json import copy o=i.get('out','') diff --git a/ck/ck/repo/module/sut/module.py b/ck/ck/repo/module/sut/module.py index be10a11095..d5c9841a1f 100644 --- a/ck/ck/repo/module/sut/module.py +++ b/ck/ck/repo/module/sut/module.py @@ -35,7 +35,6 @@ def list(i): ck list sut --out=json """ - from pprint import pprint interactive = i.get('out')=='con' repo_uoa = i.get('repo_uoa', '*') diff --git a/ck/ck/repo/module/test/module.py b/ck/ck/repo/module/test/module.py index e3b0b571b5..93f02ea0af 100644 --- a/ck/ck/repo/module/test/module.py +++ b/ck/ck/repo/module/test/module.py @@ -8,7 +8,6 @@ # import unittest -import os cfg = {} # Will be updated by CK (meta description of this module) work = {} # Will be updated by CK (temporal data) diff --git a/ck/ck/repo/module/test/test_util.py b/ck/ck/repo/module/test/test_util.py index 4b4b11a350..45c933f675 100644 --- a/ck/ck/repo/module/test/test_util.py +++ b/ck/ck/repo/module/test/test_util.py @@ -11,7 +11,6 @@ # For examples of the usage of this functions, please looks at the kernel tests # (ck/repo/kernel/test/test_*.py files). -import unittest import sys import os from contextlib import contextmanager diff --git a/ck/ck/repo/module/web/module.py b/ck/ck/repo/module/web/module.py index 8ba33bc284..bb8ca42628 100644 --- a/ck/ck/repo/module/web/module.py +++ b/ck/ck/repo/module/web/module.py @@ -8,8 +8,6 @@ # import tempfile -import base64 -import urllib import cgi import sys import os @@ -39,9 +37,9 @@ from urllib.parse import parse_qs try: - from urllib.parse import quote as urlquote + pass except: - from urllib import quote as urlquote + pass try: from urllib.parse import unquote as urlunquote diff --git a/ck/ck/repo/module/wfe/module.py b/ck/ck/repo/module/wfe/module.py index b656bb5464..9a245bb6dd 100644 --- a/ck/ck/repo/module/wfe/module.py +++ b/ck/ck/repo/module/wfe/module.py @@ -567,7 +567,6 @@ def index(i): elif len(lst)==1: ########################################### Entry viewer ############# - import json q=lst[0] diff --git a/ck/ck/repo/module/xml/module.py b/ck/ck/repo/module/xml/module.py index ca0162e17e..861afe82ca 100644 --- a/ck/ck/repo/module/xml/module.py +++ b/ck/ck/repo/module/xml/module.py @@ -116,7 +116,6 @@ def validate(i): # generate XML element def generate_element(root, d): - import os from lxml import etree if type(d)!=list: @@ -192,7 +191,6 @@ def generate(i): """ - import os from lxml import etree ocon=i.get('out','')=='con' diff --git a/ck/incubator/cbench/cbench/client.py b/ck/incubator/cbench/cbench/client.py index e99f468884..da22c3f022 100644 --- a/ck/incubator/cbench/cbench/client.py +++ b/ck/incubator/cbench/cbench/client.py @@ -7,7 +7,6 @@ # from . import config -from . import comm import ck.kernel as ck @@ -32,9 +31,9 @@ import urlparse try: - from urllib.parse import quote as urlquote + pass except: - from urllib import quote as urlquote + pass try: from urllib.parse import unquote as urlunquote @@ -49,7 +48,7 @@ try: from socketserver import ThreadingMixIn except: - from SocketServer import ThreadingMixInqZBMfAaH + pass diff --git a/ck/incubator/cbench/cbench/comm.py b/ck/incubator/cbench/cbench/comm.py index d57479ffdc..fbd5dc8f98 100644 --- a/ck/incubator/cbench/cbench/comm.py +++ b/ck/incubator/cbench/cbench/comm.py @@ -10,7 +10,6 @@ import ck.kernel as ck -import json import sys import os @@ -33,13 +32,12 @@ def send(i): """ # Import modules compatible with Python 2.x and 3.x - import urllib try: import urllib.request as urllib2 except: import urllib2 - try: from urllib.parse import urlencode - except: from urllib import urlencode + try: pass + except: pass # Get server and user config config=i.get('config',{}) @@ -239,7 +237,6 @@ def download_file(i): fn=i['file'] # Import modules compatible with Python 2.x and 3.x - import urllib try: from urllib.request import urlretrieve except: from urllib import urlretrieve diff --git a/ck/incubator/cbench/cbench/comm_min.py b/ck/incubator/cbench/cbench/comm_min.py index e9c36fa10a..d331d0b812 100644 --- a/ck/incubator/cbench/cbench/comm_min.py +++ b/ck/incubator/cbench/cbench/comm_min.py @@ -6,7 +6,6 @@ import json import sys -import os ############################################################################## # Send JSON request to the cK portal (without CK) @@ -26,13 +25,12 @@ def send(i): """ # Import modules compatible with Python 2.x and 3.x - import urllib try: import urllib.request as urllib2 except: import urllib2 - try: from urllib.parse import urlencode - except: from urllib import urlencode + try: pass + except: pass url=i.get('url') if url=='' or url==None: diff --git a/ck/incubator/cbench/cbench/graph.py b/ck/incubator/cbench/cbench/graph.py index 6237869bac..4ac9ec04e9 100644 --- a/ck/incubator/cbench/cbench/graph.py +++ b/ck/incubator/cbench/cbench/graph.py @@ -10,7 +10,6 @@ import ck.kernel as ck -import json import os import copy diff --git a/ck/incubator/cbench/cbench/obj.py b/ck/incubator/cbench/cbench/obj.py index b4e7979b35..0323254fad 100644 --- a/ck/incubator/cbench/cbench/obj.py +++ b/ck/incubator/cbench/cbench/obj.py @@ -9,7 +9,6 @@ import ck.kernel as ck -import json import zipfile import os import time diff --git a/ck/incubator/cbench/cbench/solution.py b/ck/incubator/cbench/cbench/solution.py index 4846cecb98..8a88ef9c37 100644 --- a/ck/incubator/cbench/cbench/solution.py +++ b/ck/incubator/cbench/cbench/solution.py @@ -6,14 +6,12 @@ # from . import config -from . import comm from . import obj from . import graph import ck.kernel as ck import json -import zipfile import os import locale diff --git a/ck/incubator/cbench/setup.py b/ck/incubator/cbench/setup.py index 5b989a33fe..9d3eedb057 100644 --- a/ck/incubator/cbench/setup.py +++ b/ck/incubator/cbench/setup.py @@ -4,7 +4,6 @@ # import os -import sys import imp ############################################################ diff --git a/ck/incubator/cdatabase/cdatabase/cobject.py b/ck/incubator/cdatabase/cdatabase/cobject.py index 1bcf2904f5..1d95313a8d 100644 --- a/ck/incubator/cdatabase/cdatabase/cobject.py +++ b/ck/incubator/cdatabase/cdatabase/cobject.py @@ -3,10 +3,7 @@ # import os -import json -import yaml -from cdatabase.config import cfg from cdatabase.cdata import cData import cdatabase.utils as utils diff --git a/ck/incubator/cdatabase/cdatabase/crepo.py b/ck/incubator/cdatabase/cdatabase/crepo.py index ec068d76b4..f299afde14 100644 --- a/ck/incubator/cdatabase/cdatabase/crepo.py +++ b/ck/incubator/cdatabase/cdatabase/crepo.py @@ -3,10 +3,7 @@ # import os -import json -import yaml -from cdatabase.config import cfg from cdatabase.cobject import cObject import cdatabase.utils as utils diff --git a/ck/incubator/cdatabase/setup.py b/ck/incubator/cdatabase/setup.py index ec1f96d7e7..7081950b80 100644 --- a/ck/incubator/cdatabase/setup.py +++ b/ck/incubator/cdatabase/setup.py @@ -1,5 +1,4 @@ import os -import sys import re ############################################################ diff --git a/ck/incubator/cdatabase/tests/test01.py b/ck/incubator/cdatabase/tests/test01.py index 18361a25dd..aba58e0e62 100644 --- a/ck/incubator/cdatabase/tests/test01.py +++ b/ck/incubator/cdatabase/tests/test01.py @@ -1,4 +1,3 @@ -import os import json # Get path to some CK entry diff --git a/ck/incubator/cdatabase/tests/test02.py b/ck/incubator/cdatabase/tests/test02.py index 678a2fb47b..1f616bc698 100644 --- a/ck/incubator/cdatabase/tests/test02.py +++ b/ck/incubator/cdatabase/tests/test02.py @@ -1,5 +1,4 @@ import os -import json # Get path to some CK entry import ck.kernel as ck diff --git a/ck/incubator/cdatabase/tests/test03.py b/ck/incubator/cdatabase/tests/test03.py index ac07091a36..8db813e2f4 100644 --- a/ck/incubator/cdatabase/tests/test03.py +++ b/ck/incubator/cdatabase/tests/test03.py @@ -1,5 +1,3 @@ -import os -import json # Get path to some CK entry import ck.kernel as ck diff --git a/ck/incubator/cdatabase/tests/test04.py b/ck/incubator/cdatabase/tests/test04.py index 52c38538ef..e0f424112d 100644 --- a/ck/incubator/cdatabase/tests/test04.py +++ b/ck/incubator/cdatabase/tests/test04.py @@ -1,5 +1,4 @@ import os -import json import sys import time diff --git a/ck/incubator/cdatabase/tests/test04a.py b/ck/incubator/cdatabase/tests/test04a.py index d245afc8aa..9d5134373f 100644 --- a/ck/incubator/cdatabase/tests/test04a.py +++ b/ck/incubator/cdatabase/tests/test04a.py @@ -1,5 +1,4 @@ import os -import json import sys import time diff --git a/ck/incubator/cdatabase/tests/test04b.py b/ck/incubator/cdatabase/tests/test04b.py index 5a7065f555..73d7ee469d 100644 --- a/ck/incubator/cdatabase/tests/test04b.py +++ b/ck/incubator/cdatabase/tests/test04b.py @@ -1,5 +1,4 @@ import os -import json import sys import time diff --git a/ck/incubator/connectme/testing/connectme/cm.py b/ck/incubator/connectme/testing/connectme/cm.py index 6a9d8fd372..d57bd12161 100644 --- a/ck/incubator/connectme/testing/connectme/cm.py +++ b/ck/incubator/connectme/testing/connectme/cm.py @@ -1,6 +1,6 @@ import os -from connectme import config, io, misc, repo +from connectme import config, io, repo ########################################################################### class CM: diff --git a/ck/setup.py b/ck/setup.py index fe4ffc6eb4..6de4cf3b88 100755 --- a/ck/setup.py +++ b/ck/setup.py @@ -39,9 +39,8 @@ try: from setuptools.command.install_lib import install_lib except ImportError: - from distutils.command.install_lib import install_lib + pass -from distutils.sysconfig import get_python_lib ############################################################ # Global variables diff --git a/cm-mlops/automation/cache/module_misc.py b/cm-mlops/automation/cache/module_misc.py index cc4a6ac31b..ad973415f7 100644 --- a/cm-mlops/automation/cache/module_misc.py +++ b/cm-mlops/automation/cache/module_misc.py @@ -1,5 +1,4 @@ import os -from cmind import utils ############################################################ diff --git a/cm-mlops/automation/cfg/module.py b/cm-mlops/automation/cfg/module.py index be8d6e7b1d..3ed78c732b 100644 --- a/cm-mlops/automation/cfg/module.py +++ b/cm-mlops/automation/cfg/module.py @@ -1,7 +1,5 @@ -import os from cmind.automation import Automation -from cmind import utils class CAutomation(Automation): """ diff --git a/cm-mlops/automation/challenge/module.py b/cm-mlops/automation/challenge/module.py index be8d6e7b1d..3ed78c732b 100644 --- a/cm-mlops/automation/challenge/module.py +++ b/cm-mlops/automation/challenge/module.py @@ -1,7 +1,5 @@ -import os from cmind.automation import Automation -from cmind import utils class CAutomation(Automation): """ diff --git a/cm-mlops/automation/contributor/module.py b/cm-mlops/automation/contributor/module.py index 82807638f8..2f46b872cd 100644 --- a/cm-mlops/automation/contributor/module.py +++ b/cm-mlops/automation/contributor/module.py @@ -1,7 +1,6 @@ import os from cmind.automation import Automation -from cmind import utils class CAutomation(Automation): """ diff --git a/cm-mlops/automation/data/module.py b/cm-mlops/automation/data/module.py index be8d6e7b1d..3ed78c732b 100644 --- a/cm-mlops/automation/data/module.py +++ b/cm-mlops/automation/data/module.py @@ -1,7 +1,5 @@ -import os from cmind.automation import Automation -from cmind import utils class CAutomation(Automation): """ diff --git a/cm-mlops/automation/docker/module.py b/cm-mlops/automation/docker/module.py index aaf0f7802c..047f1af199 100644 --- a/cm-mlops/automation/docker/module.py +++ b/cm-mlops/automation/docker/module.py @@ -1,7 +1,5 @@ -import os from cmind.automation import Automation -from cmind import utils class CAutomation(Automation): """ diff --git a/cm-mlops/automation/docs/module.py b/cm-mlops/automation/docs/module.py index be8d6e7b1d..3ed78c732b 100644 --- a/cm-mlops/automation/docs/module.py +++ b/cm-mlops/automation/docs/module.py @@ -1,7 +1,5 @@ -import os from cmind.automation import Automation -from cmind import utils class CAutomation(Automation): """ diff --git a/cm-mlops/automation/project/module.py b/cm-mlops/automation/project/module.py index be8d6e7b1d..3ed78c732b 100644 --- a/cm-mlops/automation/project/module.py +++ b/cm-mlops/automation/project/module.py @@ -1,7 +1,5 @@ -import os from cmind.automation import Automation -from cmind import utils class CAutomation(Automation): """ diff --git a/cm-mlops/automation/report/module.py b/cm-mlops/automation/report/module.py index be8d6e7b1d..3ed78c732b 100644 --- a/cm-mlops/automation/report/module.py +++ b/cm-mlops/automation/report/module.py @@ -1,7 +1,5 @@ -import os from cmind.automation import Automation -from cmind import utils class CAutomation(Automation): """ diff --git a/cm-mlops/automation/script/module.py b/cm-mlops/automation/script/module.py index 22ff9c5da3..acaddb9188 100644 --- a/cm-mlops/automation/script/module.py +++ b/cm-mlops/automation/script/module.py @@ -2253,7 +2253,6 @@ def test(self, i): """ - import json # Check parsed automation if 'parsed_automation' not in i: @@ -3069,7 +3068,6 @@ def find_file_in_paths(self, i): (found_files) (list): paths to files when found """ - import copy paths = i['paths'] select = i.get('select',False) @@ -3282,7 +3280,6 @@ def detect_version_using_script(self, i): """ recursion_spaces = i.get('recursion_spaces','') - import copy detected = False diff --git a/cm-mlops/automation/script/module_help.py b/cm-mlops/automation/script/module_help.py index e27d756877..eeb040895f 100644 --- a/cm-mlops/automation/script/module_help.py +++ b/cm-mlops/automation/script/module_help.py @@ -1,5 +1,3 @@ -import os -from cmind import utils # Pring help about script def print_help(i): diff --git a/cm-mlops/automation/script/module_misc.py b/cm-mlops/automation/script/module_misc.py index 072e3c2267..430f9148b6 100644 --- a/cm-mlops/automation/script/module_misc.py +++ b/cm-mlops/automation/script/module_misc.py @@ -1355,7 +1355,6 @@ def dockerfile(i): """ - import copy # Check simplified CMD: cm docker script "python app image-classification onnx" # If artifact has spaces, treat them as tags! diff --git a/cm-mlops/automation/script/template-ae-python/customize.py b/cm-mlops/automation/script/template-ae-python/customize.py index d12f9b3e1d..bca6b28680 100644 --- a/cm-mlops/automation/script/template-ae-python/customize.py +++ b/cm-mlops/automation/script/template-ae-python/customize.py @@ -1,5 +1,3 @@ -from cmind import utils -import os def preprocess(i): diff --git a/cm-mlops/automation/script/template-python/customize.py b/cm-mlops/automation/script/template-python/customize.py index 10214b87df..e924cd2652 100644 --- a/cm-mlops/automation/script/template-python/customize.py +++ b/cm-mlops/automation/script/template-python/customize.py @@ -1,5 +1,3 @@ -from cmind import utils -import os def preprocess(i): diff --git a/cm-mlops/automation/script/template-pytorch/customize.py b/cm-mlops/automation/script/template-pytorch/customize.py index 10214b87df..e924cd2652 100644 --- a/cm-mlops/automation/script/template-pytorch/customize.py +++ b/cm-mlops/automation/script/template-pytorch/customize.py @@ -1,5 +1,3 @@ -from cmind import utils -import os def preprocess(i): diff --git a/cm-mlops/automation/script/template/customize.py b/cm-mlops/automation/script/template/customize.py index d12f9b3e1d..bca6b28680 100644 --- a/cm-mlops/automation/script/template/customize.py +++ b/cm-mlops/automation/script/template/customize.py @@ -1,5 +1,3 @@ -from cmind import utils -import os def preprocess(i): diff --git a/cm-mlops/automation/utils/module.py b/cm-mlops/automation/utils/module.py index 084431a39b..f8325b6f6e 100644 --- a/cm-mlops/automation/utils/module.py +++ b/cm-mlops/automation/utils/module.py @@ -182,7 +182,6 @@ def download_file(self, i): """ import requests - import time import sys from urllib import parse diff --git a/cm-mlops/script/activate-python-venv/customize.py b/cm-mlops/script/activate-python-venv/customize.py index 938a016a05..aee9b6d4d0 100644 --- a/cm-mlops/script/activate-python-venv/customize.py +++ b/cm-mlops/script/activate-python-venv/customize.py @@ -1,5 +1,3 @@ -from cmind import utils -import os def preprocess(i): diff --git a/cm-mlops/script/add-custom-nvidia-system/customize.py b/cm-mlops/script/add-custom-nvidia-system/customize.py index e9573338b1..8d0a8e410b 100644 --- a/cm-mlops/script/add-custom-nvidia-system/customize.py +++ b/cm-mlops/script/add-custom-nvidia-system/customize.py @@ -1,6 +1,3 @@ -from cmind import utils -import os -import shutil def preprocess(i): diff --git a/cm-mlops/script/app-image-classification-onnx-py/customize.py b/cm-mlops/script/app-image-classification-onnx-py/customize.py index 43098c71f7..d77a71519f 100644 --- a/cm-mlops/script/app-image-classification-onnx-py/customize.py +++ b/cm-mlops/script/app-image-classification-onnx-py/customize.py @@ -1,6 +1,4 @@ -from cmind import utils import os -import shutil def preprocess(i): diff --git a/cm-mlops/script/app-image-classification-torch-py/src/pytorch_classify_preprocessed.py b/cm-mlops/script/app-image-classification-torch-py/src/pytorch_classify_preprocessed.py index f3ee0b587d..adea09065e 100644 --- a/cm-mlops/script/app-image-classification-torch-py/src/pytorch_classify_preprocessed.py +++ b/cm-mlops/script/app-image-classification-torch-py/src/pytorch_classify_preprocessed.py @@ -10,8 +10,7 @@ import torch import torchvision.models as models -import imagenet_helper -from imagenet_helper import (load_preprocessed_batch, image_list, class_labels, BATCH_SIZE) +from imagenet_helper import (load_preprocessed_batch, image_list, BATCH_SIZE) ## Writing the results out: # diff --git a/cm-mlops/script/app-image-classification-tvm-onnx-py/src/classify.py b/cm-mlops/script/app-image-classification-tvm-onnx-py/src/classify.py index 0eb299f2df..e272d1efdd 100644 --- a/cm-mlops/script/app-image-classification-tvm-onnx-py/src/classify.py +++ b/cm-mlops/script/app-image-classification-tvm-onnx-py/src/classify.py @@ -3,12 +3,9 @@ - grigori@octoml.ai """ -import time import os import argparse -import json -from PIL import Image import cv2 import numpy as np @@ -57,7 +54,6 @@ def run_case(dtype, image, target): # Check image import os import json - import sys STAT_REPEAT=os.environ.get('STAT_REPEAT','') if STAT_REPEAT=='' or STAT_REPEAT==None: @@ -72,7 +68,6 @@ def run_case(dtype, image, target): val={} # FGG: set timers - import time timers={} img_orig = cv2.imread(image) diff --git a/cm-mlops/script/app-image-corner-detection/customize.py b/cm-mlops/script/app-image-corner-detection/customize.py index 19536aee3c..71b581a3e7 100644 --- a/cm-mlops/script/app-image-corner-detection/customize.py +++ b/cm-mlops/script/app-image-corner-detection/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/app-loadgen-generic-python/customize.py b/cm-mlops/script/app-loadgen-generic-python/customize.py index b9b490ceac..6665a4406f 100644 --- a/cm-mlops/script/app-loadgen-generic-python/customize.py +++ b/cm-mlops/script/app-loadgen-generic-python/customize.py @@ -2,9 +2,7 @@ # -from cmind import utils import os -import shutil def preprocess(i): diff --git a/cm-mlops/script/app-loadgen-generic-python/src/backend_onnxruntime.py b/cm-mlops/script/app-loadgen-generic-python/src/backend_onnxruntime.py index e95e467b9f..5bd7ca597a 100644 --- a/cm-mlops/script/app-loadgen-generic-python/src/backend_onnxruntime.py +++ b/cm-mlops/script/app-loadgen-generic-python/src/backend_onnxruntime.py @@ -1,7 +1,6 @@ import typing import numpy as np -import onnx import onnxruntime as ort from loadgen.model import Model, ModelFactory, ModelInput, ModelInputSampler diff --git a/cm-mlops/script/app-loadgen-generic-python/src/backend_pytorch.py b/cm-mlops/script/app-loadgen-generic-python/src/backend_pytorch.py index 1fef350b44..558f157fc5 100644 --- a/cm-mlops/script/app-loadgen-generic-python/src/backend_pytorch.py +++ b/cm-mlops/script/app-loadgen-generic-python/src/backend_pytorch.py @@ -1,13 +1,10 @@ # Developer: Grigori Fursin -import typing import importlib import os -import psutil import utils -import numpy as np import torch diff --git a/cm-mlops/script/app-mlperf-inference-ctuning-cpp-tflite/customize.py b/cm-mlops/script/app-mlperf-inference-ctuning-cpp-tflite/customize.py index ebd588c9f2..72ffba357f 100644 --- a/cm-mlops/script/app-mlperf-inference-ctuning-cpp-tflite/customize.py +++ b/cm-mlops/script/app-mlperf-inference-ctuning-cpp-tflite/customize.py @@ -1,6 +1,4 @@ -from cmind import utils import os -import shutil def preprocess(i): diff --git a/cm-mlops/script/app-mlperf-inference-dummy/customize.py b/cm-mlops/script/app-mlperf-inference-dummy/customize.py index a462e26d68..4594bd9960 100644 --- a/cm-mlops/script/app-mlperf-inference-dummy/customize.py +++ b/cm-mlops/script/app-mlperf-inference-dummy/customize.py @@ -1,6 +1,4 @@ -from cmind import utils import os -import shutil def preprocess(i): diff --git a/cm-mlops/script/app-mlperf-inference-intel/customize.py b/cm-mlops/script/app-mlperf-inference-intel/customize.py index 18a03d45d7..e38ffcbe22 100644 --- a/cm-mlops/script/app-mlperf-inference-intel/customize.py +++ b/cm-mlops/script/app-mlperf-inference-intel/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os import shutil @@ -13,7 +12,6 @@ def preprocess(i): if env.get('CM_MLPERF_SKIP_RUN', '') == "yes": return {'return':0} - import json if 'CM_MODEL' not in env: return {'return': 1, 'error': 'Please select a variation specifying the model to run'} if 'CM_MLPERF_BACKEND' not in env: diff --git a/cm-mlops/script/app-mlperf-inference-mlcommons-cpp/customize.py b/cm-mlops/script/app-mlperf-inference-mlcommons-cpp/customize.py index ebe8cf7d97..403316a7d9 100644 --- a/cm-mlops/script/app-mlperf-inference-mlcommons-cpp/customize.py +++ b/cm-mlops/script/app-mlperf-inference-mlcommons-cpp/customize.py @@ -1,6 +1,4 @@ -from cmind import utils import os -import shutil def preprocess(i): diff --git a/cm-mlops/script/app-mlperf-inference-mlcommons-python/customize.py b/cm-mlops/script/app-mlperf-inference-mlcommons-python/customize.py index 23a738453d..9ee34dbff9 100644 --- a/cm-mlops/script/app-mlperf-inference-mlcommons-python/customize.py +++ b/cm-mlops/script/app-mlperf-inference-mlcommons-python/customize.py @@ -1,8 +1,4 @@ -from cmind import utils import os -import json -import shutil -import subprocess def preprocess(i): diff --git a/cm-mlops/script/app-mlperf-inference-mlcommons-python/nvidia/retinanet.py b/cm-mlops/script/app-mlperf-inference-mlcommons-python/nvidia/retinanet.py index 705f1e3539..f68d02ae8c 100644 --- a/cm-mlops/script/app-mlperf-inference-mlcommons-python/nvidia/retinanet.py +++ b/cm-mlops/script/app-mlperf-inference-mlcommons-python/nvidia/retinanet.py @@ -21,13 +21,9 @@ import json import os import sys -import glob -import random import time -import pycuda from PIL import Image from importlib import import_module -from typing import Dict, Tuple, List, Optional from code.common.fix_sys_path import ScopedRestrictedImport #with ScopedRestrictedImport(): @@ -40,9 +36,8 @@ from pycocotools.cocoeval import COCOeval from code.common import logging -from code.common.constants import TRT_LOGGER, Scenario -from code.common.systems.system_list import DETECTED_SYSTEM -from code.common.runner import EngineRunner, get_input_format +from code.common.constants import TRT_LOGGER +from code.common.runner import EngineRunner from code.common.systems.system_list import SystemClassifications from code.plugin import load_trt_plugin RetinanetEntropyCalibrator = import_module("code.retinanet.tensorrt.calibrator").RetinanetEntropyCalibrator diff --git a/cm-mlops/script/app-mlperf-inference-nvidia/customize.py b/cm-mlops/script/app-mlperf-inference-nvidia/customize.py index 2d995af9c4..5823a44fea 100644 --- a/cm-mlops/script/app-mlperf-inference-nvidia/customize.py +++ b/cm-mlops/script/app-mlperf-inference-nvidia/customize.py @@ -1,6 +1,4 @@ -from cmind import utils import os -import shutil def preprocess(i): diff --git a/cm-mlops/script/app-mlperf-inference-qualcomm/customize.py b/cm-mlops/script/app-mlperf-inference-qualcomm/customize.py index fc858d9539..79cac7d1e0 100644 --- a/cm-mlops/script/app-mlperf-inference-qualcomm/customize.py +++ b/cm-mlops/script/app-mlperf-inference-qualcomm/customize.py @@ -1,6 +1,4 @@ -from cmind import utils import os -import shutil def preprocess(i): diff --git a/cm-mlops/script/app-mlperf-inference/customize.py b/cm-mlops/script/app-mlperf-inference/customize.py index 23a7f75ce8..4bb6564b24 100644 --- a/cm-mlops/script/app-mlperf-inference/customize.py +++ b/cm-mlops/script/app-mlperf-inference/customize.py @@ -1,9 +1,7 @@ -from cmind import utils import os import json import shutil -import subprocess import copy import cmind as cm import platform diff --git a/cm-mlops/script/app-mlperf-training-nvidia/customize.py b/cm-mlops/script/app-mlperf-training-nvidia/customize.py index 3c5fdf6d8a..43372504af 100644 --- a/cm-mlops/script/app-mlperf-training-nvidia/customize.py +++ b/cm-mlops/script/app-mlperf-training-nvidia/customize.py @@ -1,8 +1,4 @@ -from cmind import utils import os -import json -import shutil -import subprocess def preprocess(i): diff --git a/cm-mlops/script/app-mlperf-training-reference/customize.py b/cm-mlops/script/app-mlperf-training-reference/customize.py index f7c77bc55a..0e5d3ab67e 100644 --- a/cm-mlops/script/app-mlperf-training-reference/customize.py +++ b/cm-mlops/script/app-mlperf-training-reference/customize.py @@ -1,8 +1,4 @@ -from cmind import utils import os -import json -import shutil -import subprocess def preprocess(i): diff --git a/cm-mlops/script/benchmark-any-mlperf-inference-implementation/customize.py b/cm-mlops/script/benchmark-any-mlperf-inference-implementation/customize.py index ae6462118b..97ef6299a6 100644 --- a/cm-mlops/script/benchmark-any-mlperf-inference-implementation/customize.py +++ b/cm-mlops/script/benchmark-any-mlperf-inference-implementation/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/benchmark-program-mlperf/customize.py b/cm-mlops/script/benchmark-program-mlperf/customize.py index a333b6c078..a7276d6717 100644 --- a/cm-mlops/script/benchmark-program-mlperf/customize.py +++ b/cm-mlops/script/benchmark-program-mlperf/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/benchmark-program/customize.py b/cm-mlops/script/benchmark-program/customize.py index 188ffa6722..c31caa190a 100644 --- a/cm-mlops/script/benchmark-program/customize.py +++ b/cm-mlops/script/benchmark-program/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/build-docker-image/customize.py b/cm-mlops/script/build-docker-image/customize.py index 2cfab08594..64bdd2c531 100644 --- a/cm-mlops/script/build-docker-image/customize.py +++ b/cm-mlops/script/build-docker-image/customize.py @@ -1,6 +1,4 @@ -from cmind import utils import os -from os.path import exists def preprocess(i): diff --git a/cm-mlops/script/build-mlperf-inference-server-nvidia/customize.py b/cm-mlops/script/build-mlperf-inference-server-nvidia/customize.py index e540beb0bc..b871fa0f53 100644 --- a/cm-mlops/script/build-mlperf-inference-server-nvidia/customize.py +++ b/cm-mlops/script/build-mlperf-inference-server-nvidia/customize.py @@ -1,6 +1,4 @@ -from cmind import utils import os -import shutil def preprocess(i): diff --git a/cm-mlops/script/calibrate-model-for.qaic/customize.py b/cm-mlops/script/calibrate-model-for.qaic/customize.py index 62c4dbdbae..8507bc9c23 100644 --- a/cm-mlops/script/calibrate-model-for.qaic/customize.py +++ b/cm-mlops/script/calibrate-model-for.qaic/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os import sys import yaml diff --git a/cm-mlops/script/compile-model-for.qaic/customize.py b/cm-mlops/script/compile-model-for.qaic/customize.py index 1e178f1897..e12e1ebfb6 100644 --- a/cm-mlops/script/compile-model-for.qaic/customize.py +++ b/cm-mlops/script/compile-model-for.qaic/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/compile-program/customize.py b/cm-mlops/script/compile-program/customize.py index 73a3eeb82b..b23833da34 100644 --- a/cm-mlops/script/compile-program/customize.py +++ b/cm-mlops/script/compile-program/customize.py @@ -1,5 +1,3 @@ -from cmind import utils -import os def preprocess(i): os_info = i['os_info'] diff --git a/cm-mlops/script/convert-csv-to-md/customize.py b/cm-mlops/script/convert-csv-to-md/customize.py index 8181e9437f..2edc85947a 100644 --- a/cm-mlops/script/convert-csv-to-md/customize.py +++ b/cm-mlops/script/convert-csv-to-md/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/convert-ml-model-huggingface-to-onnx/customize.py b/cm-mlops/script/convert-ml-model-huggingface-to-onnx/customize.py index e02a1fb6af..96e66e21e8 100644 --- a/cm-mlops/script/convert-ml-model-huggingface-to-onnx/customize.py +++ b/cm-mlops/script/convert-ml-model-huggingface-to-onnx/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/create-conda-env/customize.py b/cm-mlops/script/create-conda-env/customize.py index 3d4b17e7fd..035ae600e3 100644 --- a/cm-mlops/script/create-conda-env/customize.py +++ b/cm-mlops/script/create-conda-env/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/create-fpgaconvnet-app-tinyml/customize.py b/cm-mlops/script/create-fpgaconvnet-app-tinyml/customize.py index c139e3a476..d4e16b9252 100644 --- a/cm-mlops/script/create-fpgaconvnet-app-tinyml/customize.py +++ b/cm-mlops/script/create-fpgaconvnet-app-tinyml/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/create-fpgaconvnet-config-tinyml/customize.py b/cm-mlops/script/create-fpgaconvnet-config-tinyml/customize.py index 8590890bb9..16dd6176fd 100644 --- a/cm-mlops/script/create-fpgaconvnet-config-tinyml/customize.py +++ b/cm-mlops/script/create-fpgaconvnet-config-tinyml/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/create-patch/customize.py b/cm-mlops/script/create-patch/customize.py index 2990d29ff0..d207ca184b 100644 --- a/cm-mlops/script/create-patch/customize.py +++ b/cm-mlops/script/create-patch/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/destroy-terraform/customize.py b/cm-mlops/script/destroy-terraform/customize.py index b10640e6d3..4a755af457 100644 --- a/cm-mlops/script/destroy-terraform/customize.py +++ b/cm-mlops/script/destroy-terraform/customize.py @@ -1,5 +1,3 @@ -from cmind import utils -import os def preprocess(i): diff --git a/cm-mlops/script/detect-sudo/customize.py b/cm-mlops/script/detect-sudo/customize.py index 2f6fa411a4..bfbb3fcce2 100644 --- a/cm-mlops/script/detect-sudo/customize.py +++ b/cm-mlops/script/detect-sudo/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os, subprocess def preprocess(i): diff --git a/cm-mlops/script/download-and-extract/customize.py b/cm-mlops/script/download-and-extract/customize.py index db27947e60..9fe92ccb0d 100644 --- a/cm-mlops/script/download-and-extract/customize.py +++ b/cm-mlops/script/download-and-extract/customize.py @@ -1,6 +1,4 @@ -from cmind import utils import os -import hashlib def preprocess(i): diff --git a/cm-mlops/script/download-file/customize.py b/cm-mlops/script/download-file/customize.py index 9c68d96083..84fe9c3d35 100644 --- a/cm-mlops/script/download-file/customize.py +++ b/cm-mlops/script/download-file/customize.py @@ -1,6 +1,4 @@ -from cmind import utils import os -import hashlib def preprocess(i): diff --git a/cm-mlops/script/download-torrent/customize.py b/cm-mlops/script/download-torrent/customize.py index 52b57f253b..a0450f6833 100644 --- a/cm-mlops/script/download-torrent/customize.py +++ b/cm-mlops/script/download-torrent/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/dump-pip-freeze/customize.py b/cm-mlops/script/dump-pip-freeze/customize.py index eb5eeab8af..ecccf6eebb 100644 --- a/cm-mlops/script/dump-pip-freeze/customize.py +++ b/cm-mlops/script/dump-pip-freeze/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/extract-file/customize.py b/cm-mlops/script/extract-file/customize.py index 6bbd2fe753..c6c1a3fffd 100644 --- a/cm-mlops/script/extract-file/customize.py +++ b/cm-mlops/script/extract-file/customize.py @@ -1,6 +1,4 @@ -from cmind import utils import os -import hashlib def preprocess(i): diff --git a/cm-mlops/script/fail/customize.py b/cm-mlops/script/fail/customize.py index 855c39b5bb..e4626c29bb 100644 --- a/cm-mlops/script/fail/customize.py +++ b/cm-mlops/script/fail/customize.py @@ -1,5 +1,3 @@ -from cmind import utils -import os def preprocess(i): diff --git a/cm-mlops/script/flash-tinyml-binary/customize.py b/cm-mlops/script/flash-tinyml-binary/customize.py index a2062be59c..fa3c49bf30 100644 --- a/cm-mlops/script/flash-tinyml-binary/customize.py +++ b/cm-mlops/script/flash-tinyml-binary/customize.py @@ -1,5 +1,3 @@ -from cmind import utils -import os def preprocess(i): diff --git a/cm-mlops/script/generate-mlperf-inference-submission/customize.py b/cm-mlops/script/generate-mlperf-inference-submission/customize.py index c29b34e241..ec51f737e0 100644 --- a/cm-mlops/script/generate-mlperf-inference-submission/customize.py +++ b/cm-mlops/script/generate-mlperf-inference-submission/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os import json import shutil diff --git a/cm-mlops/script/generate-mlperf-inference-user-conf/customize.py b/cm-mlops/script/generate-mlperf-inference-user-conf/customize.py index 87e10eeeed..02f7f10b10 100644 --- a/cm-mlops/script/generate-mlperf-inference-user-conf/customize.py +++ b/cm-mlops/script/generate-mlperf-inference-user-conf/customize.py @@ -1,9 +1,5 @@ -from cmind import utils import os -import json import shutil -import subprocess -import cmind as cm import sys def preprocess(i): diff --git a/cm-mlops/script/generate-mlperf-tiny-report/customize.py b/cm-mlops/script/generate-mlperf-tiny-report/customize.py index 59b16019fb..abf73004b8 100644 --- a/cm-mlops/script/generate-mlperf-tiny-report/customize.py +++ b/cm-mlops/script/generate-mlperf-tiny-report/customize.py @@ -1,9 +1,6 @@ import cmind as cm -from cmind import utils import os -import subprocess -import json import shutil def preprocess(i): diff --git a/cm-mlops/script/generate-mlperf-tiny-submission/customize.py b/cm-mlops/script/generate-mlperf-tiny-submission/customize.py index 026c6d623f..38825aeb30 100644 --- a/cm-mlops/script/generate-mlperf-tiny-submission/customize.py +++ b/cm-mlops/script/generate-mlperf-tiny-submission/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os import json import shutil diff --git a/cm-mlops/script/get-android-sdk/customize.py b/cm-mlops/script/get-android-sdk/customize.py index 88248df9d9..be08e8134d 100644 --- a/cm-mlops/script/get-android-sdk/customize.py +++ b/cm-mlops/script/get-android-sdk/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-aocl/customize.py b/cm-mlops/script/get-aocl/customize.py index e67702b8ca..29352e5abf 100644 --- a/cm-mlops/script/get-aocl/customize.py +++ b/cm-mlops/script/get-aocl/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-aria2/customize.py b/cm-mlops/script/get-aria2/customize.py index 3c65bbe4f6..283be06ebf 100644 --- a/cm-mlops/script/get-aria2/customize.py +++ b/cm-mlops/script/get-aria2/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-aws-cli/customize.py b/cm-mlops/script/get-aws-cli/customize.py index af7fd1603b..d7cd9a0e97 100644 --- a/cm-mlops/script/get-aws-cli/customize.py +++ b/cm-mlops/script/get-aws-cli/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-bazel/customize.py b/cm-mlops/script/get-bazel/customize.py index c4622a7f4a..8b01e3db16 100644 --- a/cm-mlops/script/get-bazel/customize.py +++ b/cm-mlops/script/get-bazel/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-blis/customize.py b/cm-mlops/script/get-blis/customize.py index 063366ed21..f561168e8c 100644 --- a/cm-mlops/script/get-blis/customize.py +++ b/cm-mlops/script/get-blis/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-cl/customize.py b/cm-mlops/script/get-cl/customize.py index 1d205d8fdf..a3e509e3ec 100644 --- a/cm-mlops/script/get-cl/customize.py +++ b/cm-mlops/script/get-cl/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-cmake/customize.py b/cm-mlops/script/get-cmake/customize.py index ebfd0c319a..41fdcb5962 100644 --- a/cm-mlops/script/get-cmake/customize.py +++ b/cm-mlops/script/get-cmake/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-cmsis_5/customize.py b/cm-mlops/script/get-cmsis_5/customize.py index af9b13c464..92c94105aa 100644 --- a/cm-mlops/script/get-cmsis_5/customize.py +++ b/cm-mlops/script/get-cmsis_5/customize.py @@ -1,6 +1,4 @@ -from cmind import utils import os -import shutil def preprocess(i): diff --git a/cm-mlops/script/get-compiler-flags/customize.py b/cm-mlops/script/get-compiler-flags/customize.py index 23ccbe6472..13c2e19459 100644 --- a/cm-mlops/script/get-compiler-flags/customize.py +++ b/cm-mlops/script/get-compiler-flags/customize.py @@ -1,5 +1,3 @@ -from cmind import utils -import os import subprocess def preprocess(i): diff --git a/cm-mlops/script/get-compiler-rust/customize.py b/cm-mlops/script/get-compiler-rust/customize.py index cd42edf7bf..041d947cc0 100644 --- a/cm-mlops/script/get-compiler-rust/customize.py +++ b/cm-mlops/script/get-compiler-rust/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-conda/customize.py b/cm-mlops/script/get-conda/customize.py index d8ef13e343..656597ab50 100644 --- a/cm-mlops/script/get-conda/customize.py +++ b/cm-mlops/script/get-conda/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-croissant/customize.py b/cm-mlops/script/get-croissant/customize.py index 1ced8a4846..0a72a950c6 100644 --- a/cm-mlops/script/get-croissant/customize.py +++ b/cm-mlops/script/get-croissant/customize.py @@ -1,5 +1,3 @@ -from cmind import utils -import os def preprocess(i): diff --git a/cm-mlops/script/get-cuda-devices/customize.py b/cm-mlops/script/get-cuda-devices/customize.py index 8236b8029e..3f06e96b35 100644 --- a/cm-mlops/script/get-cuda-devices/customize.py +++ b/cm-mlops/script/get-cuda-devices/customize.py @@ -1,6 +1,4 @@ from cmind import utils -import os -import subprocess def postprocess(i): diff --git a/cm-mlops/script/get-cuda/customize.py b/cm-mlops/script/get-cuda/customize.py index 95984515bc..f74bba3ed6 100644 --- a/cm-mlops/script/get-cuda/customize.py +++ b/cm-mlops/script/get-cuda/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os import json diff --git a/cm-mlops/script/get-cudnn/customize.py b/cm-mlops/script/get-cudnn/customize.py index 12c45e5a04..74a725b179 100644 --- a/cm-mlops/script/get-cudnn/customize.py +++ b/cm-mlops/script/get-cudnn/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os import tarfile import shutil diff --git a/cm-mlops/script/get-dataset-cifar10/customize.py b/cm-mlops/script/get-dataset-cifar10/customize.py index b624357402..c559c7e8ce 100644 --- a/cm-mlops/script/get-dataset-cifar10/customize.py +++ b/cm-mlops/script/get-dataset-cifar10/customize.py @@ -1,6 +1,3 @@ -from cmind import utils -import os -import shutil def preprocess(i): diff --git a/cm-mlops/script/get-dataset-cnndm/customize.py b/cm-mlops/script/get-dataset-cnndm/customize.py index 27363d8000..3787865bdd 100644 --- a/cm-mlops/script/get-dataset-cnndm/customize.py +++ b/cm-mlops/script/get-dataset-cnndm/customize.py @@ -1,6 +1,4 @@ -from cmind import utils import os -import shutil def preprocess(i): diff --git a/cm-mlops/script/get-dataset-coco/customize.py b/cm-mlops/script/get-dataset-coco/customize.py index 78ced4d7bd..2af4fa2aa0 100644 --- a/cm-mlops/script/get-dataset-coco/customize.py +++ b/cm-mlops/script/get-dataset-coco/customize.py @@ -1,6 +1,4 @@ -from cmind import utils import os -import shutil def preprocess(i): diff --git a/cm-mlops/script/get-dataset-coco2014/customize.py b/cm-mlops/script/get-dataset-coco2014/customize.py index c48f71616d..3486941b33 100644 --- a/cm-mlops/script/get-dataset-coco2014/customize.py +++ b/cm-mlops/script/get-dataset-coco2014/customize.py @@ -1,6 +1,4 @@ -from cmind import utils import os -import shutil def preprocess(i): diff --git a/cm-mlops/script/get-dataset-imagenet-helper/customize.py b/cm-mlops/script/get-dataset-imagenet-helper/customize.py index b1b7d90de6..a1e077c71b 100644 --- a/cm-mlops/script/get-dataset-imagenet-helper/customize.py +++ b/cm-mlops/script/get-dataset-imagenet-helper/customize.py @@ -1,5 +1,3 @@ -from cmind import utils -import os def postprocess(i): env = i['env'] diff --git a/cm-mlops/script/get-dataset-imagenet-train/customize.py b/cm-mlops/script/get-dataset-imagenet-train/customize.py index 2eba2b9b15..ef32b69d72 100644 --- a/cm-mlops/script/get-dataset-imagenet-train/customize.py +++ b/cm-mlops/script/get-dataset-imagenet-train/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-dataset-imagenet-val/customize.py b/cm-mlops/script/get-dataset-imagenet-val/customize.py index e35af9664f..ff5255a852 100644 --- a/cm-mlops/script/get-dataset-imagenet-val/customize.py +++ b/cm-mlops/script/get-dataset-imagenet-val/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-dataset-kits19/customize.py b/cm-mlops/script/get-dataset-kits19/customize.py index 97c583e9d5..912b35d402 100644 --- a/cm-mlops/script/get-dataset-kits19/customize.py +++ b/cm-mlops/script/get-dataset-kits19/customize.py @@ -1,6 +1,4 @@ -from cmind import utils import os -import shutil def preprocess(i): diff --git a/cm-mlops/script/get-dataset-librispeech/customize.py b/cm-mlops/script/get-dataset-librispeech/customize.py index 85ec8e43c9..a87e1738c4 100644 --- a/cm-mlops/script/get-dataset-librispeech/customize.py +++ b/cm-mlops/script/get-dataset-librispeech/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-dataset-openimages-annotations/customize.py b/cm-mlops/script/get-dataset-openimages-annotations/customize.py index fa5f4b2630..04302b2c23 100644 --- a/cm-mlops/script/get-dataset-openimages-annotations/customize.py +++ b/cm-mlops/script/get-dataset-openimages-annotations/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-dataset-openimages-calibration/customize.py b/cm-mlops/script/get-dataset-openimages-calibration/customize.py index 71e1a646d4..faa262c1b8 100644 --- a/cm-mlops/script/get-dataset-openimages-calibration/customize.py +++ b/cm-mlops/script/get-dataset-openimages-calibration/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-dataset-openimages/customize.py b/cm-mlops/script/get-dataset-openimages/customize.py index 3040fff2ba..5d2fbacaad 100644 --- a/cm-mlops/script/get-dataset-openimages/customize.py +++ b/cm-mlops/script/get-dataset-openimages/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os import shutil diff --git a/cm-mlops/script/get-dataset-openorca/customize.py b/cm-mlops/script/get-dataset-openorca/customize.py index 059c83826d..5ab2bc5979 100644 --- a/cm-mlops/script/get-dataset-openorca/customize.py +++ b/cm-mlops/script/get-dataset-openorca/customize.py @@ -1,6 +1,4 @@ -from cmind import utils import os -import shutil def preprocess(i): diff --git a/cm-mlops/script/get-dataset-squad-vocab/customize.py b/cm-mlops/script/get-dataset-squad-vocab/customize.py index 028e86137f..9a6a669200 100644 --- a/cm-mlops/script/get-dataset-squad-vocab/customize.py +++ b/cm-mlops/script/get-dataset-squad-vocab/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-dataset-squad/customize.py b/cm-mlops/script/get-dataset-squad/customize.py index 0575d782b5..325a810bc1 100644 --- a/cm-mlops/script/get-dataset-squad/customize.py +++ b/cm-mlops/script/get-dataset-squad/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-dlrm-data-mlperf-inference/customize.py b/cm-mlops/script/get-dlrm-data-mlperf-inference/customize.py index d26e2b195a..917ac2e17f 100644 --- a/cm-mlops/script/get-dlrm-data-mlperf-inference/customize.py +++ b/cm-mlops/script/get-dlrm-data-mlperf-inference/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-dlrm/customize.py b/cm-mlops/script/get-dlrm/customize.py index 479efc350c..0bf9c8a8eb 100644 --- a/cm-mlops/script/get-dlrm/customize.py +++ b/cm-mlops/script/get-dlrm/customize.py @@ -1,6 +1,4 @@ -from cmind import utils import os -import shutil def preprocess(i): diff --git a/cm-mlops/script/get-gcc/customize.py b/cm-mlops/script/get-gcc/customize.py index b29f38e13b..c8cf26f205 100644 --- a/cm-mlops/script/get-gcc/customize.py +++ b/cm-mlops/script/get-gcc/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-generic-python-lib/customize.py b/cm-mlops/script/get-generic-python-lib/customize.py index b15e2d9e00..ebd7a86ed7 100644 --- a/cm-mlops/script/get-generic-python-lib/customize.py +++ b/cm-mlops/script/get-generic-python-lib/customize.py @@ -1,6 +1,3 @@ -from cmind import utils -import os -import cmind as cm def preprocess(i): diff --git a/cm-mlops/script/get-generic-sys-util/customize.py b/cm-mlops/script/get-generic-sys-util/customize.py index ef0bc33e8c..47f298cede 100644 --- a/cm-mlops/script/get-generic-sys-util/customize.py +++ b/cm-mlops/script/get-generic-sys-util/customize.py @@ -1,5 +1,3 @@ -from cmind import utils -import os def preprocess(i): diff --git a/cm-mlops/script/get-git-repo/customize.py b/cm-mlops/script/get-git-repo/customize.py index d1e92f7040..fc49212907 100644 --- a/cm-mlops/script/get-git-repo/customize.py +++ b/cm-mlops/script/get-git-repo/customize.py @@ -1,6 +1,4 @@ -from cmind import utils import os -import shutil def preprocess(i): diff --git a/cm-mlops/script/get-github-cli/customize.py b/cm-mlops/script/get-github-cli/customize.py index 8c64641189..26b923a22f 100644 --- a/cm-mlops/script/get-github-cli/customize.py +++ b/cm-mlops/script/get-github-cli/customize.py @@ -1,5 +1,3 @@ -from cmind import utils -import os def preprocess(i): diff --git a/cm-mlops/script/get-go/customize.py b/cm-mlops/script/get-go/customize.py index d65126585b..83cb75f2d2 100644 --- a/cm-mlops/script/get-go/customize.py +++ b/cm-mlops/script/get-go/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-google-saxml/customize.py b/cm-mlops/script/get-google-saxml/customize.py index d38c8c2ca5..452ffdf07d 100644 --- a/cm-mlops/script/get-google-saxml/customize.py +++ b/cm-mlops/script/get-google-saxml/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-google-test/customize.py b/cm-mlops/script/get-google-test/customize.py index 299778e3f7..d978cafc21 100644 --- a/cm-mlops/script/get-google-test/customize.py +++ b/cm-mlops/script/get-google-test/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-ipol-src/customize.py b/cm-mlops/script/get-ipol-src/customize.py index f2b5dd1fca..2ce7db2a52 100644 --- a/cm-mlops/script/get-ipol-src/customize.py +++ b/cm-mlops/script/get-ipol-src/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-java/customize.py b/cm-mlops/script/get-java/customize.py index 8cfc211bcf..7074f1e960 100644 --- a/cm-mlops/script/get-java/customize.py +++ b/cm-mlops/script/get-java/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-javac/customize.py b/cm-mlops/script/get-javac/customize.py index f7e076bd93..c33cced590 100644 --- a/cm-mlops/script/get-javac/customize.py +++ b/cm-mlops/script/get-javac/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-lib-armnn/customize.py b/cm-mlops/script/get-lib-armnn/customize.py index 6476cc7894..90c9d8e096 100644 --- a/cm-mlops/script/get-lib-armnn/customize.py +++ b/cm-mlops/script/get-lib-armnn/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-lib-dnnl/customize.py b/cm-mlops/script/get-lib-dnnl/customize.py index 0d03fd4de0..b6d9db991e 100644 --- a/cm-mlops/script/get-lib-dnnl/customize.py +++ b/cm-mlops/script/get-lib-dnnl/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-lib-protobuf/customize.py b/cm-mlops/script/get-lib-protobuf/customize.py index c9e641eb44..454c9921f1 100644 --- a/cm-mlops/script/get-lib-protobuf/customize.py +++ b/cm-mlops/script/get-lib-protobuf/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-lib-qaic-api/customize.py b/cm-mlops/script/get-lib-qaic-api/customize.py index 1c95c558cd..d63e7054c7 100644 --- a/cm-mlops/script/get-lib-qaic-api/customize.py +++ b/cm-mlops/script/get-lib-qaic-api/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-llvm/customize.py b/cm-mlops/script/get-llvm/customize.py index c9d872a23f..2707b9eb3e 100644 --- a/cm-mlops/script/get-llvm/customize.py +++ b/cm-mlops/script/get-llvm/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-microtvm/customize.py b/cm-mlops/script/get-microtvm/customize.py index 327760590a..67c380bfc6 100644 --- a/cm-mlops/script/get-microtvm/customize.py +++ b/cm-mlops/script/get-microtvm/customize.py @@ -1,6 +1,4 @@ -from cmind import utils import os -import shutil def preprocess(i): diff --git a/cm-mlops/script/get-ml-model-3d-unet-kits19/customize.py b/cm-mlops/script/get-ml-model-3d-unet-kits19/customize.py index 65961f1565..64e18d56f9 100644 --- a/cm-mlops/script/get-ml-model-3d-unet-kits19/customize.py +++ b/cm-mlops/script/get-ml-model-3d-unet-kits19/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-ml-model-bert-large-squad/customize.py b/cm-mlops/script/get-ml-model-bert-large-squad/customize.py index 1c8e02aa43..141eb5124f 100644 --- a/cm-mlops/script/get-ml-model-bert-large-squad/customize.py +++ b/cm-mlops/script/get-ml-model-bert-large-squad/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-ml-model-efficientnet-lite/customize.py b/cm-mlops/script/get-ml-model-efficientnet-lite/customize.py index 5571383453..fcd623db82 100644 --- a/cm-mlops/script/get-ml-model-efficientnet-lite/customize.py +++ b/cm-mlops/script/get-ml-model-efficientnet-lite/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-ml-model-gptj/customize.py b/cm-mlops/script/get-ml-model-gptj/customize.py index d719f0095f..eb27352e6b 100644 --- a/cm-mlops/script/get-ml-model-gptj/customize.py +++ b/cm-mlops/script/get-ml-model-gptj/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-ml-model-huggingface-zoo/customize.py b/cm-mlops/script/get-ml-model-huggingface-zoo/customize.py index 8770e5bcb4..9adb10a48e 100644 --- a/cm-mlops/script/get-ml-model-huggingface-zoo/customize.py +++ b/cm-mlops/script/get-ml-model-huggingface-zoo/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-ml-model-llama2/customize.py b/cm-mlops/script/get-ml-model-llama2/customize.py index 66edd085f8..b1235f1fac 100644 --- a/cm-mlops/script/get-ml-model-llama2/customize.py +++ b/cm-mlops/script/get-ml-model-llama2/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-ml-model-mobilenet/customize.py b/cm-mlops/script/get-ml-model-mobilenet/customize.py index 5571383453..fcd623db82 100644 --- a/cm-mlops/script/get-ml-model-mobilenet/customize.py +++ b/cm-mlops/script/get-ml-model-mobilenet/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-ml-model-neuralmagic-zoo/customize.py b/cm-mlops/script/get-ml-model-neuralmagic-zoo/customize.py index 7ba85a9d58..7c30b60260 100644 --- a/cm-mlops/script/get-ml-model-neuralmagic-zoo/customize.py +++ b/cm-mlops/script/get-ml-model-neuralmagic-zoo/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-ml-model-resnet50/customize.py b/cm-mlops/script/get-ml-model-resnet50/customize.py index 4f30e94181..8a0302ebc3 100644 --- a/cm-mlops/script/get-ml-model-resnet50/customize.py +++ b/cm-mlops/script/get-ml-model-resnet50/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-ml-model-retinanet-nvidia/customize.py b/cm-mlops/script/get-ml-model-retinanet-nvidia/customize.py index 6da132316e..c77dd97cb0 100644 --- a/cm-mlops/script/get-ml-model-retinanet-nvidia/customize.py +++ b/cm-mlops/script/get-ml-model-retinanet-nvidia/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-ml-model-retinanet-nvidia/nvidia_patch_retinanet_efficientnms.py b/cm-mlops/script/get-ml-model-retinanet-nvidia/nvidia_patch_retinanet_efficientnms.py index e076e4072e..e89a4677a0 100644 --- a/cm-mlops/script/get-ml-model-retinanet-nvidia/nvidia_patch_retinanet_efficientnms.py +++ b/cm-mlops/script/get-ml-model-retinanet-nvidia/nvidia_patch_retinanet_efficientnms.py @@ -12,11 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -import torch import onnx -import argparse -import json -import re import onnx_graphsurgeon as gs import numpy as np diff --git a/cm-mlops/script/get-ml-model-retinanet/customize.py b/cm-mlops/script/get-ml-model-retinanet/customize.py index cc875212a4..ab86ce6815 100644 --- a/cm-mlops/script/get-ml-model-retinanet/customize.py +++ b/cm-mlops/script/get-ml-model-retinanet/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-ml-model-retinanet/node-precision-info.py b/cm-mlops/script/get-ml-model-retinanet/node-precision-info.py index 100a64ecbb..f55e584a8c 100644 --- a/cm-mlops/script/get-ml-model-retinanet/node-precision-info.py +++ b/cm-mlops/script/get-ml-model-retinanet/node-precision-info.py @@ -1,5 +1,4 @@ import onnx -import os import sys import argparse import yaml diff --git a/cm-mlops/script/get-ml-model-rnnt/customize.py b/cm-mlops/script/get-ml-model-rnnt/customize.py index 65961f1565..64e18d56f9 100644 --- a/cm-mlops/script/get-ml-model-rnnt/customize.py +++ b/cm-mlops/script/get-ml-model-rnnt/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-ml-model-stable-diffusion/customize.py b/cm-mlops/script/get-ml-model-stable-diffusion/customize.py index 6f001eb274..4ac3e16d68 100644 --- a/cm-mlops/script/get-ml-model-stable-diffusion/customize.py +++ b/cm-mlops/script/get-ml-model-stable-diffusion/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-ml-model-tiny-resnet/customize.py b/cm-mlops/script/get-ml-model-tiny-resnet/customize.py index 4e690eaf15..7b64fd3682 100644 --- a/cm-mlops/script/get-ml-model-tiny-resnet/customize.py +++ b/cm-mlops/script/get-ml-model-tiny-resnet/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-ml-model-using-imagenet-from-model-zoo/customize.py b/cm-mlops/script/get-ml-model-using-imagenet-from-model-zoo/customize.py index 4fba39521b..63bff485c6 100644 --- a/cm-mlops/script/get-ml-model-using-imagenet-from-model-zoo/customize.py +++ b/cm-mlops/script/get-ml-model-using-imagenet-from-model-zoo/customize.py @@ -1,5 +1,3 @@ -from cmind import utils -import os def preprocess(i): diff --git a/cm-mlops/script/get-mlperf-inference-intel-scratch-space/customize.py b/cm-mlops/script/get-mlperf-inference-intel-scratch-space/customize.py index 37d9f4a5ed..c3f71367a0 100644 --- a/cm-mlops/script/get-mlperf-inference-intel-scratch-space/customize.py +++ b/cm-mlops/script/get-mlperf-inference-intel-scratch-space/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-mlperf-inference-loadgen/customize.py b/cm-mlops/script/get-mlperf-inference-loadgen/customize.py index 35108ed054..dc91a59419 100644 --- a/cm-mlops/script/get-mlperf-inference-loadgen/customize.py +++ b/cm-mlops/script/get-mlperf-inference-loadgen/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-mlperf-inference-nvidia-common-code/customize.py b/cm-mlops/script/get-mlperf-inference-nvidia-common-code/customize.py index 57e0ea43f4..9a28830d48 100644 --- a/cm-mlops/script/get-mlperf-inference-nvidia-common-code/customize.py +++ b/cm-mlops/script/get-mlperf-inference-nvidia-common-code/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-mlperf-inference-nvidia-scratch-space/customize.py b/cm-mlops/script/get-mlperf-inference-nvidia-scratch-space/customize.py index 1bfa6c9580..0facb89d94 100644 --- a/cm-mlops/script/get-mlperf-inference-nvidia-scratch-space/customize.py +++ b/cm-mlops/script/get-mlperf-inference-nvidia-scratch-space/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-mlperf-inference-results-dir/customize.py b/cm-mlops/script/get-mlperf-inference-results-dir/customize.py index 8f013816a1..c23de422fa 100644 --- a/cm-mlops/script/get-mlperf-inference-results-dir/customize.py +++ b/cm-mlops/script/get-mlperf-inference-results-dir/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-mlperf-inference-results/customize.py b/cm-mlops/script/get-mlperf-inference-results/customize.py index 747d99e52d..50f7e57b04 100644 --- a/cm-mlops/script/get-mlperf-inference-results/customize.py +++ b/cm-mlops/script/get-mlperf-inference-results/customize.py @@ -1,6 +1,3 @@ -from cmind import utils -import os -import shutil def preprocess(i): diff --git a/cm-mlops/script/get-mlperf-inference-src/customize.py b/cm-mlops/script/get-mlperf-inference-src/customize.py index 7916a1bde2..7d85609e58 100644 --- a/cm-mlops/script/get-mlperf-inference-src/customize.py +++ b/cm-mlops/script/get-mlperf-inference-src/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os import shutil diff --git a/cm-mlops/script/get-mlperf-inference-submission-dir/customize.py b/cm-mlops/script/get-mlperf-inference-submission-dir/customize.py index 92fb3735ce..90bba929cd 100644 --- a/cm-mlops/script/get-mlperf-inference-submission-dir/customize.py +++ b/cm-mlops/script/get-mlperf-inference-submission-dir/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-mlperf-inference-sut-configs/customize.py b/cm-mlops/script/get-mlperf-inference-sut-configs/customize.py index f074ed30ba..165c77b581 100644 --- a/cm-mlops/script/get-mlperf-inference-sut-configs/customize.py +++ b/cm-mlops/script/get-mlperf-inference-sut-configs/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os import yaml import shutil diff --git a/cm-mlops/script/get-mlperf-inference-sut-description/customize.py b/cm-mlops/script/get-mlperf-inference-sut-description/customize.py index cd0c2f7544..12790eb3dc 100644 --- a/cm-mlops/script/get-mlperf-inference-sut-description/customize.py +++ b/cm-mlops/script/get-mlperf-inference-sut-description/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os import json import shutil diff --git a/cm-mlops/script/get-mlperf-inference-sut-description/get_memory_info.py b/cm-mlops/script/get-mlperf-inference-sut-description/get_memory_info.py index aeadde557b..feff0bd82a 100644 --- a/cm-mlops/script/get-mlperf-inference-sut-description/get_memory_info.py +++ b/cm-mlops/script/get-mlperf-inference-sut-description/get_memory_info.py @@ -1,4 +1,3 @@ -import os import json from dmiparser import DmiParser diff --git a/cm-mlops/script/get-mlperf-inference-utils/customize.py b/cm-mlops/script/get-mlperf-inference-utils/customize.py index 8c4bbbbbf4..23a9609f32 100644 --- a/cm-mlops/script/get-mlperf-inference-utils/customize.py +++ b/cm-mlops/script/get-mlperf-inference-utils/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os import sys diff --git a/cm-mlops/script/get-mlperf-inference-utils/mlperf_utils.py b/cm-mlops/script/get-mlperf-inference-utils/mlperf_utils.py index 8b5b967a3a..9e11fba25d 100644 --- a/cm-mlops/script/get-mlperf-inference-utils/mlperf_utils.py +++ b/cm-mlops/script/get-mlperf-inference-utils/mlperf_utils.py @@ -1,4 +1,3 @@ -import sys import os import submission_checker as checker from log_parser import MLPerfLog diff --git a/cm-mlops/script/get-mlperf-logging/customize.py b/cm-mlops/script/get-mlperf-logging/customize.py index ac1a2a641e..d3b32345a8 100644 --- a/cm-mlops/script/get-mlperf-logging/customize.py +++ b/cm-mlops/script/get-mlperf-logging/customize.py @@ -1,6 +1,3 @@ -from cmind import utils -import os -import shutil def preprocess(i): diff --git a/cm-mlops/script/get-mlperf-power-dev/customize.py b/cm-mlops/script/get-mlperf-power-dev/customize.py index 2af085d740..ad05c1b1dd 100644 --- a/cm-mlops/script/get-mlperf-power-dev/customize.py +++ b/cm-mlops/script/get-mlperf-power-dev/customize.py @@ -1,6 +1,3 @@ -from cmind import utils -import os -import shutil def preprocess(i): diff --git a/cm-mlops/script/get-mlperf-tiny-eembc-energy-runner-src/customize.py b/cm-mlops/script/get-mlperf-tiny-eembc-energy-runner-src/customize.py index 93a162b980..6c7cbe1a88 100644 --- a/cm-mlops/script/get-mlperf-tiny-eembc-energy-runner-src/customize.py +++ b/cm-mlops/script/get-mlperf-tiny-eembc-energy-runner-src/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os import shutil diff --git a/cm-mlops/script/get-mlperf-tiny-src/customize.py b/cm-mlops/script/get-mlperf-tiny-src/customize.py index f361f009f8..c9ebdbf1b1 100644 --- a/cm-mlops/script/get-mlperf-tiny-src/customize.py +++ b/cm-mlops/script/get-mlperf-tiny-src/customize.py @@ -1,6 +1,4 @@ -from cmind import utils import os -import shutil def preprocess(i): diff --git a/cm-mlops/script/get-mlperf-training-nvidia-code/customize.py b/cm-mlops/script/get-mlperf-training-nvidia-code/customize.py index a58acfbad3..bb479bf204 100644 --- a/cm-mlops/script/get-mlperf-training-nvidia-code/customize.py +++ b/cm-mlops/script/get-mlperf-training-nvidia-code/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-mlperf-training-src/customize.py b/cm-mlops/script/get-mlperf-training-src/customize.py index d2de607ed2..ec463e042e 100644 --- a/cm-mlops/script/get-mlperf-training-src/customize.py +++ b/cm-mlops/script/get-mlperf-training-src/customize.py @@ -1,6 +1,4 @@ -from cmind import utils import os -import shutil def preprocess(i): diff --git a/cm-mlops/script/get-nvidia-mitten/customize.py b/cm-mlops/script/get-nvidia-mitten/customize.py index d38c8c2ca5..452ffdf07d 100644 --- a/cm-mlops/script/get-nvidia-mitten/customize.py +++ b/cm-mlops/script/get-nvidia-mitten/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-onnxruntime-prebuilt/customize.py b/cm-mlops/script/get-onnxruntime-prebuilt/customize.py index 786bc8122c..6593eafdb6 100644 --- a/cm-mlops/script/get-onnxruntime-prebuilt/customize.py +++ b/cm-mlops/script/get-onnxruntime-prebuilt/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-openssl/customize.py b/cm-mlops/script/get-openssl/customize.py index 9d126fd79e..3baf77f683 100644 --- a/cm-mlops/script/get-openssl/customize.py +++ b/cm-mlops/script/get-openssl/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-preprocessed-dataset-criteo/customize.py b/cm-mlops/script/get-preprocessed-dataset-criteo/customize.py index d6826e38cb..9b010a0da8 100644 --- a/cm-mlops/script/get-preprocessed-dataset-criteo/customize.py +++ b/cm-mlops/script/get-preprocessed-dataset-criteo/customize.py @@ -1,6 +1,4 @@ -from cmind import utils import os -import shutil def preprocess(i): diff --git a/cm-mlops/script/get-preprocessed-dataset-criteo/preprocess.py b/cm-mlops/script/get-preprocessed-dataset-criteo/preprocess.py index bd2e5f5430..51f0e0eb45 100644 --- a/cm-mlops/script/get-preprocessed-dataset-criteo/preprocess.py +++ b/cm-mlops/script/get-preprocessed-dataset-criteo/preprocess.py @@ -5,7 +5,6 @@ sys.path.insert(0, python_path) import criteo -import dataset dataset_name = os.environ['CM_DATASET'] dataset_path = os.environ['CM_DATASET_PATH'] diff --git a/cm-mlops/script/get-preprocessed-dataset-generic/customize.py b/cm-mlops/script/get-preprocessed-dataset-generic/customize.py index b882aaf93d..18d796bce1 100644 --- a/cm-mlops/script/get-preprocessed-dataset-generic/customize.py +++ b/cm-mlops/script/get-preprocessed-dataset-generic/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-preprocessed-dataset-generic/src/generic_preprocess.py b/cm-mlops/script/get-preprocessed-dataset-generic/src/generic_preprocess.py index 752895db88..5918fd530e 100644 --- a/cm-mlops/script/get-preprocessed-dataset-generic/src/generic_preprocess.py +++ b/cm-mlops/script/get-preprocessed-dataset-generic/src/generic_preprocess.py @@ -137,7 +137,6 @@ def int8_to_uint8(image): return image def preprocess(): - import sys source_dir = os.environ['CM_DATASET_PATH'] destination_dir = os.environ['CM_DATASET_PREPROCESSED_PATH'] diff --git a/cm-mlops/script/get-preprocessed-dataset-imagenet/customize.py b/cm-mlops/script/get-preprocessed-dataset-imagenet/customize.py index f744e1330f..e84dddbe83 100644 --- a/cm-mlops/script/get-preprocessed-dataset-imagenet/customize.py +++ b/cm-mlops/script/get-preprocessed-dataset-imagenet/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os from os.path import exists import shutil diff --git a/cm-mlops/script/get-preprocessed-dataset-kits19/customize.py b/cm-mlops/script/get-preprocessed-dataset-kits19/customize.py index 8de0593753..18fc08f7b5 100644 --- a/cm-mlops/script/get-preprocessed-dataset-kits19/customize.py +++ b/cm-mlops/script/get-preprocessed-dataset-kits19/customize.py @@ -1,6 +1,4 @@ -from cmind import utils import os -import shutil def preprocess(i): diff --git a/cm-mlops/script/get-preprocessed-dataset-librispeech/customize.py b/cm-mlops/script/get-preprocessed-dataset-librispeech/customize.py index e5a8a12e2b..2fbc63a6a7 100644 --- a/cm-mlops/script/get-preprocessed-dataset-librispeech/customize.py +++ b/cm-mlops/script/get-preprocessed-dataset-librispeech/customize.py @@ -1,6 +1,4 @@ -from cmind import utils import os -import shutil def preprocess(i): diff --git a/cm-mlops/script/get-preprocessed-dataset-openimages/customize.py b/cm-mlops/script/get-preprocessed-dataset-openimages/customize.py index fd2adcb5f6..690d048650 100644 --- a/cm-mlops/script/get-preprocessed-dataset-openimages/customize.py +++ b/cm-mlops/script/get-preprocessed-dataset-openimages/customize.py @@ -1,6 +1,4 @@ -from cmind import utils import os -import shutil import glob def preprocess(i): diff --git a/cm-mlops/script/get-preprocessed-dataset-openimages/nvidia_preprocess.py b/cm-mlops/script/get-preprocessed-dataset-openimages/nvidia_preprocess.py index 4df55f3cd4..c06a8b0041 100644 --- a/cm-mlops/script/get-preprocessed-dataset-openimages/nvidia_preprocess.py +++ b/cm-mlops/script/get-preprocessed-dataset-openimages/nvidia_preprocess.py @@ -14,7 +14,6 @@ # limitations under the License. import argparse -import math import os from PIL import Image import shutil @@ -26,7 +25,7 @@ from torchvision.transforms import functional as F from code.common import logging -from code.common.image_preprocessor import ImagePreprocessor, center_crop, resize_with_aspectratio +from code.common.image_preprocessor import ImagePreprocessor def preprocess_openimage_for_retinanet(data_dir, preprocessed_data_dir, formats, overwrite=False, cal_only=False, val_only=False): diff --git a/cm-mlops/script/get-preprocessed-dataset-openorca/customize.py b/cm-mlops/script/get-preprocessed-dataset-openorca/customize.py index b5a3219dad..8ff13a6f3d 100644 --- a/cm-mlops/script/get-preprocessed-dataset-openorca/customize.py +++ b/cm-mlops/script/get-preprocessed-dataset-openorca/customize.py @@ -1,6 +1,4 @@ -from cmind import utils import os -import shutil def preprocess(i): diff --git a/cm-mlops/script/get-preprocessed-dataset-squad/customize.py b/cm-mlops/script/get-preprocessed-dataset-squad/customize.py index 8e0ff47db5..56079b8db6 100644 --- a/cm-mlops/script/get-preprocessed-dataset-squad/customize.py +++ b/cm-mlops/script/get-preprocessed-dataset-squad/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-python3/customize.py b/cm-mlops/script/get-python3/customize.py index 3e2cc0b6f4..6efcf09f83 100644 --- a/cm-mlops/script/get-python3/customize.py +++ b/cm-mlops/script/get-python3/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-qaic-apps-sdk/customize.py b/cm-mlops/script/get-qaic-apps-sdk/customize.py index b84d58b178..8870a4010e 100644 --- a/cm-mlops/script/get-qaic-apps-sdk/customize.py +++ b/cm-mlops/script/get-qaic-apps-sdk/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os import xml.etree.ElementTree as et diff --git a/cm-mlops/script/get-qaic-platform-sdk/customize.py b/cm-mlops/script/get-qaic-platform-sdk/customize.py index 5a68188bd5..aa56d3414f 100644 --- a/cm-mlops/script/get-qaic-platform-sdk/customize.py +++ b/cm-mlops/script/get-qaic-platform-sdk/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os import xml.etree.ElementTree as et diff --git a/cm-mlops/script/get-qaic-software-kit/customize.py b/cm-mlops/script/get-qaic-software-kit/customize.py index fedeaaf763..40db170c82 100644 --- a/cm-mlops/script/get-qaic-software-kit/customize.py +++ b/cm-mlops/script/get-qaic-software-kit/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-rclone/customize.py b/cm-mlops/script/get-rclone/customize.py index c0c05ca1fe..1273e573d7 100644 --- a/cm-mlops/script/get-rclone/customize.py +++ b/cm-mlops/script/get-rclone/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os import configparser diff --git a/cm-mlops/script/get-rocm/customize.py b/cm-mlops/script/get-rocm/customize.py index 667c29f4da..8f2a74ad0e 100644 --- a/cm-mlops/script/get-rocm/customize.py +++ b/cm-mlops/script/get-rocm/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-spec-ptd/customize.py b/cm-mlops/script/get-spec-ptd/customize.py index 250ddd887b..9ab9cbaf32 100644 --- a/cm-mlops/script/get-spec-ptd/customize.py +++ b/cm-mlops/script/get-spec-ptd/customize.py @@ -1,6 +1,4 @@ -from cmind import utils import os -import shutil def preprocess(i): diff --git a/cm-mlops/script/get-sys-utils-cm/customize.py b/cm-mlops/script/get-sys-utils-cm/customize.py index e9a1890852..a2be5f8311 100644 --- a/cm-mlops/script/get-sys-utils-cm/customize.py +++ b/cm-mlops/script/get-sys-utils-cm/customize.py @@ -1,5 +1,3 @@ -from cmind import utils -import os def preprocess(i): diff --git a/cm-mlops/script/get-sys-utils-min/customize.py b/cm-mlops/script/get-sys-utils-min/customize.py index a8b9020c50..ae0629179f 100644 --- a/cm-mlops/script/get-sys-utils-min/customize.py +++ b/cm-mlops/script/get-sys-utils-min/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-tensorrt/customize.py b/cm-mlops/script/get-tensorrt/customize.py index b18fe35c3a..20f9319ea5 100644 --- a/cm-mlops/script/get-tensorrt/customize.py +++ b/cm-mlops/script/get-tensorrt/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os import tarfile diff --git a/cm-mlops/script/get-terraform/customize.py b/cm-mlops/script/get-terraform/customize.py index c091322bc5..2c5ccd02f0 100644 --- a/cm-mlops/script/get-terraform/customize.py +++ b/cm-mlops/script/get-terraform/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-tvm-model/customize.py b/cm-mlops/script/get-tvm-model/customize.py index 26732a279c..97ccc32193 100644 --- a/cm-mlops/script/get-tvm-model/customize.py +++ b/cm-mlops/script/get-tvm-model/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-tvm-model/process.py b/cm-mlops/script/get-tvm-model/process.py index 53543e0f83..8b6bde2f4c 100644 --- a/cm-mlops/script/get-tvm-model/process.py +++ b/cm-mlops/script/get-tvm-model/process.py @@ -7,7 +7,7 @@ import torchvision import tvm -from tvm import relay, meta_schedule +from tvm import meta_schedule from tvm.driver.tvmc.frontends import load_model def get_shape_dict_from_onnx( diff --git a/cm-mlops/script/get-tvm/customize.py b/cm-mlops/script/get-tvm/customize.py index fba65ec4b7..398a877783 100644 --- a/cm-mlops/script/get-tvm/customize.py +++ b/cm-mlops/script/get-tvm/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-xilinx-sdk/customize.py b/cm-mlops/script/get-xilinx-sdk/customize.py index 02e31c620f..af72508ca6 100644 --- a/cm-mlops/script/get-xilinx-sdk/customize.py +++ b/cm-mlops/script/get-xilinx-sdk/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-zendnn/customize.py b/cm-mlops/script/get-zendnn/customize.py index d9918a266d..f5677d9040 100644 --- a/cm-mlops/script/get-zendnn/customize.py +++ b/cm-mlops/script/get-zendnn/customize.py @@ -1,5 +1,3 @@ -from cmind import utils -import os def preprocess(i): diff --git a/cm-mlops/script/get-zephyr-sdk/customize.py b/cm-mlops/script/get-zephyr-sdk/customize.py index 87619e7a01..61b14655ff 100644 --- a/cm-mlops/script/get-zephyr-sdk/customize.py +++ b/cm-mlops/script/get-zephyr-sdk/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/get-zephyr/customize.py b/cm-mlops/script/get-zephyr/customize.py index c157b165ce..297248730f 100644 --- a/cm-mlops/script/get-zephyr/customize.py +++ b/cm-mlops/script/get-zephyr/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/gui/customize.py b/cm-mlops/script/gui/customize.py index 9c920ab2c4..b9d1fd7251 100644 --- a/cm-mlops/script/gui/customize.py +++ b/cm-mlops/script/gui/customize.py @@ -1,11 +1,6 @@ # Developer(s): Grigori Fursin -from cmind import utils -import os -import json -import shutil -import subprocess def preprocess(i): diff --git a/cm-mlops/script/gui/graph.py b/cm-mlops/script/gui/graph.py index f06109c78f..fffbcca85c 100644 --- a/cm-mlops/script/gui/graph.py +++ b/cm-mlops/script/gui/graph.py @@ -8,16 +8,13 @@ import streamlit as st -import matplotlib import matplotlib.pyplot as plt import matplotlib.colors as mcolors -import numpy as np import pandas as pd import mpld3 from mpld3 import plugins -from mpld3 import utils security = ['os.', 'streamlit.', 'matplotlib.', 'numpy.', 'pandas.', 'mpld3.'] diff --git a/cm-mlops/script/gui/playground.py b/cm-mlops/script/gui/playground.py index 9c1a2f40cc..8b9d44cad6 100644 --- a/cm-mlops/script/gui/playground.py +++ b/cm-mlops/script/gui/playground.py @@ -1,8 +1,6 @@ # Developer(s): Grigori Fursin import streamlit as st -from streamlit.components.v1 import html -from streamlit_option_menu import option_menu import os import cmind diff --git a/cm-mlops/script/gui/playground_apps.py b/cm-mlops/script/gui/playground_apps.py index 9af5fca444..01ccd53660 100644 --- a/cm-mlops/script/gui/playground_apps.py +++ b/cm-mlops/script/gui/playground_apps.py @@ -1,10 +1,7 @@ # Developer(s): Grigori Fursin -import cmind -import os import misc -import streamlit.components.v1 as components import streamlit as st diff --git a/cm-mlops/script/gui/playground_beta.py b/cm-mlops/script/gui/playground_beta.py index f5636404d2..2b00a6df74 100644 --- a/cm-mlops/script/gui/playground_beta.py +++ b/cm-mlops/script/gui/playground_beta.py @@ -2,8 +2,6 @@ import cmind import os -import datetime -import misc def page(st, params): diff --git a/cm-mlops/script/gui/playground_challenges.py b/cm-mlops/script/gui/playground_challenges.py index 0a840403d5..15c39188db 100644 --- a/cm-mlops/script/gui/playground_challenges.py +++ b/cm-mlops/script/gui/playground_challenges.py @@ -275,7 +275,6 @@ def page(st, params): import pandas as pd - import numpy as np df = pd.DataFrame(data, columns=['Challenge', 'Closing date', 'Extension']) diff --git a/cm-mlops/script/gui/playground_challenges_with_prizes.py b/cm-mlops/script/gui/playground_challenges_with_prizes.py index 5e8d2a1b57..ea6da843b0 100644 --- a/cm-mlops/script/gui/playground_challenges_with_prizes.py +++ b/cm-mlops/script/gui/playground_challenges_with_prizes.py @@ -224,7 +224,6 @@ def page(st, params): import pandas as pd - import numpy as np df = pd.DataFrame(data, columns=['Challenge', 'Closing date', 'Extension', 'Contributor award and prizes from MLCommons organizations, cTuning foundation and cKnowledge.org']) diff --git a/cm-mlops/script/gui/playground_contributors.py b/cm-mlops/script/gui/playground_contributors.py index 1c44f417bb..ebef9e98c6 100644 --- a/cm-mlops/script/gui/playground_contributors.py +++ b/cm-mlops/script/gui/playground_contributors.py @@ -121,7 +121,6 @@ def page(st, params): def page_list(st, params): import pandas as pd - import numpy as np # Read all contributors r = cmind.access({'action':'find', diff --git a/cm-mlops/script/gui/playground_howtorun.py b/cm-mlops/script/gui/playground_howtorun.py index e533ac37fb..ec52f2160f 100644 --- a/cm-mlops/script/gui/playground_howtorun.py +++ b/cm-mlops/script/gui/playground_howtorun.py @@ -4,7 +4,6 @@ import os import misc -import streamlit.components.v1 as components import streamlit as st @@ -240,7 +239,6 @@ def page(st, params, action = ''): 'script_tags':script_tags, 'script_url':script_url} - import sys import importlib full_module_path = os.path.join(script_obj.path, 'customize.py') diff --git a/cm-mlops/script/gui/playground_install.py b/cm-mlops/script/gui/playground_install.py index 479ab09857..cd4da4c1a3 100644 --- a/cm-mlops/script/gui/playground_install.py +++ b/cm-mlops/script/gui/playground_install.py @@ -2,8 +2,6 @@ import cmind import os -import datetime -import misc def page(st, params, extra): diff --git a/cm-mlops/script/gui/playground_reports.py b/cm-mlops/script/gui/playground_reports.py index 43aed1f04d..9fd5b97114 100644 --- a/cm-mlops/script/gui/playground_reports.py +++ b/cm-mlops/script/gui/playground_reports.py @@ -2,7 +2,6 @@ import cmind import os -import datetime import misc def page(st, params): diff --git a/cm-mlops/script/gui/playground_reproduce.py b/cm-mlops/script/gui/playground_reproduce.py index 28396b8961..390afa7641 100644 --- a/cm-mlops/script/gui/playground_reproduce.py +++ b/cm-mlops/script/gui/playground_reproduce.py @@ -4,7 +4,6 @@ import os import misc -import streamlit.components.v1 as components import streamlit as st @@ -278,7 +277,6 @@ def page(st, params, action = ''): ################################################################### # Show tables import pandas as pd - import numpy as np html = '' diff --git a/cm-mlops/script/gui/playground_scripts.py b/cm-mlops/script/gui/playground_scripts.py index a3bc935038..77481a30df 100644 --- a/cm-mlops/script/gui/playground_scripts.py +++ b/cm-mlops/script/gui/playground_scripts.py @@ -2,7 +2,6 @@ import cmind import os -import datetime import misc def page(st, params): diff --git a/cm-mlops/script/gui/script.py b/cm-mlops/script/gui/script.py index 9a8bc0cfeb..e985959bc9 100644 --- a/cm-mlops/script/gui/script.py +++ b/cm-mlops/script/gui/script.py @@ -1,6 +1,5 @@ # Developer(s): Grigori Fursin -import streamlit as st import os import cmind diff --git a/cm-mlops/script/import-mlperf-inference-to-experiment/customize.py b/cm-mlops/script/import-mlperf-inference-to-experiment/customize.py index 486bc76d15..97f1b24d2e 100644 --- a/cm-mlops/script/import-mlperf-inference-to-experiment/customize.py +++ b/cm-mlops/script/import-mlperf-inference-to-experiment/customize.py @@ -4,8 +4,6 @@ import os import subprocess import csv -import json -import copy file_summary = 'summary.csv' diff --git a/cm-mlops/script/import-mlperf-training-to-experiment/customize.py b/cm-mlops/script/import-mlperf-training-to-experiment/customize.py index 19a69a6af8..fc2b9bf569 100644 --- a/cm-mlops/script/import-mlperf-training-to-experiment/customize.py +++ b/cm-mlops/script/import-mlperf-training-to-experiment/customize.py @@ -4,8 +4,6 @@ import os import subprocess import csv -import json -import copy file_summary = 'summary.csv' diff --git a/cm-mlops/script/install-aws-cli/customize.py b/cm-mlops/script/install-aws-cli/customize.py index df2744ac4d..70dcc7e0c3 100644 --- a/cm-mlops/script/install-aws-cli/customize.py +++ b/cm-mlops/script/install-aws-cli/customize.py @@ -1,5 +1,3 @@ -from cmind import utils -import os def preprocess(i): diff --git a/cm-mlops/script/install-bazel/customize.py b/cm-mlops/script/install-bazel/customize.py index d656e40bac..442cfc105f 100644 --- a/cm-mlops/script/install-bazel/customize.py +++ b/cm-mlops/script/install-bazel/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/install-cmake-prebuilt/customize.py b/cm-mlops/script/install-cmake-prebuilt/customize.py index 263e667c47..60e607663a 100644 --- a/cm-mlops/script/install-cmake-prebuilt/customize.py +++ b/cm-mlops/script/install-cmake-prebuilt/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/install-cuda-package-manager/customize.py b/cm-mlops/script/install-cuda-package-manager/customize.py index 002e85e2ef..33c98013ca 100644 --- a/cm-mlops/script/install-cuda-package-manager/customize.py +++ b/cm-mlops/script/install-cuda-package-manager/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/install-cuda-prebuilt/customize.py b/cm-mlops/script/install-cuda-prebuilt/customize.py index a9dafa2e9a..7dd24d34ae 100644 --- a/cm-mlops/script/install-cuda-prebuilt/customize.py +++ b/cm-mlops/script/install-cuda-prebuilt/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/install-gcc-src/customize.py b/cm-mlops/script/install-gcc-src/customize.py index caff463edc..632f2db2df 100644 --- a/cm-mlops/script/install-gcc-src/customize.py +++ b/cm-mlops/script/install-gcc-src/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/install-generic-conda-package/customize.py b/cm-mlops/script/install-generic-conda-package/customize.py index 5f7905d592..6791b359fe 100644 --- a/cm-mlops/script/install-generic-conda-package/customize.py +++ b/cm-mlops/script/install-generic-conda-package/customize.py @@ -1,6 +1,3 @@ -from cmind import utils -import os -import cmind as cm def preprocess(i): diff --git a/cm-mlops/script/install-gflags/customize.py b/cm-mlops/script/install-gflags/customize.py index 65872c79a0..e3b43d4f4a 100644 --- a/cm-mlops/script/install-gflags/customize.py +++ b/cm-mlops/script/install-gflags/customize.py @@ -1,5 +1,3 @@ -from cmind import utils -import os def preprocess(i): diff --git a/cm-mlops/script/install-github-cli/customize.py b/cm-mlops/script/install-github-cli/customize.py index cd7d65a35b..ba415c4466 100644 --- a/cm-mlops/script/install-github-cli/customize.py +++ b/cm-mlops/script/install-github-cli/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/install-ipex-from-src/customize.py b/cm-mlops/script/install-ipex-from-src/customize.py index a595ff7efd..0f3fe36f21 100644 --- a/cm-mlops/script/install-ipex-from-src/customize.py +++ b/cm-mlops/script/install-ipex-from-src/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/install-llvm-prebuilt/customize.py b/cm-mlops/script/install-llvm-prebuilt/customize.py index 1550c0ed9e..31c4fc25cb 100644 --- a/cm-mlops/script/install-llvm-prebuilt/customize.py +++ b/cm-mlops/script/install-llvm-prebuilt/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/install-llvm-src/customize.py b/cm-mlops/script/install-llvm-src/customize.py index b1bb23250f..ea8a7acfdf 100644 --- a/cm-mlops/script/install-llvm-src/customize.py +++ b/cm-mlops/script/install-llvm-src/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/install-mlperf-logging-from-src/customize.py b/cm-mlops/script/install-mlperf-logging-from-src/customize.py index d12f9b3e1d..bca6b28680 100644 --- a/cm-mlops/script/install-mlperf-logging-from-src/customize.py +++ b/cm-mlops/script/install-mlperf-logging-from-src/customize.py @@ -1,5 +1,3 @@ -from cmind import utils -import os def preprocess(i): diff --git a/cm-mlops/script/install-nccl-libs/customize.py b/cm-mlops/script/install-nccl-libs/customize.py index d12f9b3e1d..bca6b28680 100644 --- a/cm-mlops/script/install-nccl-libs/customize.py +++ b/cm-mlops/script/install-nccl-libs/customize.py @@ -1,5 +1,3 @@ -from cmind import utils -import os def preprocess(i): diff --git a/cm-mlops/script/install-numactl-from-src/customize.py b/cm-mlops/script/install-numactl-from-src/customize.py index 5c1ee2674f..5ec7bd70a9 100644 --- a/cm-mlops/script/install-numactl-from-src/customize.py +++ b/cm-mlops/script/install-numactl-from-src/customize.py @@ -1,5 +1,3 @@ -from cmind import utils -import os def preprocess(i): diff --git a/cm-mlops/script/install-onednn-from-src/customize.py b/cm-mlops/script/install-onednn-from-src/customize.py index 06e5402241..634f0bdd0d 100644 --- a/cm-mlops/script/install-onednn-from-src/customize.py +++ b/cm-mlops/script/install-onednn-from-src/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/install-onnxruntime-from-src/customize.py b/cm-mlops/script/install-onnxruntime-from-src/customize.py index be854b226b..5d0dfe73d4 100644 --- a/cm-mlops/script/install-onnxruntime-from-src/customize.py +++ b/cm-mlops/script/install-onnxruntime-from-src/customize.py @@ -1,5 +1,3 @@ -from cmind import utils -import os def preprocess(i): diff --git a/cm-mlops/script/install-openssl/customize.py b/cm-mlops/script/install-openssl/customize.py index e6163a0f5e..f31b26a616 100644 --- a/cm-mlops/script/install-openssl/customize.py +++ b/cm-mlops/script/install-openssl/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/install-pip-package-for-cmind-python/customize.py b/cm-mlops/script/install-pip-package-for-cmind-python/customize.py index 1630bc5428..4983ca317a 100644 --- a/cm-mlops/script/install-pip-package-for-cmind-python/customize.py +++ b/cm-mlops/script/install-pip-package-for-cmind-python/customize.py @@ -1,5 +1,3 @@ -from cmind import utils -import os import subprocess import sys diff --git a/cm-mlops/script/install-python-src/customize.py b/cm-mlops/script/install-python-src/customize.py index a7025a6cf2..6babdb51dd 100644 --- a/cm-mlops/script/install-python-src/customize.py +++ b/cm-mlops/script/install-python-src/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/install-python-venv/customize.py b/cm-mlops/script/install-python-venv/customize.py index 84fe4984ad..9759712f33 100644 --- a/cm-mlops/script/install-python-venv/customize.py +++ b/cm-mlops/script/install-python-venv/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/install-pytorch-from-src/customize.py b/cm-mlops/script/install-pytorch-from-src/customize.py index 38494d7b47..ea2746cdc1 100644 --- a/cm-mlops/script/install-pytorch-from-src/customize.py +++ b/cm-mlops/script/install-pytorch-from-src/customize.py @@ -1,5 +1,3 @@ -from cmind import utils -import os def preprocess(i): diff --git a/cm-mlops/script/install-pytorch-kineto-from-src/customize.py b/cm-mlops/script/install-pytorch-kineto-from-src/customize.py index df2744ac4d..70dcc7e0c3 100644 --- a/cm-mlops/script/install-pytorch-kineto-from-src/customize.py +++ b/cm-mlops/script/install-pytorch-kineto-from-src/customize.py @@ -1,5 +1,3 @@ -from cmind import utils -import os def preprocess(i): diff --git a/cm-mlops/script/install-qaic-compute-sdk-from-src/customize.py b/cm-mlops/script/install-qaic-compute-sdk-from-src/customize.py index f6d4b1ab92..6d8052033a 100644 --- a/cm-mlops/script/install-qaic-compute-sdk-from-src/customize.py +++ b/cm-mlops/script/install-qaic-compute-sdk-from-src/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/install-rocm/customize.py b/cm-mlops/script/install-rocm/customize.py index 3ae7daafb6..f001ad6410 100644 --- a/cm-mlops/script/install-rocm/customize.py +++ b/cm-mlops/script/install-rocm/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/install-tensorflow-for-c/customize.py b/cm-mlops/script/install-tensorflow-for-c/customize.py index a0a8a42148..9bdb608c8d 100644 --- a/cm-mlops/script/install-tensorflow-for-c/customize.py +++ b/cm-mlops/script/install-tensorflow-for-c/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/install-tensorflow-from-src/customize.py b/cm-mlops/script/install-tensorflow-from-src/customize.py index 646c4f7de3..5d74182c19 100644 --- a/cm-mlops/script/install-tensorflow-from-src/customize.py +++ b/cm-mlops/script/install-tensorflow-from-src/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/install-terraform-from-src/customize.py b/cm-mlops/script/install-terraform-from-src/customize.py index 84fccf236e..38b19dd2fb 100644 --- a/cm-mlops/script/install-terraform-from-src/customize.py +++ b/cm-mlops/script/install-terraform-from-src/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/install-tflite-from-src/customize.py b/cm-mlops/script/install-tflite-from-src/customize.py index ab0055816d..19a8055022 100644 --- a/cm-mlops/script/install-tflite-from-src/customize.py +++ b/cm-mlops/script/install-tflite-from-src/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/install-torchvision-from-src/customize.py b/cm-mlops/script/install-torchvision-from-src/customize.py index a4963cca9a..52834c86b4 100644 --- a/cm-mlops/script/install-torchvision-from-src/customize.py +++ b/cm-mlops/script/install-torchvision-from-src/customize.py @@ -1,5 +1,3 @@ -from cmind import utils -import os def preprocess(i): diff --git a/cm-mlops/script/install-tpp-pytorch-extension/customize.py b/cm-mlops/script/install-tpp-pytorch-extension/customize.py index 35ee0e05a6..e5db9921d1 100644 --- a/cm-mlops/script/install-tpp-pytorch-extension/customize.py +++ b/cm-mlops/script/install-tpp-pytorch-extension/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/install-transformers-from-src/customize.py b/cm-mlops/script/install-transformers-from-src/customize.py index 29f69cfc69..2bba1f8ce6 100644 --- a/cm-mlops/script/install-transformers-from-src/customize.py +++ b/cm-mlops/script/install-transformers-from-src/customize.py @@ -1,5 +1,3 @@ -from cmind import utils -import os def preprocess(i): diff --git a/cm-mlops/script/launch-benchmark/customize.py b/cm-mlops/script/launch-benchmark/customize.py index 5db5e9f817..5b750d094d 100644 --- a/cm-mlops/script/launch-benchmark/customize.py +++ b/cm-mlops/script/launch-benchmark/customize.py @@ -255,7 +255,6 @@ def get_with_complex_key_safe(meta, key): def prepare_table(i): import pandas as pd - import numpy as np selection = i['selection'] misc = i['misc_module'] diff --git a/cm-mlops/script/prepare-training-data-bert/customize.py b/cm-mlops/script/prepare-training-data-bert/customize.py index a0cf7beb2c..b83777982f 100644 --- a/cm-mlops/script/prepare-training-data-bert/customize.py +++ b/cm-mlops/script/prepare-training-data-bert/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/prepare-training-data-resnet/customize.py b/cm-mlops/script/prepare-training-data-resnet/customize.py index 825a96df59..c41a75e82b 100644 --- a/cm-mlops/script/prepare-training-data-resnet/customize.py +++ b/cm-mlops/script/prepare-training-data-resnet/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/preprocess-mlperf-inference-submission/customize.py b/cm-mlops/script/preprocess-mlperf-inference-submission/customize.py index 03bca7cd9b..65bb3daaf0 100644 --- a/cm-mlops/script/preprocess-mlperf-inference-submission/customize.py +++ b/cm-mlops/script/preprocess-mlperf-inference-submission/customize.py @@ -1,7 +1,4 @@ -from cmind import utils -import cmind as cm import os -from os.path import exists import shutil def preprocess(i): diff --git a/cm-mlops/script/process-ae-users/code.py b/cm-mlops/script/process-ae-users/code.py index 6437eaa5e4..5090974d96 100644 --- a/cm-mlops/script/process-ae-users/code.py +++ b/cm-mlops/script/process-ae-users/code.py @@ -1,6 +1,5 @@ import os import csv -import json import cmind def main(): diff --git a/cm-mlops/script/process-ae-users/customize.py b/cm-mlops/script/process-ae-users/customize.py index fef0a3ddfd..95086720f9 100644 --- a/cm-mlops/script/process-ae-users/customize.py +++ b/cm-mlops/script/process-ae-users/customize.py @@ -1,6 +1,3 @@ -from cmind import utils -import cmind as cm -import os def preprocess(i): diff --git a/cm-mlops/script/process-mlperf-accuracy/customize.py b/cm-mlops/script/process-mlperf-accuracy/customize.py index f7b13c16d9..ff8cf8ecfc 100644 --- a/cm-mlops/script/process-mlperf-accuracy/customize.py +++ b/cm-mlops/script/process-mlperf-accuracy/customize.py @@ -1,5 +1,3 @@ -from cmind import utils -import cmind as cm import os def preprocess(i): diff --git a/cm-mlops/script/prune-bert-models/customize.py b/cm-mlops/script/prune-bert-models/customize.py index 34e0810231..0c0c6ce1c6 100644 --- a/cm-mlops/script/prune-bert-models/customize.py +++ b/cm-mlops/script/prune-bert-models/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/pull-git-repo/customize.py b/cm-mlops/script/pull-git-repo/customize.py index 021d42465e..4c5fc6088e 100644 --- a/cm-mlops/script/pull-git-repo/customize.py +++ b/cm-mlops/script/pull-git-repo/customize.py @@ -1,6 +1,3 @@ -from cmind import utils -import os -import shutil def preprocess(i): diff --git a/cm-mlops/script/push-csv-to-spreadsheet/customize.py b/cm-mlops/script/push-csv-to-spreadsheet/customize.py index e80f262666..ba5d103fdb 100644 --- a/cm-mlops/script/push-csv-to-spreadsheet/customize.py +++ b/cm-mlops/script/push-csv-to-spreadsheet/customize.py @@ -1,6 +1,3 @@ -from cmind import utils -import cmind as cm -import os def preprocess(i): diff --git a/cm-mlops/script/push-mlperf-inference-results-to-github/customize.py b/cm-mlops/script/push-mlperf-inference-results-to-github/customize.py index dcdc3c0bfe..137240cc31 100644 --- a/cm-mlops/script/push-mlperf-inference-results-to-github/customize.py +++ b/cm-mlops/script/push-mlperf-inference-results-to-github/customize.py @@ -1,6 +1,3 @@ -from cmind import utils -import cmind as cm -import os def preprocess(i): diff --git a/cm-mlops/script/remote-run-commands/customize.py b/cm-mlops/script/remote-run-commands/customize.py index 78676a2d0f..a3032a42b2 100644 --- a/cm-mlops/script/remote-run-commands/customize.py +++ b/cm-mlops/script/remote-run-commands/customize.py @@ -1,5 +1,3 @@ -from cmind import utils -import os def preprocess(i): diff --git a/cm-mlops/script/reproduce-ipol-paper-2022-439/customize.py b/cm-mlops/script/reproduce-ipol-paper-2022-439/customize.py index 6b57ab932f..d501e098ea 100644 --- a/cm-mlops/script/reproduce-ipol-paper-2022-439/customize.py +++ b/cm-mlops/script/reproduce-ipol-paper-2022-439/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/reproduce-micro-paper-2023-victima/customize.py b/cm-mlops/script/reproduce-micro-paper-2023-victima/customize.py index d12f9b3e1d..bca6b28680 100644 --- a/cm-mlops/script/reproduce-micro-paper-2023-victima/customize.py +++ b/cm-mlops/script/reproduce-micro-paper-2023-victima/customize.py @@ -1,5 +1,3 @@ -from cmind import utils -import os def preprocess(i): diff --git a/cm-mlops/script/reproduce-mlperf-octoml-tinyml-results/customize.py b/cm-mlops/script/reproduce-mlperf-octoml-tinyml-results/customize.py index f63d95abaa..a692d1c0fb 100644 --- a/cm-mlops/script/reproduce-mlperf-octoml-tinyml-results/customize.py +++ b/cm-mlops/script/reproduce-mlperf-octoml-tinyml-results/customize.py @@ -1,5 +1,3 @@ -from cmind import utils -import os def preprocess(i): diff --git a/cm-mlops/script/reproduce-mlperf-training-nvidia/customize.py b/cm-mlops/script/reproduce-mlperf-training-nvidia/customize.py index 25e9929d82..b74a799104 100644 --- a/cm-mlops/script/reproduce-mlperf-training-nvidia/customize.py +++ b/cm-mlops/script/reproduce-mlperf-training-nvidia/customize.py @@ -1,6 +1,3 @@ -from cmind import utils -import os -import shutil def preprocess(i): diff --git a/cm-mlops/script/run-all-mlperf-models/customize.py b/cm-mlops/script/run-all-mlperf-models/customize.py index 40f0fced40..084f26f3db 100644 --- a/cm-mlops/script/run-all-mlperf-models/customize.py +++ b/cm-mlops/script/run-all-mlperf-models/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/run-docker-container/customize.py b/cm-mlops/script/run-docker-container/customize.py index f01a6e997b..b1f7c08f0f 100644 --- a/cm-mlops/script/run-docker-container/customize.py +++ b/cm-mlops/script/run-docker-container/customize.py @@ -1,8 +1,6 @@ -from cmind import utils import cmind as cm import os import subprocess -from os.path import exists def preprocess(i): diff --git a/cm-mlops/script/run-mlperf-inference-app/customize.py b/cm-mlops/script/run-mlperf-inference-app/customize.py index 16f5412358..2f774112fd 100644 --- a/cm-mlops/script/run-mlperf-inference-app/customize.py +++ b/cm-mlops/script/run-mlperf-inference-app/customize.py @@ -1,8 +1,6 @@ from cmind import utils import os -import json import shutil -import subprocess import cmind as cm import copy from tabulate import tabulate diff --git a/cm-mlops/script/run-mlperf-inference-app/run_mobilenet.py b/cm-mlops/script/run-mlperf-inference-app/run_mobilenet.py index b5259168a2..b281f168cd 100644 --- a/cm-mlops/script/run-mlperf-inference-app/run_mobilenet.py +++ b/cm-mlops/script/run-mlperf-inference-app/run_mobilenet.py @@ -1,5 +1,4 @@ import cmind -import os import sys models = { diff --git a/cm-mlops/script/run-mlperf-inference-mobilenet-models/customize.py b/cm-mlops/script/run-mlperf-inference-mobilenet-models/customize.py index e14e660d5c..2216ce91fe 100644 --- a/cm-mlops/script/run-mlperf-inference-mobilenet-models/customize.py +++ b/cm-mlops/script/run-mlperf-inference-mobilenet-models/customize.py @@ -1,7 +1,5 @@ from cmind import utils -import os import cmind -import sys def preprocess(i): diff --git a/cm-mlops/script/run-mlperf-inference-submission-checker/code.py b/cm-mlops/script/run-mlperf-inference-submission-checker/code.py index 892d16be33..4bd0632ccb 100644 --- a/cm-mlops/script/run-mlperf-inference-submission-checker/code.py +++ b/cm-mlops/script/run-mlperf-inference-submission-checker/code.py @@ -1,7 +1,6 @@ # Developer: Grigori Fursin import os -import pandas def main(): print ('=========================================================') diff --git a/cm-mlops/script/run-mlperf-inference-submission-checker/customize.py b/cm-mlops/script/run-mlperf-inference-submission-checker/customize.py index f9158bf06a..92c5aa2f09 100644 --- a/cm-mlops/script/run-mlperf-inference-submission-checker/customize.py +++ b/cm-mlops/script/run-mlperf-inference-submission-checker/customize.py @@ -1,7 +1,4 @@ -from cmind import utils -import cmind as cm import os -import subprocess def preprocess(i): @@ -27,7 +24,6 @@ def preprocess(i): "submission_checker.py") if env['CM_MLPERF_SHORT_RUN'] == "yes": - import shutil new_submission_checker_file = os.path.join(os.path.dirname(submission_checker_file), "submission_checker1.py") with open(submission_checker_file, 'r') as file: data = file.read() diff --git a/cm-mlops/script/run-mlperf-power-client/customize.py b/cm-mlops/script/run-mlperf-power-client/customize.py index 6ec752b803..33fe849355 100644 --- a/cm-mlops/script/run-mlperf-power-client/customize.py +++ b/cm-mlops/script/run-mlperf-power-client/customize.py @@ -1,7 +1,4 @@ -from cmind import utils -import cmind as cm import os -import configparser def preprocess(i): diff --git a/cm-mlops/script/run-mlperf-power-server/customize.py b/cm-mlops/script/run-mlperf-power-server/customize.py index 65c7830420..f4c607fd15 100644 --- a/cm-mlops/script/run-mlperf-power-server/customize.py +++ b/cm-mlops/script/run-mlperf-power-server/customize.py @@ -1,5 +1,3 @@ -from cmind import utils -import cmind as cm import os import configparser diff --git a/cm-mlops/script/run-mlperf-training-submission-checker/customize.py b/cm-mlops/script/run-mlperf-training-submission-checker/customize.py index 393979b490..f26ca9b16e 100644 --- a/cm-mlops/script/run-mlperf-training-submission-checker/customize.py +++ b/cm-mlops/script/run-mlperf-training-submission-checker/customize.py @@ -1,7 +1,4 @@ -from cmind import utils -import cmind as cm import os -import subprocess def preprocess(i): diff --git a/cm-mlops/script/run-terraform/customize.py b/cm-mlops/script/run-terraform/customize.py index eeddbff60d..deb4ad48aa 100644 --- a/cm-mlops/script/run-terraform/customize.py +++ b/cm-mlops/script/run-terraform/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import cmind as cm import os import shutil diff --git a/cm-mlops/script/save-mlperf-inference-implementation-state/customize.py b/cm-mlops/script/save-mlperf-inference-implementation-state/customize.py index be3be96798..dc789db9c5 100644 --- a/cm-mlops/script/save-mlperf-inference-implementation-state/customize.py +++ b/cm-mlops/script/save-mlperf-inference-implementation-state/customize.py @@ -1,5 +1,3 @@ -from cmind import utils -import os def preprocess(i): diff --git a/cm-mlops/script/set-device-settings-qaic/customize.py b/cm-mlops/script/set-device-settings-qaic/customize.py index 48d065c84e..0c7e6ebd3d 100644 --- a/cm-mlops/script/set-device-settings-qaic/customize.py +++ b/cm-mlops/script/set-device-settings-qaic/customize.py @@ -1,5 +1,3 @@ -from cmind import utils -import os def preprocess(i): diff --git a/cm-mlops/script/set-echo-off-win/customize.py b/cm-mlops/script/set-echo-off-win/customize.py index ef9ba8b8dd..c21b3eb73c 100644 --- a/cm-mlops/script/set-echo-off-win/customize.py +++ b/cm-mlops/script/set-echo-off-win/customize.py @@ -1,5 +1,3 @@ -from cmind import utils -import os def preprocess(i): diff --git a/cm-mlops/script/set-performance-mode/customize.py b/cm-mlops/script/set-performance-mode/customize.py index fca19d718c..a381c8377d 100644 --- a/cm-mlops/script/set-performance-mode/customize.py +++ b/cm-mlops/script/set-performance-mode/customize.py @@ -1,5 +1,3 @@ -from cmind import utils -import os def preprocess(i): diff --git a/cm-mlops/script/set-sqlite-dir/code.py b/cm-mlops/script/set-sqlite-dir/code.py index 319f23a92f..e02abfc9b0 100644 --- a/cm-mlops/script/set-sqlite-dir/code.py +++ b/cm-mlops/script/set-sqlite-dir/code.py @@ -1,2 +1 @@ -import sqlite3 - + diff --git a/cm-mlops/script/set-venv/customize.py b/cm-mlops/script/set-venv/customize.py index a8517a366e..bebe613740 100644 --- a/cm-mlops/script/set-venv/customize.py +++ b/cm-mlops/script/set-venv/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os def preprocess(i): diff --git a/cm-mlops/script/tar-my-folder/customize.py b/cm-mlops/script/tar-my-folder/customize.py index d405e76fdb..a33b03fae6 100644 --- a/cm-mlops/script/tar-my-folder/customize.py +++ b/cm-mlops/script/tar-my-folder/customize.py @@ -1,8 +1,4 @@ -from cmind import utils -import cmind as cm import os -import subprocess -from os.path import exists def preprocess(i): diff --git a/cm-mlops/script/test-download-and-extract-artifacts/customize.py b/cm-mlops/script/test-download-and-extract-artifacts/customize.py index d12f9b3e1d..bca6b28680 100644 --- a/cm-mlops/script/test-download-and-extract-artifacts/customize.py +++ b/cm-mlops/script/test-download-and-extract-artifacts/customize.py @@ -1,5 +1,3 @@ -from cmind import utils -import os def preprocess(i): diff --git a/cm-mlops/script/test-mlperf-inference-retinanet/customize.py b/cm-mlops/script/test-mlperf-inference-retinanet/customize.py index 14e20d1bf2..9e478ce3f0 100644 --- a/cm-mlops/script/test-mlperf-inference-retinanet/customize.py +++ b/cm-mlops/script/test-mlperf-inference-retinanet/customize.py @@ -1,5 +1,3 @@ -from cmind import utils -import os def preprocess(i): diff --git a/cm-mlops/script/truncate-mlperf-inference-accuracy-log/customize.py b/cm-mlops/script/truncate-mlperf-inference-accuracy-log/customize.py index d13d504ff8..74a2d515bd 100644 --- a/cm-mlops/script/truncate-mlperf-inference-accuracy-log/customize.py +++ b/cm-mlops/script/truncate-mlperf-inference-accuracy-log/customize.py @@ -1,8 +1,4 @@ -from cmind import utils -import cmind as cm import os -import subprocess -from os.path import exists def preprocess(i): diff --git a/cm-mlops/script/wrapper-reproduce-octoml-tinyml-submission/customize.py b/cm-mlops/script/wrapper-reproduce-octoml-tinyml-submission/customize.py index f859dd1a9d..483e929aea 100644 --- a/cm-mlops/script/wrapper-reproduce-octoml-tinyml-submission/customize.py +++ b/cm-mlops/script/wrapper-reproduce-octoml-tinyml-submission/customize.py @@ -1,5 +1,3 @@ -from cmind import utils -import os import cmind as cm def preprocess(i): diff --git a/cm/cmind/core.py b/cm/cmind/core.py index ed19dc802a..05c289a561 100644 --- a/cm/cmind/core.py +++ b/cm/cmind/core.py @@ -21,7 +21,6 @@ # Outdated in Python 3.12+ #import imp import importlib -import pkgutil import inspect import logging @@ -138,7 +137,6 @@ def error(self, r): """ - import os if r['return']>0: if self.debug: @@ -163,7 +161,6 @@ def errorx(self, r): """ - import os if r['return']>0: if self.debug: diff --git a/cm/cmind/index.py b/cm/cmind/index.py index 7564872c84..17fa115b11 100644 --- a/cm/cmind/index.py +++ b/cm/cmind/index.py @@ -10,7 +10,6 @@ # Project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md import os -import json from cmind import utils diff --git a/cm/cmind/net.py b/cm/cmind/net.py index ee0caf191c..5ad0e89cb2 100644 --- a/cm/cmind/net.py +++ b/cm/cmind/net.py @@ -9,15 +9,11 @@ # White paper: https://arxiv.org/abs/2406.16791 # Project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md -import urllib import json -import sys try: - from urllib.parse import urlencode from urllib.parse import quote_plus except: - from urllib import urlencode from urllib import quote_plus try: diff --git a/cm/cmind/repo/automation/automation/module_dummy.py b/cm/cmind/repo/automation/automation/module_dummy.py index be8d6e7b1d..3ed78c732b 100644 --- a/cm/cmind/repo/automation/automation/module_dummy.py +++ b/cm/cmind/repo/automation/automation/module_dummy.py @@ -1,7 +1,5 @@ -import os from cmind.automation import Automation -from cmind import utils class CAutomation(Automation): """ diff --git a/cm/cmind/repo/automation/automation/modulex_dummy.py b/cm/cmind/repo/automation/automation/modulex_dummy.py index 7aace68e9e..9edc6471e6 100644 --- a/cm/cmind/repo/automation/automation/modulex_dummy.py +++ b/cm/cmind/repo/automation/automation/modulex_dummy.py @@ -1,7 +1,5 @@ -import os from cmind.automation import Automation -from cmind import utils class CAutomation(Automation): """ diff --git a/cm/cmind/repo/automation/ckx/module.py b/cm/cmind/repo/automation/ckx/module.py index ac4ece2161..2bf778e19e 100644 --- a/cm/cmind/repo/automation/ckx/module.py +++ b/cm/cmind/repo/automation/ckx/module.py @@ -9,10 +9,8 @@ # White paper: https://arxiv.org/abs/2406.16791 # Project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md -import os from cmind.automation import Automation -from cmind import utils class CAutomation(Automation): diff --git a/cm/cmind/repo/automation/mlc/module.py b/cm/cmind/repo/automation/mlc/module.py index 0f44272b11..6d84027283 100644 --- a/cm/cmind/repo/automation/mlc/module.py +++ b/cm/cmind/repo/automation/mlc/module.py @@ -12,8 +12,6 @@ import os from cmind.automation import Automation -from cmind import utils -from cmind import cli class CAutomation(Automation): """ diff --git a/cm/cmind/repo/automation/mlcr/module.py b/cm/cmind/repo/automation/mlcr/module.py index ca3daa0734..4a1e1cbe5f 100644 --- a/cm/cmind/repo/automation/mlcr/module.py +++ b/cm/cmind/repo/automation/mlcr/module.py @@ -12,8 +12,6 @@ import os from cmind.automation import Automation -from cmind import utils -from cmind import cli class CAutomation(Automation): """ diff --git a/cm/cmind/repo/automation/repo/module.py b/cm/cmind/repo/automation/repo/module.py index fb68e51ddb..3d8f6ebf7b 100644 --- a/cm/cmind/repo/automation/repo/module.py +++ b/cm/cmind/repo/automation/repo/module.py @@ -13,7 +13,6 @@ from cmind.automation import Automation from cmind import utils -from cmind import net class CAutomation(Automation): @@ -963,8 +962,6 @@ def convert_ck_to_cm(self, i): """ - import ck.kernel as ck - import cmind import os console = i.get('out') == 'con' diff --git a/cm/cmind/utils.py b/cm/cmind/utils.py index 9bf5bc9832..c86515eae6 100644 --- a/cm/cmind/utils.py +++ b/cm/cmind/utils.py @@ -522,7 +522,6 @@ def list_all_files(i): """ - import sys number = 0 if i.get('number', '') != '': @@ -1778,7 +1777,6 @@ def rm_read_only(f, p, e): import os import stat - import errno ex = e[1] diff --git a/cm/setup_.py b/cm/setup_.py index fcaa548819..c34880230a 100644 --- a/cm/setup_.py +++ b/cm/setup_.py @@ -1,8 +1,7 @@ import os -import sys import re -from setuptools import find_packages, setup +from setuptools import setup try: from setuptools.command.install import install diff --git a/cm4mlops/cm4mlops/repo/automation/cache/module_misc.py b/cm4mlops/cm4mlops/repo/automation/cache/module_misc.py index 82b7c1cf1d..37fbc8c864 100644 --- a/cm4mlops/cm4mlops/repo/automation/cache/module_misc.py +++ b/cm4mlops/cm4mlops/repo/automation/cache/module_misc.py @@ -12,7 +12,6 @@ # import os -from cmind import utils ############################################################ diff --git a/cm4mlops/cm4mlops/repo/automation/challenge/module.py b/cm4mlops/cm4mlops/repo/automation/challenge/module.py index 963ab43b6f..922c008e23 100644 --- a/cm4mlops/cm4mlops/repo/automation/challenge/module.py +++ b/cm4mlops/cm4mlops/repo/automation/challenge/module.py @@ -11,10 +11,8 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -import os from cmind.automation import Automation -from cmind import utils class CAutomation(Automation): diff --git a/cm4mlops/cm4mlops/repo/automation/cmx-demo/modulex.py b/cm4mlops/cm4mlops/repo/automation/cmx-demo/modulex.py index ac78286e1f..f1d10f4a5a 100644 --- a/cm4mlops/cm4mlops/repo/automation/cmx-demo/modulex.py +++ b/cm4mlops/cm4mlops/repo/automation/cmx-demo/modulex.py @@ -7,10 +7,8 @@ # License: https://github.com/mlcommons/ck/blob/master/LICENSE.md # Project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md -import os from cmind.automation import Automation -from cmind import utils class CAutomation(Automation): """ diff --git a/cm4mlops/cm4mlops/repo/automation/contributor/module.py b/cm4mlops/cm4mlops/repo/automation/contributor/module.py index a2d6954ad5..2974153aa5 100644 --- a/cm4mlops/cm4mlops/repo/automation/contributor/module.py +++ b/cm4mlops/cm4mlops/repo/automation/contributor/module.py @@ -14,7 +14,6 @@ import os from cmind.automation import Automation -from cmind import utils class CAutomation(Automation): diff --git a/cm4mlops/cm4mlops/repo/automation/data/module.py b/cm4mlops/cm4mlops/repo/automation/data/module.py index 963ab43b6f..922c008e23 100644 --- a/cm4mlops/cm4mlops/repo/automation/data/module.py +++ b/cm4mlops/cm4mlops/repo/automation/data/module.py @@ -11,10 +11,8 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -import os from cmind.automation import Automation -from cmind import utils class CAutomation(Automation): diff --git a/cm4mlops/cm4mlops/repo/automation/docker/module.py b/cm4mlops/cm4mlops/repo/automation/docker/module.py index 4b49bbd3cb..7cc61f9111 100644 --- a/cm4mlops/cm4mlops/repo/automation/docker/module.py +++ b/cm4mlops/cm4mlops/repo/automation/docker/module.py @@ -11,10 +11,8 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -import os from cmind.automation import Automation -from cmind import utils class CAutomation(Automation): diff --git a/cm4mlops/cm4mlops/repo/automation/docs/module.py b/cm4mlops/cm4mlops/repo/automation/docs/module.py index 963ab43b6f..922c008e23 100644 --- a/cm4mlops/cm4mlops/repo/automation/docs/module.py +++ b/cm4mlops/cm4mlops/repo/automation/docs/module.py @@ -11,10 +11,8 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -import os from cmind.automation import Automation -from cmind import utils class CAutomation(Automation): diff --git a/cm4mlops/cm4mlops/repo/automation/project/module.py b/cm4mlops/cm4mlops/repo/automation/project/module.py index 963ab43b6f..922c008e23 100644 --- a/cm4mlops/cm4mlops/repo/automation/project/module.py +++ b/cm4mlops/cm4mlops/repo/automation/project/module.py @@ -11,10 +11,8 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -import os from cmind.automation import Automation -from cmind import utils class CAutomation(Automation): diff --git a/cm4mlops/cm4mlops/repo/automation/report/module.py b/cm4mlops/cm4mlops/repo/automation/report/module.py index 963ab43b6f..922c008e23 100644 --- a/cm4mlops/cm4mlops/repo/automation/report/module.py +++ b/cm4mlops/cm4mlops/repo/automation/report/module.py @@ -11,10 +11,8 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -import os from cmind.automation import Automation -from cmind import utils class CAutomation(Automation): diff --git a/cm4mlops/cm4mlops/repo/automation/script/module.py b/cm4mlops/cm4mlops/repo/automation/script/module.py index 5860e6e653..6ccee6c895 100644 --- a/cm4mlops/cm4mlops/repo/automation/script/module.py +++ b/cm4mlops/cm4mlops/repo/automation/script/module.py @@ -2945,7 +2945,6 @@ def test(self, i): """ - import json # Check parsed automation if 'parsed_automation' not in i: @@ -4001,7 +4000,6 @@ def find_file_in_paths(self, i): (found_files) (list): paths to files when found """ - import copy paths = i['paths'] select = i.get('select', False) @@ -4235,7 +4233,6 @@ def detect_version_using_script(self, i): """ recursion_spaces = i.get('recursion_spaces', '') - import copy detected = False diff --git a/cm4mlops/cm4mlops/repo/automation/script/module_help.py b/cm4mlops/cm4mlops/repo/automation/script/module_help.py index e1eb4424a9..a32ddee657 100644 --- a/cm4mlops/cm4mlops/repo/automation/script/module_help.py +++ b/cm4mlops/cm4mlops/repo/automation/script/module_help.py @@ -11,8 +11,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -import os -from cmind import utils # Pring help about script diff --git a/cm4mlops/cm4mlops/repo/automation/script/module_misc.py b/cm4mlops/cm4mlops/repo/automation/script/module_misc.py index 00883ba053..fa1f8a5e46 100644 --- a/cm4mlops/cm4mlops/repo/automation/script/module_misc.py +++ b/cm4mlops/cm4mlops/repo/automation/script/module_misc.py @@ -1435,7 +1435,6 @@ def dockerfile(i): """ - import copy # Check simplified CMD: cm docker script "python app image-classification onnx" # If artifact has spaces, treat them as tags! diff --git a/cm4mlops/cm4mlops/repo/automation/script/template-ae-python/customize.py b/cm4mlops/cm4mlops/repo/automation/script/template-ae-python/customize.py index 273999d460..d479b85d25 100644 --- a/cm4mlops/cm4mlops/repo/automation/script/template-ae-python/customize.py +++ b/cm4mlops/cm4mlops/repo/automation/script/template-ae-python/customize.py @@ -1,5 +1,3 @@ -from cmind import utils -import os def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/automation/script/template-python/customize.py b/cm4mlops/cm4mlops/repo/automation/script/template-python/customize.py index 625b643d44..5764d04d51 100644 --- a/cm4mlops/cm4mlops/repo/automation/script/template-python/customize.py +++ b/cm4mlops/cm4mlops/repo/automation/script/template-python/customize.py @@ -1,5 +1,3 @@ -from cmind import utils -import os def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/automation/script/template-pytorch/customize.py b/cm4mlops/cm4mlops/repo/automation/script/template-pytorch/customize.py index 625b643d44..5764d04d51 100644 --- a/cm4mlops/cm4mlops/repo/automation/script/template-pytorch/customize.py +++ b/cm4mlops/cm4mlops/repo/automation/script/template-pytorch/customize.py @@ -1,5 +1,3 @@ -from cmind import utils -import os def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/automation/script/template/customize.py b/cm4mlops/cm4mlops/repo/automation/script/template/customize.py index 273999d460..d479b85d25 100644 --- a/cm4mlops/cm4mlops/repo/automation/script/template/customize.py +++ b/cm4mlops/cm4mlops/repo/automation/script/template/customize.py @@ -1,5 +1,3 @@ -from cmind import utils -import os def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/automation/utils/module.py b/cm4mlops/cm4mlops/repo/automation/utils/module.py index 90b5c5c290..9cc099d88f 100644 --- a/cm4mlops/cm4mlops/repo/automation/utils/module.py +++ b/cm4mlops/cm4mlops/repo/automation/utils/module.py @@ -199,7 +199,6 @@ def download_file(self, i): """ import requests - import time import sys from urllib import parse diff --git a/cm4mlops/cm4mlops/repo/script/activate-python-venv/customize.py b/cm4mlops/cm4mlops/repo/script/activate-python-venv/customize.py index c22b25b65a..1649748641 100644 --- a/cm4mlops/cm4mlops/repo/script/activate-python-venv/customize.py +++ b/cm4mlops/cm4mlops/repo/script/activate-python-venv/customize.py @@ -9,8 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/add-custom-nvidia-system/customize.py b/cm4mlops/cm4mlops/repo/script/add-custom-nvidia-system/customize.py index 016d9cdcd4..c97dc72575 100644 --- a/cm4mlops/cm4mlops/repo/script/add-custom-nvidia-system/customize.py +++ b/cm4mlops/cm4mlops/repo/script/add-custom-nvidia-system/customize.py @@ -9,9 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os -import shutil def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/app-image-classification-onnx-py/customize.py b/cm4mlops/cm4mlops/repo/script/app-image-classification-onnx-py/customize.py index 0ca34fc952..cbf6ad3129 100644 --- a/cm4mlops/cm4mlops/repo/script/app-image-classification-onnx-py/customize.py +++ b/cm4mlops/cm4mlops/repo/script/app-image-classification-onnx-py/customize.py @@ -9,9 +9,7 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os -import shutil def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/app-image-classification-torch-py/src/pytorch_classify_preprocessed.py b/cm4mlops/cm4mlops/repo/script/app-image-classification-torch-py/src/pytorch_classify_preprocessed.py index 07d690127e..e94892d499 100644 --- a/cm4mlops/cm4mlops/repo/script/app-image-classification-torch-py/src/pytorch_classify_preprocessed.py +++ b/cm4mlops/cm4mlops/repo/script/app-image-classification-torch-py/src/pytorch_classify_preprocessed.py @@ -10,11 +10,9 @@ import torch import torchvision.models as models -import imagenet_helper from imagenet_helper import ( load_preprocessed_batch, image_list, - class_labels, BATCH_SIZE) # Writing the results out: diff --git a/cm4mlops/cm4mlops/repo/script/app-image-classification-tvm-onnx-py/src/classify.py b/cm4mlops/cm4mlops/repo/script/app-image-classification-tvm-onnx-py/src/classify.py index 20c1642889..888da478e6 100644 --- a/cm4mlops/cm4mlops/repo/script/app-image-classification-tvm-onnx-py/src/classify.py +++ b/cm4mlops/cm4mlops/repo/script/app-image-classification-tvm-onnx-py/src/classify.py @@ -3,12 +3,9 @@ - grigori@octoml.ai """ -import time import os import argparse -import json -from PIL import Image import cv2 import numpy as np @@ -61,7 +58,6 @@ def run_case(dtype, image, target): # Check image import os import json - import sys STAT_REPEAT = os.environ.get('STAT_REPEAT', '') if STAT_REPEAT == '' or STAT_REPEAT is None: @@ -76,7 +72,6 @@ def run_case(dtype, image, target): val = {} # FGG: set timers - import time timers = {} img_orig = cv2.imread(image) diff --git a/cm4mlops/cm4mlops/repo/script/app-image-corner-detection/customize.py b/cm4mlops/cm4mlops/repo/script/app-image-corner-detection/customize.py index 962f0de433..c4cd65127c 100644 --- a/cm4mlops/cm4mlops/repo/script/app-image-corner-detection/customize.py +++ b/cm4mlops/cm4mlops/repo/script/app-image-corner-detection/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/app-loadgen-generic-python/customize.py b/cm4mlops/cm4mlops/repo/script/app-loadgen-generic-python/customize.py index 34720c052d..27c9e20323 100644 --- a/cm4mlops/cm4mlops/repo/script/app-loadgen-generic-python/customize.py +++ b/cm4mlops/cm4mlops/repo/script/app-loadgen-generic-python/customize.py @@ -11,9 +11,7 @@ # Developer: Grigori Fursin -from cmind import utils import os -import shutil def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/app-loadgen-generic-python/src/backend_onnxruntime.py b/cm4mlops/cm4mlops/repo/script/app-loadgen-generic-python/src/backend_onnxruntime.py index 371f44ffbe..4e9be6aee9 100644 --- a/cm4mlops/cm4mlops/repo/script/app-loadgen-generic-python/src/backend_onnxruntime.py +++ b/cm4mlops/cm4mlops/repo/script/app-loadgen-generic-python/src/backend_onnxruntime.py @@ -1,7 +1,6 @@ import typing import numpy as np -import onnx import onnxruntime as ort from loadgen.model import Model, ModelFactory, ModelInput, ModelInputSampler diff --git a/cm4mlops/cm4mlops/repo/script/app-loadgen-generic-python/src/backend_pytorch.py b/cm4mlops/cm4mlops/repo/script/app-loadgen-generic-python/src/backend_pytorch.py index 6fb7160282..90c848d7c1 100644 --- a/cm4mlops/cm4mlops/repo/script/app-loadgen-generic-python/src/backend_pytorch.py +++ b/cm4mlops/cm4mlops/repo/script/app-loadgen-generic-python/src/backend_pytorch.py @@ -1,13 +1,10 @@ # Developer: Grigori Fursin -import typing import importlib import os -import psutil import utils -import numpy as np import torch diff --git a/cm4mlops/cm4mlops/repo/script/app-mlperf-automotive-mlcommons-python/customize.py b/cm4mlops/cm4mlops/repo/script/app-mlperf-automotive-mlcommons-python/customize.py index 58ee04e1fc..798229db37 100644 --- a/cm4mlops/cm4mlops/repo/script/app-mlperf-automotive-mlcommons-python/customize.py +++ b/cm4mlops/cm4mlops/repo/script/app-mlperf-automotive-mlcommons-python/customize.py @@ -1,8 +1,4 @@ -from cmind import utils import os -import json -import shutil -import subprocess def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/app-mlperf-automotive-mlcommons-python/ref/python/backend_pytorch_native.py b/cm4mlops/cm4mlops/repo/script/app-mlperf-automotive-mlcommons-python/ref/python/backend_pytorch_native.py index ec54019798..c770e90979 100644 --- a/cm4mlops/cm4mlops/repo/script/app-mlperf-automotive-mlcommons-python/ref/python/backend_pytorch_native.py +++ b/cm4mlops/cm4mlops/repo/script/app-mlperf-automotive-mlcommons-python/ref/python/backend_pytorch_native.py @@ -4,7 +4,6 @@ """ # pylint: disable=unused-argument,missing-docstring import torch # currently supports pytorch1.0 -import torchvision import backend import os @@ -38,8 +37,6 @@ def load(self, model_path, inputs=None, outputs=None): # From ABTF code sys.path.insert(0, os.environ['CM_ML_MODEL_CODE_WITH_PATH']) - from src.transform import SSDTransformer - from src.utils import generate_dboxes, Encoder, colors, coco_classes from src.model import SSD, ResNet abtf_model_config = os.environ.get('CM_ABTF_ML_MODEL_CONFIG', '') diff --git a/cm4mlops/cm4mlops/repo/script/app-mlperf-automotive-mlcommons-python/ref/python/cognata.py b/cm4mlops/cm4mlops/repo/script/app-mlperf-automotive-mlcommons-python/ref/python/cognata.py index 005fa4e2d6..7934a0473d 100644 --- a/cm4mlops/cm4mlops/repo/script/app-mlperf-automotive-mlcommons-python/ref/python/cognata.py +++ b/cm4mlops/cm4mlops/repo/script/app-mlperf-automotive-mlcommons-python/ref/python/cognata.py @@ -2,16 +2,12 @@ Original code was extended by Grigori Fursin to support cognata data set """ -import json import logging import os import time -import cv2 from PIL import Image -import numpy as np -from pycocotools.cocoeval import COCOeval # import pycoco import dataset diff --git a/cm4mlops/cm4mlops/repo/script/app-mlperf-automotive-mlcommons-python/ref/python/main.py b/cm4mlops/cm4mlops/repo/script/app-mlperf-automotive-mlcommons-python/ref/python/main.py index e4462da8c4..980018a6b3 100644 --- a/cm4mlops/cm4mlops/repo/script/app-mlperf-automotive-mlcommons-python/ref/python/main.py +++ b/cm4mlops/cm4mlops/repo/script/app-mlperf-automotive-mlcommons-python/ref/python/main.py @@ -8,7 +8,6 @@ import argparse import array -import collections import json import logging import os @@ -21,7 +20,6 @@ import numpy as np import cv2 import glob -import dataset import cognata import cognata_labels diff --git a/cm4mlops/cm4mlops/repo/script/app-mlperf-automotive/customize.py b/cm4mlops/cm4mlops/repo/script/app-mlperf-automotive/customize.py index 070f2b3c1c..279c91ad7e 100644 --- a/cm4mlops/cm4mlops/repo/script/app-mlperf-automotive/customize.py +++ b/cm4mlops/cm4mlops/repo/script/app-mlperf-automotive/customize.py @@ -1,9 +1,4 @@ -from cmind import utils import os -import json -import shutil -import subprocess -import mlperf_utils from log_parser import MLPerfLog diff --git a/cm4mlops/cm4mlops/repo/script/app-mlperf-inference-amd/customize.py b/cm4mlops/cm4mlops/repo/script/app-mlperf-inference-amd/customize.py index 7c6b91e580..323b000b42 100644 --- a/cm4mlops/cm4mlops/repo/script/app-mlperf-inference-amd/customize.py +++ b/cm4mlops/cm4mlops/repo/script/app-mlperf-inference-amd/customize.py @@ -9,9 +9,7 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os -import shutil def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/app-mlperf-inference-ctuning-cpp-tflite/customize.py b/cm4mlops/cm4mlops/repo/script/app-mlperf-inference-ctuning-cpp-tflite/customize.py index ec75f7e841..fa0c33814f 100644 --- a/cm4mlops/cm4mlops/repo/script/app-mlperf-inference-ctuning-cpp-tflite/customize.py +++ b/cm4mlops/cm4mlops/repo/script/app-mlperf-inference-ctuning-cpp-tflite/customize.py @@ -9,9 +9,7 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os -import shutil def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/app-mlperf-inference-dummy/customize.py b/cm4mlops/cm4mlops/repo/script/app-mlperf-inference-dummy/customize.py index fa6a73b931..499fb08aa5 100644 --- a/cm4mlops/cm4mlops/repo/script/app-mlperf-inference-dummy/customize.py +++ b/cm4mlops/cm4mlops/repo/script/app-mlperf-inference-dummy/customize.py @@ -9,9 +9,7 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os -import shutil def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/app-mlperf-inference-intel/customize.py b/cm4mlops/cm4mlops/repo/script/app-mlperf-inference-intel/customize.py index 5a62e19a2c..77a60ffad6 100644 --- a/cm4mlops/cm4mlops/repo/script/app-mlperf-inference-intel/customize.py +++ b/cm4mlops/cm4mlops/repo/script/app-mlperf-inference-intel/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os import shutil @@ -25,7 +24,6 @@ def preprocess(i): if env.get('CM_MLPERF_SKIP_RUN', '') == "yes": return {'return': 0} - import json if 'CM_MODEL' not in env: return { 'return': 1, 'error': 'Please select a variation specifying the model to run'} diff --git a/cm4mlops/cm4mlops/repo/script/app-mlperf-inference-mlcommons-cpp/customize.py b/cm4mlops/cm4mlops/repo/script/app-mlperf-inference-mlcommons-cpp/customize.py index e76b5f0810..10ed50abe5 100644 --- a/cm4mlops/cm4mlops/repo/script/app-mlperf-inference-mlcommons-cpp/customize.py +++ b/cm4mlops/cm4mlops/repo/script/app-mlperf-inference-mlcommons-cpp/customize.py @@ -9,9 +9,7 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os -import shutil def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/app-mlperf-inference-mlcommons-python/customize.py b/cm4mlops/cm4mlops/repo/script/app-mlperf-inference-mlcommons-python/customize.py index fc1e8450b8..0a384764b7 100644 --- a/cm4mlops/cm4mlops/repo/script/app-mlperf-inference-mlcommons-python/customize.py +++ b/cm4mlops/cm4mlops/repo/script/app-mlperf-inference-mlcommons-python/customize.py @@ -9,11 +9,7 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os -import json -import shutil -import subprocess def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/app-mlperf-inference-mlcommons-python/nvidia/retinanet.py b/cm4mlops/cm4mlops/repo/script/app-mlperf-inference-mlcommons-python/nvidia/retinanet.py index 090d1b072a..6a8722db3c 100644 --- a/cm4mlops/cm4mlops/repo/script/app-mlperf-inference-mlcommons-python/nvidia/retinanet.py +++ b/cm4mlops/cm4mlops/repo/script/app-mlperf-inference-mlcommons-python/nvidia/retinanet.py @@ -21,13 +21,9 @@ import json import os import sys -import glob -import random import time -import pycuda from PIL import Image from importlib import import_module -from typing import Dict, Tuple, List, Optional from code.common.fix_sys_path import ScopedRestrictedImport # with ScopedRestrictedImport(): @@ -40,9 +36,8 @@ from pycocotools.cocoeval import COCOeval from code.common import logging -from code.common.constants import TRT_LOGGER, Scenario -from code.common.systems.system_list import DETECTED_SYSTEM -from code.common.runner import EngineRunner, get_input_format +from code.common.constants import TRT_LOGGER +from code.common.runner import EngineRunner from code.common.systems.system_list import SystemClassifications from code.plugin import load_trt_plugin RetinanetEntropyCalibrator = import_module( diff --git a/cm4mlops/cm4mlops/repo/script/app-mlperf-inference-nvidia/customize.py b/cm4mlops/cm4mlops/repo/script/app-mlperf-inference-nvidia/customize.py index 3653c1f9a2..0e5eaf7757 100644 --- a/cm4mlops/cm4mlops/repo/script/app-mlperf-inference-nvidia/customize.py +++ b/cm4mlops/cm4mlops/repo/script/app-mlperf-inference-nvidia/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os import shutil diff --git a/cm4mlops/cm4mlops/repo/script/app-mlperf-inference-qualcomm/customize.py b/cm4mlops/cm4mlops/repo/script/app-mlperf-inference-qualcomm/customize.py index 68343b4915..1afed74554 100644 --- a/cm4mlops/cm4mlops/repo/script/app-mlperf-inference-qualcomm/customize.py +++ b/cm4mlops/cm4mlops/repo/script/app-mlperf-inference-qualcomm/customize.py @@ -9,9 +9,7 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os -import shutil def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/app-mlperf-inference-redhat/customize.py b/cm4mlops/cm4mlops/repo/script/app-mlperf-inference-redhat/customize.py index e15e57d091..519e5d329e 100644 --- a/cm4mlops/cm4mlops/repo/script/app-mlperf-inference-redhat/customize.py +++ b/cm4mlops/cm4mlops/repo/script/app-mlperf-inference-redhat/customize.py @@ -9,9 +9,7 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os -import shutil def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/app-mlperf-inference/customize.py b/cm4mlops/cm4mlops/repo/script/app-mlperf-inference/customize.py index 30bbf07328..c2c2912d8a 100644 --- a/cm4mlops/cm4mlops/repo/script/app-mlperf-inference/customize.py +++ b/cm4mlops/cm4mlops/repo/script/app-mlperf-inference/customize.py @@ -9,18 +9,15 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os import json import shutil -import subprocess import copy import cmind as cm import platform import sys import mlperf_utils -import re from datetime import datetime, timezone diff --git a/cm4mlops/cm4mlops/repo/script/app-mlperf-training-nvidia/customize.py b/cm4mlops/cm4mlops/repo/script/app-mlperf-training-nvidia/customize.py index 1686d4f7c8..75ae472673 100644 --- a/cm4mlops/cm4mlops/repo/script/app-mlperf-training-nvidia/customize.py +++ b/cm4mlops/cm4mlops/repo/script/app-mlperf-training-nvidia/customize.py @@ -9,11 +9,7 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os -import json -import shutil -import subprocess def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/app-mlperf-training-reference/customize.py b/cm4mlops/cm4mlops/repo/script/app-mlperf-training-reference/customize.py index 8dfd04c4d8..7cdc3a1990 100644 --- a/cm4mlops/cm4mlops/repo/script/app-mlperf-training-reference/customize.py +++ b/cm4mlops/cm4mlops/repo/script/app-mlperf-training-reference/customize.py @@ -9,11 +9,7 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os -import json -import shutil -import subprocess def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/authenticate-github-cli/customize.py b/cm4mlops/cm4mlops/repo/script/authenticate-github-cli/customize.py index 661349e6a3..62eb7a8c47 100644 --- a/cm4mlops/cm4mlops/repo/script/authenticate-github-cli/customize.py +++ b/cm4mlops/cm4mlops/repo/script/authenticate-github-cli/customize.py @@ -9,8 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/benchmark-any-mlperf-inference-implementation/customize.py b/cm4mlops/cm4mlops/repo/script/benchmark-any-mlperf-inference-implementation/customize.py index e502ba3bd4..c4a864ace3 100644 --- a/cm4mlops/cm4mlops/repo/script/benchmark-any-mlperf-inference-implementation/customize.py +++ b/cm4mlops/cm4mlops/repo/script/benchmark-any-mlperf-inference-implementation/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/benchmark-program-mlperf/customize.py b/cm4mlops/cm4mlops/repo/script/benchmark-program-mlperf/customize.py index 9fdc936aeb..6fa0d4da19 100644 --- a/cm4mlops/cm4mlops/repo/script/benchmark-program-mlperf/customize.py +++ b/cm4mlops/cm4mlops/repo/script/benchmark-program-mlperf/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/benchmark-program/customize.py b/cm4mlops/cm4mlops/repo/script/benchmark-program/customize.py index b743858955..334573a510 100644 --- a/cm4mlops/cm4mlops/repo/script/benchmark-program/customize.py +++ b/cm4mlops/cm4mlops/repo/script/benchmark-program/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/build-docker-image/customize.py b/cm4mlops/cm4mlops/repo/script/build-docker-image/customize.py index 4f2f1ac9e7..fda076faad 100644 --- a/cm4mlops/cm4mlops/repo/script/build-docker-image/customize.py +++ b/cm4mlops/cm4mlops/repo/script/build-docker-image/customize.py @@ -9,9 +9,7 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os -from os.path import exists def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/build-mlperf-inference-server-nvidia/customize.py b/cm4mlops/cm4mlops/repo/script/build-mlperf-inference-server-nvidia/customize.py index 727cd43875..a0f01b977e 100644 --- a/cm4mlops/cm4mlops/repo/script/build-mlperf-inference-server-nvidia/customize.py +++ b/cm4mlops/cm4mlops/repo/script/build-mlperf-inference-server-nvidia/customize.py @@ -9,9 +9,7 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os -import shutil def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/clean-nvidia-mlperf-inference-scratch-space/customize.py b/cm4mlops/cm4mlops/repo/script/clean-nvidia-mlperf-inference-scratch-space/customize.py index f2b1fa4fcb..33c94c22c8 100644 --- a/cm4mlops/cm4mlops/repo/script/clean-nvidia-mlperf-inference-scratch-space/customize.py +++ b/cm4mlops/cm4mlops/repo/script/clean-nvidia-mlperf-inference-scratch-space/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os import cmind as cm diff --git a/cm4mlops/cm4mlops/repo/script/compile-model-for.qaic/customize.py b/cm4mlops/cm4mlops/repo/script/compile-model-for.qaic/customize.py index b23476f8c5..0a56a89b15 100644 --- a/cm4mlops/cm4mlops/repo/script/compile-model-for.qaic/customize.py +++ b/cm4mlops/cm4mlops/repo/script/compile-model-for.qaic/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/compile-program/customize.py b/cm4mlops/cm4mlops/repo/script/compile-program/customize.py index 9630788d68..c9c6bdc6f3 100644 --- a/cm4mlops/cm4mlops/repo/script/compile-program/customize.py +++ b/cm4mlops/cm4mlops/repo/script/compile-program/customize.py @@ -9,8 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/convert-csv-to-md/customize.py b/cm4mlops/cm4mlops/repo/script/convert-csv-to-md/customize.py index 52dd88927a..0362daa612 100644 --- a/cm4mlops/cm4mlops/repo/script/convert-csv-to-md/customize.py +++ b/cm4mlops/cm4mlops/repo/script/convert-csv-to-md/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/convert-ml-model-huggingface-to-onnx/customize.py b/cm4mlops/cm4mlops/repo/script/convert-ml-model-huggingface-to-onnx/customize.py index 5aedebf404..f89d91a5b6 100644 --- a/cm4mlops/cm4mlops/repo/script/convert-ml-model-huggingface-to-onnx/customize.py +++ b/cm4mlops/cm4mlops/repo/script/convert-ml-model-huggingface-to-onnx/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/create-conda-env/customize.py b/cm4mlops/cm4mlops/repo/script/create-conda-env/customize.py index af8a82fcfe..8c9b3db724 100644 --- a/cm4mlops/cm4mlops/repo/script/create-conda-env/customize.py +++ b/cm4mlops/cm4mlops/repo/script/create-conda-env/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/create-custom-cache-entry/customize.py b/cm4mlops/cm4mlops/repo/script/create-custom-cache-entry/customize.py index c6eb8dd35b..acdd57ed26 100644 --- a/cm4mlops/cm4mlops/repo/script/create-custom-cache-entry/customize.py +++ b/cm4mlops/cm4mlops/repo/script/create-custom-cache-entry/customize.py @@ -9,9 +9,7 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os -import shutil def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/create-fpgaconvnet-app-tinyml/customize.py b/cm4mlops/cm4mlops/repo/script/create-fpgaconvnet-app-tinyml/customize.py index fd90167821..327c62b014 100644 --- a/cm4mlops/cm4mlops/repo/script/create-fpgaconvnet-app-tinyml/customize.py +++ b/cm4mlops/cm4mlops/repo/script/create-fpgaconvnet-app-tinyml/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/create-fpgaconvnet-config-tinyml/customize.py b/cm4mlops/cm4mlops/repo/script/create-fpgaconvnet-config-tinyml/customize.py index 9b44d63585..11b5ec2f75 100644 --- a/cm4mlops/cm4mlops/repo/script/create-fpgaconvnet-config-tinyml/customize.py +++ b/cm4mlops/cm4mlops/repo/script/create-fpgaconvnet-config-tinyml/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/create-patch/customize.py b/cm4mlops/cm4mlops/repo/script/create-patch/customize.py index 3aa82abfd7..9faffaf234 100644 --- a/cm4mlops/cm4mlops/repo/script/create-patch/customize.py +++ b/cm4mlops/cm4mlops/repo/script/create-patch/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/destroy-terraform/customize.py b/cm4mlops/cm4mlops/repo/script/destroy-terraform/customize.py index f42f5d9f28..578edd5a72 100644 --- a/cm4mlops/cm4mlops/repo/script/destroy-terraform/customize.py +++ b/cm4mlops/cm4mlops/repo/script/destroy-terraform/customize.py @@ -9,8 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/detect-sudo/customize.py b/cm4mlops/cm4mlops/repo/script/detect-sudo/customize.py index 56cedd4fd0..3cfd454c78 100644 --- a/cm4mlops/cm4mlops/repo/script/detect-sudo/customize.py +++ b/cm4mlops/cm4mlops/repo/script/detect-sudo/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os import subprocess import select diff --git a/cm4mlops/cm4mlops/repo/script/download-and-extract/customize.py b/cm4mlops/cm4mlops/repo/script/download-and-extract/customize.py index 0dde6a37e6..b3af26690b 100644 --- a/cm4mlops/cm4mlops/repo/script/download-and-extract/customize.py +++ b/cm4mlops/cm4mlops/repo/script/download-and-extract/customize.py @@ -9,9 +9,7 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os -import hashlib def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/download-file/customize.py b/cm4mlops/cm4mlops/repo/script/download-file/customize.py index ac84544cb5..ed8809811c 100644 --- a/cm4mlops/cm4mlops/repo/script/download-file/customize.py +++ b/cm4mlops/cm4mlops/repo/script/download-file/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os import subprocess diff --git a/cm4mlops/cm4mlops/repo/script/download-torrent/customize.py b/cm4mlops/cm4mlops/repo/script/download-torrent/customize.py index 0b2dda284c..ec5bb930c1 100644 --- a/cm4mlops/cm4mlops/repo/script/download-torrent/customize.py +++ b/cm4mlops/cm4mlops/repo/script/download-torrent/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/draw-graph-from-json-data/customize.py b/cm4mlops/cm4mlops/repo/script/draw-graph-from-json-data/customize.py index ac7d293bbc..5d039c025c 100644 --- a/cm4mlops/cm4mlops/repo/script/draw-graph-from-json-data/customize.py +++ b/cm4mlops/cm4mlops/repo/script/draw-graph-from-json-data/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/dump-pip-freeze/customize.py b/cm4mlops/cm4mlops/repo/script/dump-pip-freeze/customize.py index 92275ea2a6..57a365ec90 100644 --- a/cm4mlops/cm4mlops/repo/script/dump-pip-freeze/customize.py +++ b/cm4mlops/cm4mlops/repo/script/dump-pip-freeze/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/extract-file/customize.py b/cm4mlops/cm4mlops/repo/script/extract-file/customize.py index b879967c96..63cd0fe511 100644 --- a/cm4mlops/cm4mlops/repo/script/extract-file/customize.py +++ b/cm4mlops/cm4mlops/repo/script/extract-file/customize.py @@ -9,9 +9,7 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os -import hashlib def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/fail/customize.py b/cm4mlops/cm4mlops/repo/script/fail/customize.py index c1cf26c4f8..fdaacb8609 100644 --- a/cm4mlops/cm4mlops/repo/script/fail/customize.py +++ b/cm4mlops/cm4mlops/repo/script/fail/customize.py @@ -9,8 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/flash-tinyml-binary/customize.py b/cm4mlops/cm4mlops/repo/script/flash-tinyml-binary/customize.py index c75c8a572c..94983493ce 100644 --- a/cm4mlops/cm4mlops/repo/script/flash-tinyml-binary/customize.py +++ b/cm4mlops/cm4mlops/repo/script/flash-tinyml-binary/customize.py @@ -9,8 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/generate-mlperf-inference-submission/customize.py b/cm4mlops/cm4mlops/repo/script/generate-mlperf-inference-submission/customize.py index 02161eb202..7320b4f89e 100644 --- a/cm4mlops/cm4mlops/repo/script/generate-mlperf-inference-submission/customize.py +++ b/cm4mlops/cm4mlops/repo/script/generate-mlperf-inference-submission/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os import json import shutil diff --git a/cm4mlops/cm4mlops/repo/script/generate-mlperf-inference-user-conf/customize.py b/cm4mlops/cm4mlops/repo/script/generate-mlperf-inference-user-conf/customize.py index fc31f0c1de..3575ddeb5a 100644 --- a/cm4mlops/cm4mlops/repo/script/generate-mlperf-inference-user-conf/customize.py +++ b/cm4mlops/cm4mlops/repo/script/generate-mlperf-inference-user-conf/customize.py @@ -9,12 +9,8 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os -import json import shutil -import subprocess -import cmind as cm import sys diff --git a/cm4mlops/cm4mlops/repo/script/generate-mlperf-tiny-report/customize.py b/cm4mlops/cm4mlops/repo/script/generate-mlperf-tiny-report/customize.py index b93ef11c4b..9040435793 100644 --- a/cm4mlops/cm4mlops/repo/script/generate-mlperf-tiny-report/customize.py +++ b/cm4mlops/cm4mlops/repo/script/generate-mlperf-tiny-report/customize.py @@ -10,11 +10,8 @@ # import cmind as cm -from cmind import utils import os -import subprocess -import json import shutil diff --git a/cm4mlops/cm4mlops/repo/script/generate-mlperf-tiny-submission/customize.py b/cm4mlops/cm4mlops/repo/script/generate-mlperf-tiny-submission/customize.py index 476c1e2ed2..f04fd872fd 100644 --- a/cm4mlops/cm4mlops/repo/script/generate-mlperf-tiny-submission/customize.py +++ b/cm4mlops/cm4mlops/repo/script/generate-mlperf-tiny-submission/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os import json import shutil diff --git a/cm4mlops/cm4mlops/repo/script/get-android-sdk/customize.py b/cm4mlops/cm4mlops/repo/script/get-android-sdk/customize.py index aafd6d96f4..0d13c199cc 100644 --- a/cm4mlops/cm4mlops/repo/script/get-android-sdk/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-android-sdk/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-aocl/customize.py b/cm4mlops/cm4mlops/repo/script/get-aocl/customize.py index 58c280fa70..ae40dd7732 100644 --- a/cm4mlops/cm4mlops/repo/script/get-aocl/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-aocl/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-aria2/customize.py b/cm4mlops/cm4mlops/repo/script/get-aria2/customize.py index f9fd6e5baa..3b64d77e78 100644 --- a/cm4mlops/cm4mlops/repo/script/get-aria2/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-aria2/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-aws-cli/customize.py b/cm4mlops/cm4mlops/repo/script/get-aws-cli/customize.py index 60c7555f63..7368f742d4 100644 --- a/cm4mlops/cm4mlops/repo/script/get-aws-cli/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-aws-cli/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-bazel/customize.py b/cm4mlops/cm4mlops/repo/script/get-bazel/customize.py index 280c2484bf..c8867c2bd8 100644 --- a/cm4mlops/cm4mlops/repo/script/get-bazel/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-bazel/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-blis/customize.py b/cm4mlops/cm4mlops/repo/script/get-blis/customize.py index afd22977e7..ff60f188f0 100644 --- a/cm4mlops/cm4mlops/repo/script/get-blis/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-blis/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-cache-dir/customize.py b/cm4mlops/cm4mlops/repo/script/get-cache-dir/customize.py index 1b42d4d31e..7a35371b55 100644 --- a/cm4mlops/cm4mlops/repo/script/get-cache-dir/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-cache-dir/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-cl/customize.py b/cm4mlops/cm4mlops/repo/script/get-cl/customize.py index 6a5620530b..ca3a888246 100644 --- a/cm4mlops/cm4mlops/repo/script/get-cl/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-cl/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-cmake/customize.py b/cm4mlops/cm4mlops/repo/script/get-cmake/customize.py index c51ef5633a..2dccf9024e 100644 --- a/cm4mlops/cm4mlops/repo/script/get-cmake/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-cmake/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-cmsis_5/customize.py b/cm4mlops/cm4mlops/repo/script/get-cmsis_5/customize.py index 732c9c26a5..b5366a090b 100644 --- a/cm4mlops/cm4mlops/repo/script/get-cmsis_5/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-cmsis_5/customize.py @@ -9,9 +9,7 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os -import shutil def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/get-compiler-flags/customize.py b/cm4mlops/cm4mlops/repo/script/get-compiler-flags/customize.py index 7dc48300c1..2b991615ee 100644 --- a/cm4mlops/cm4mlops/repo/script/get-compiler-flags/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-compiler-flags/customize.py @@ -9,8 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os import subprocess diff --git a/cm4mlops/cm4mlops/repo/script/get-compiler-rust/customize.py b/cm4mlops/cm4mlops/repo/script/get-compiler-rust/customize.py index e1560d8f45..e16ba584c3 100644 --- a/cm4mlops/cm4mlops/repo/script/get-compiler-rust/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-compiler-rust/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-conda/customize.py b/cm4mlops/cm4mlops/repo/script/get-conda/customize.py index 7316b5b069..acd94d99e4 100644 --- a/cm4mlops/cm4mlops/repo/script/get-conda/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-conda/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-croissant/customize.py b/cm4mlops/cm4mlops/repo/script/get-croissant/customize.py index 93e0971bf5..0c99dbf966 100644 --- a/cm4mlops/cm4mlops/repo/script/get-croissant/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-croissant/customize.py @@ -9,8 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/get-cuda-devices/customize.py b/cm4mlops/cm4mlops/repo/script/get-cuda-devices/customize.py index ac23ee7ef9..acf9d15209 100644 --- a/cm4mlops/cm4mlops/repo/script/get-cuda-devices/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-cuda-devices/customize.py @@ -10,8 +10,6 @@ # from cmind import utils -import os -import subprocess def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/get-cuda-devices/detect.py b/cm4mlops/cm4mlops/repo/script/get-cuda-devices/detect.py index 6603cc9f46..cdb053df01 100644 --- a/cm4mlops/cm4mlops/repo/script/get-cuda-devices/detect.py +++ b/cm4mlops/cm4mlops/repo/script/get-cuda-devices/detect.py @@ -1,5 +1,4 @@ import pycuda.driver as cuda -import pycuda.autoinit def get_gpu_info(): diff --git a/cm4mlops/cm4mlops/repo/script/get-cuda/customize.py b/cm4mlops/cm4mlops/repo/script/get-cuda/customize.py index aa2df4494e..da334cb8c1 100644 --- a/cm4mlops/cm4mlops/repo/script/get-cuda/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-cuda/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os import json diff --git a/cm4mlops/cm4mlops/repo/script/get-dataset-cifar10/customize.py b/cm4mlops/cm4mlops/repo/script/get-dataset-cifar10/customize.py index a94b4e7c06..949a64532b 100644 --- a/cm4mlops/cm4mlops/repo/script/get-dataset-cifar10/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-dataset-cifar10/customize.py @@ -9,9 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os -import shutil def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/get-dataset-cnndm/customize.py b/cm4mlops/cm4mlops/repo/script/get-dataset-cnndm/customize.py index ea837309bb..05e8d4de09 100644 --- a/cm4mlops/cm4mlops/repo/script/get-dataset-cnndm/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-dataset-cnndm/customize.py @@ -9,9 +9,7 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os -import shutil def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/get-dataset-coco/customize.py b/cm4mlops/cm4mlops/repo/script/get-dataset-coco/customize.py index 20b4fc1486..26e86d4211 100644 --- a/cm4mlops/cm4mlops/repo/script/get-dataset-coco/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-dataset-coco/customize.py @@ -9,9 +9,7 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os -import shutil def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/get-dataset-coco2014/customize.py b/cm4mlops/cm4mlops/repo/script/get-dataset-coco2014/customize.py index 43511c0426..ddfd6f0c0e 100644 --- a/cm4mlops/cm4mlops/repo/script/get-dataset-coco2014/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-dataset-coco2014/customize.py @@ -9,9 +9,7 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os -import shutil def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/get-dataset-igbh/customize.py b/cm4mlops/cm4mlops/repo/script/get-dataset-igbh/customize.py index de85bd9001..13f18493ef 100644 --- a/cm4mlops/cm4mlops/repo/script/get-dataset-igbh/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-dataset-igbh/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-dataset-imagenet-helper/customize.py b/cm4mlops/cm4mlops/repo/script/get-dataset-imagenet-helper/customize.py index 9464f8ffb4..1534807d2a 100644 --- a/cm4mlops/cm4mlops/repo/script/get-dataset-imagenet-helper/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-dataset-imagenet-helper/customize.py @@ -9,8 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os def postprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/get-dataset-imagenet-train/customize.py b/cm4mlops/cm4mlops/repo/script/get-dataset-imagenet-train/customize.py index 835b302384..95a47b0733 100644 --- a/cm4mlops/cm4mlops/repo/script/get-dataset-imagenet-train/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-dataset-imagenet-train/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-dataset-imagenet-val/customize.py b/cm4mlops/cm4mlops/repo/script/get-dataset-imagenet-val/customize.py index 9cd596a733..82fcc3ffee 100644 --- a/cm4mlops/cm4mlops/repo/script/get-dataset-imagenet-val/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-dataset-imagenet-val/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-dataset-kits19/customize.py b/cm4mlops/cm4mlops/repo/script/get-dataset-kits19/customize.py index 31e974233c..ba08ce53ed 100644 --- a/cm4mlops/cm4mlops/repo/script/get-dataset-kits19/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-dataset-kits19/customize.py @@ -9,9 +9,7 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os -import shutil def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/get-dataset-librispeech/customize.py b/cm4mlops/cm4mlops/repo/script/get-dataset-librispeech/customize.py index ae19d286f6..2a8fa9b379 100644 --- a/cm4mlops/cm4mlops/repo/script/get-dataset-librispeech/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-dataset-librispeech/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-dataset-mlperf-inference-igbh/customize.py b/cm4mlops/cm4mlops/repo/script/get-dataset-mlperf-inference-igbh/customize.py index f68df4bd5e..2199129d22 100644 --- a/cm4mlops/cm4mlops/repo/script/get-dataset-mlperf-inference-igbh/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-dataset-mlperf-inference-igbh/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-dataset-mlperf-inference-llama3/customize.py b/cm4mlops/cm4mlops/repo/script/get-dataset-mlperf-inference-llama3/customize.py index 745dc52fee..8fc00003a4 100644 --- a/cm4mlops/cm4mlops/repo/script/get-dataset-mlperf-inference-llama3/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-dataset-mlperf-inference-llama3/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-dataset-mlperf-inference-mixtral/customize.py b/cm4mlops/cm4mlops/repo/script/get-dataset-mlperf-inference-mixtral/customize.py index f0543acb9e..6655ce7bf1 100644 --- a/cm4mlops/cm4mlops/repo/script/get-dataset-mlperf-inference-mixtral/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-dataset-mlperf-inference-mixtral/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-dataset-openimages-annotations/customize.py b/cm4mlops/cm4mlops/repo/script/get-dataset-openimages-annotations/customize.py index 604423fb5d..2c1b100f6a 100644 --- a/cm4mlops/cm4mlops/repo/script/get-dataset-openimages-annotations/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-dataset-openimages-annotations/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-dataset-openimages-calibration/customize.py b/cm4mlops/cm4mlops/repo/script/get-dataset-openimages-calibration/customize.py index 7eacb12563..9678820377 100644 --- a/cm4mlops/cm4mlops/repo/script/get-dataset-openimages-calibration/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-dataset-openimages-calibration/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-dataset-openimages/customize.py b/cm4mlops/cm4mlops/repo/script/get-dataset-openimages/customize.py index b9d9998b87..b03648887b 100644 --- a/cm4mlops/cm4mlops/repo/script/get-dataset-openimages/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-dataset-openimages/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os import shutil diff --git a/cm4mlops/cm4mlops/repo/script/get-dataset-openorca/customize.py b/cm4mlops/cm4mlops/repo/script/get-dataset-openorca/customize.py index b0a7add20b..964a11e8ff 100644 --- a/cm4mlops/cm4mlops/repo/script/get-dataset-openorca/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-dataset-openorca/customize.py @@ -9,9 +9,7 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os -import shutil def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/get-dataset-squad-vocab/customize.py b/cm4mlops/cm4mlops/repo/script/get-dataset-squad-vocab/customize.py index 905db202d5..1e79b1142f 100644 --- a/cm4mlops/cm4mlops/repo/script/get-dataset-squad-vocab/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-dataset-squad-vocab/customize.py @@ -9,8 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/get-dataset-squad/customize.py b/cm4mlops/cm4mlops/repo/script/get-dataset-squad/customize.py index 73a9b3ba83..6cb3ad3654 100644 --- a/cm4mlops/cm4mlops/repo/script/get-dataset-squad/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-dataset-squad/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-dlrm-data-mlperf-inference/customize.py b/cm4mlops/cm4mlops/repo/script/get-dlrm-data-mlperf-inference/customize.py index 7be990dbea..5aac020c59 100644 --- a/cm4mlops/cm4mlops/repo/script/get-dlrm-data-mlperf-inference/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-dlrm-data-mlperf-inference/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-dlrm/customize.py b/cm4mlops/cm4mlops/repo/script/get-dlrm/customize.py index c0d96bb3d4..f80b61b00f 100644 --- a/cm4mlops/cm4mlops/repo/script/get-dlrm/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-dlrm/customize.py @@ -9,9 +9,7 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os -import shutil def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/get-docker/customize.py b/cm4mlops/cm4mlops/repo/script/get-docker/customize.py index 0be862b5c6..711c1d25b1 100644 --- a/cm4mlops/cm4mlops/repo/script/get-docker/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-docker/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-gcc/customize.py b/cm4mlops/cm4mlops/repo/script/get-gcc/customize.py index e8a225a4c6..f82b477e4e 100644 --- a/cm4mlops/cm4mlops/repo/script/get-gcc/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-gcc/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-generic-python-lib/customize.py b/cm4mlops/cm4mlops/repo/script/get-generic-python-lib/customize.py index 2f61bac020..bd29e05029 100644 --- a/cm4mlops/cm4mlops/repo/script/get-generic-python-lib/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-generic-python-lib/customize.py @@ -9,9 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os -import cmind as cm def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/get-generic-sys-util/customize.py b/cm4mlops/cm4mlops/repo/script/get-generic-sys-util/customize.py index e6061a8997..ccf0809d6e 100644 --- a/cm4mlops/cm4mlops/repo/script/get-generic-sys-util/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-generic-sys-util/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os import re diff --git a/cm4mlops/cm4mlops/repo/script/get-gh-actions-runner/customize.py b/cm4mlops/cm4mlops/repo/script/get-gh-actions-runner/customize.py index 83006dc309..3d19a95c0c 100644 --- a/cm4mlops/cm4mlops/repo/script/get-gh-actions-runner/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-gh-actions-runner/customize.py @@ -9,8 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os import cmind as cm diff --git a/cm4mlops/cm4mlops/repo/script/get-git-repo/customize.py b/cm4mlops/cm4mlops/repo/script/get-git-repo/customize.py index f292f4e19e..d8187fdac8 100644 --- a/cm4mlops/cm4mlops/repo/script/get-git-repo/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-git-repo/customize.py @@ -9,9 +9,7 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os -import shutil def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/get-github-cli/customize.py b/cm4mlops/cm4mlops/repo/script/get-github-cli/customize.py index a4bc06820b..a0dfc81e8c 100644 --- a/cm4mlops/cm4mlops/repo/script/get-github-cli/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-github-cli/customize.py @@ -9,8 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/get-go/customize.py b/cm4mlops/cm4mlops/repo/script/get-go/customize.py index 136fccf141..f7635d4cb7 100644 --- a/cm4mlops/cm4mlops/repo/script/get-go/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-go/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-google-saxml/customize.py b/cm4mlops/cm4mlops/repo/script/get-google-saxml/customize.py index 29da237a59..dc0cc47b80 100644 --- a/cm4mlops/cm4mlops/repo/script/get-google-saxml/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-google-saxml/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-google-test/customize.py b/cm4mlops/cm4mlops/repo/script/get-google-test/customize.py index b604a9a7b5..f5029203bf 100644 --- a/cm4mlops/cm4mlops/repo/script/get-google-test/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-google-test/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-huggingface-cli/customize.py b/cm4mlops/cm4mlops/repo/script/get-huggingface-cli/customize.py index d9e63e42c9..375721bbfb 100644 --- a/cm4mlops/cm4mlops/repo/script/get-huggingface-cli/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-huggingface-cli/customize.py @@ -1,5 +1,3 @@ -from cmind import utils -import os def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/get-ipol-src/customize.py b/cm4mlops/cm4mlops/repo/script/get-ipol-src/customize.py index 61e06952fb..8697153fea 100644 --- a/cm4mlops/cm4mlops/repo/script/get-ipol-src/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-ipol-src/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-java/customize.py b/cm4mlops/cm4mlops/repo/script/get-java/customize.py index 7d14a38275..350a582830 100644 --- a/cm4mlops/cm4mlops/repo/script/get-java/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-java/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-javac/customize.py b/cm4mlops/cm4mlops/repo/script/get-javac/customize.py index ea3689ecb7..b534a394fb 100644 --- a/cm4mlops/cm4mlops/repo/script/get-javac/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-javac/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-lib-armnn/customize.py b/cm4mlops/cm4mlops/repo/script/get-lib-armnn/customize.py index 7505dd0edc..1c3ef13645 100644 --- a/cm4mlops/cm4mlops/repo/script/get-lib-armnn/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-lib-armnn/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-lib-dnnl/customize.py b/cm4mlops/cm4mlops/repo/script/get-lib-dnnl/customize.py index 4a921e0ec7..c745cba9ac 100644 --- a/cm4mlops/cm4mlops/repo/script/get-lib-dnnl/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-lib-dnnl/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-lib-protobuf/customize.py b/cm4mlops/cm4mlops/repo/script/get-lib-protobuf/customize.py index 882393320e..d3518c0b2e 100644 --- a/cm4mlops/cm4mlops/repo/script/get-lib-protobuf/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-lib-protobuf/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-lib-qaic-api/customize.py b/cm4mlops/cm4mlops/repo/script/get-lib-qaic-api/customize.py index 596a40c1a9..2eb0e5c92b 100644 --- a/cm4mlops/cm4mlops/repo/script/get-lib-qaic-api/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-lib-qaic-api/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-llvm/customize.py b/cm4mlops/cm4mlops/repo/script/get-llvm/customize.py index 6049d31593..f6e515e3de 100644 --- a/cm4mlops/cm4mlops/repo/script/get-llvm/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-llvm/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-microtvm/customize.py b/cm4mlops/cm4mlops/repo/script/get-microtvm/customize.py index 85440ac389..a2f03d8843 100644 --- a/cm4mlops/cm4mlops/repo/script/get-microtvm/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-microtvm/customize.py @@ -9,9 +9,7 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os -import shutil def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/get-ml-model-3d-unet-kits19/customize.py b/cm4mlops/cm4mlops/repo/script/get-ml-model-3d-unet-kits19/customize.py index 897e758c3b..3454b62433 100644 --- a/cm4mlops/cm4mlops/repo/script/get-ml-model-3d-unet-kits19/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-ml-model-3d-unet-kits19/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-ml-model-abtf-ssd-pytorch/customize.py b/cm4mlops/cm4mlops/repo/script/get-ml-model-abtf-ssd-pytorch/customize.py index 10a3a7f837..9cfa9a2139 100644 --- a/cm4mlops/cm4mlops/repo/script/get-ml-model-abtf-ssd-pytorch/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-ml-model-abtf-ssd-pytorch/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-ml-model-bert-large-squad/customize.py b/cm4mlops/cm4mlops/repo/script/get-ml-model-bert-large-squad/customize.py index 5d4afe15a7..196673638e 100644 --- a/cm4mlops/cm4mlops/repo/script/get-ml-model-bert-large-squad/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-ml-model-bert-large-squad/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-ml-model-efficientnet-lite/customize.py b/cm4mlops/cm4mlops/repo/script/get-ml-model-efficientnet-lite/customize.py index dbeedee41a..be9ca06c8d 100644 --- a/cm4mlops/cm4mlops/repo/script/get-ml-model-efficientnet-lite/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-ml-model-efficientnet-lite/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-ml-model-gptj/customize.py b/cm4mlops/cm4mlops/repo/script/get-ml-model-gptj/customize.py index 22ef4bd42f..8fd4fc99b9 100644 --- a/cm4mlops/cm4mlops/repo/script/get-ml-model-gptj/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-ml-model-gptj/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-ml-model-huggingface-zoo/customize.py b/cm4mlops/cm4mlops/repo/script/get-ml-model-huggingface-zoo/customize.py index 6f80ad11ff..3768c70e4d 100644 --- a/cm4mlops/cm4mlops/repo/script/get-ml-model-huggingface-zoo/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-ml-model-huggingface-zoo/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-ml-model-llama2/customize.py b/cm4mlops/cm4mlops/repo/script/get-ml-model-llama2/customize.py index a463f77977..202dfc31b7 100644 --- a/cm4mlops/cm4mlops/repo/script/get-ml-model-llama2/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-ml-model-llama2/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-ml-model-llama3/customize.py b/cm4mlops/cm4mlops/repo/script/get-ml-model-llama3/customize.py index 9ec7edecd4..f1ed15531b 100644 --- a/cm4mlops/cm4mlops/repo/script/get-ml-model-llama3/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-ml-model-llama3/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-ml-model-mixtral/customize.py b/cm4mlops/cm4mlops/repo/script/get-ml-model-mixtral/customize.py index 18b0a8ecfc..d7fb3c4899 100644 --- a/cm4mlops/cm4mlops/repo/script/get-ml-model-mixtral/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-ml-model-mixtral/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-ml-model-mobilenet/customize.py b/cm4mlops/cm4mlops/repo/script/get-ml-model-mobilenet/customize.py index dbeedee41a..be9ca06c8d 100644 --- a/cm4mlops/cm4mlops/repo/script/get-ml-model-mobilenet/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-ml-model-mobilenet/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-ml-model-neuralmagic-zoo/customize.py b/cm4mlops/cm4mlops/repo/script/get-ml-model-neuralmagic-zoo/customize.py index 11dd18453f..6947c3ffd8 100644 --- a/cm4mlops/cm4mlops/repo/script/get-ml-model-neuralmagic-zoo/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-ml-model-neuralmagic-zoo/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-ml-model-resnet50/customize.py b/cm4mlops/cm4mlops/repo/script/get-ml-model-resnet50/customize.py index 0e2b986eaf..9c8556974a 100644 --- a/cm4mlops/cm4mlops/repo/script/get-ml-model-resnet50/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-ml-model-resnet50/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-ml-model-retinanet-nvidia/customize.py b/cm4mlops/cm4mlops/repo/script/get-ml-model-retinanet-nvidia/customize.py index 3fe50548fc..a7032fd0be 100644 --- a/cm4mlops/cm4mlops/repo/script/get-ml-model-retinanet-nvidia/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-ml-model-retinanet-nvidia/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-ml-model-retinanet-nvidia/nvidia_patch_retinanet_efficientnms.py b/cm4mlops/cm4mlops/repo/script/get-ml-model-retinanet-nvidia/nvidia_patch_retinanet_efficientnms.py index d445ef01ca..76e07b7aaa 100644 --- a/cm4mlops/cm4mlops/repo/script/get-ml-model-retinanet-nvidia/nvidia_patch_retinanet_efficientnms.py +++ b/cm4mlops/cm4mlops/repo/script/get-ml-model-retinanet-nvidia/nvidia_patch_retinanet_efficientnms.py @@ -12,11 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -import torch import onnx -import argparse -import json -import re import onnx_graphsurgeon as gs import numpy as np diff --git a/cm4mlops/cm4mlops/repo/script/get-ml-model-retinanet/customize.py b/cm4mlops/cm4mlops/repo/script/get-ml-model-retinanet/customize.py index 3e9d2b5116..23487cfabf 100644 --- a/cm4mlops/cm4mlops/repo/script/get-ml-model-retinanet/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-ml-model-retinanet/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-ml-model-retinanet/node-precision-info.py b/cm4mlops/cm4mlops/repo/script/get-ml-model-retinanet/node-precision-info.py index 15d5213b9d..78c6621b51 100644 --- a/cm4mlops/cm4mlops/repo/script/get-ml-model-retinanet/node-precision-info.py +++ b/cm4mlops/cm4mlops/repo/script/get-ml-model-retinanet/node-precision-info.py @@ -1,5 +1,4 @@ import onnx -import os import sys import argparse import yaml diff --git a/cm4mlops/cm4mlops/repo/script/get-ml-model-rgat/customize.py b/cm4mlops/cm4mlops/repo/script/get-ml-model-rgat/customize.py index 99e6731ecf..abb8be6748 100644 --- a/cm4mlops/cm4mlops/repo/script/get-ml-model-rgat/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-ml-model-rgat/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-ml-model-rnnt/customize.py b/cm4mlops/cm4mlops/repo/script/get-ml-model-rnnt/customize.py index 15fec7cf53..a67a8ec198 100644 --- a/cm4mlops/cm4mlops/repo/script/get-ml-model-rnnt/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-ml-model-rnnt/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-ml-model-stable-diffusion/customize.py b/cm4mlops/cm4mlops/repo/script/get-ml-model-stable-diffusion/customize.py index 828e87cfb6..12a2e7b0be 100644 --- a/cm4mlops/cm4mlops/repo/script/get-ml-model-stable-diffusion/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-ml-model-stable-diffusion/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-ml-model-tiny-resnet/customize.py b/cm4mlops/cm4mlops/repo/script/get-ml-model-tiny-resnet/customize.py index 36c10bb488..d20613a3d9 100644 --- a/cm4mlops/cm4mlops/repo/script/get-ml-model-tiny-resnet/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-ml-model-tiny-resnet/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-ml-model-using-imagenet-from-model-zoo/customize.py b/cm4mlops/cm4mlops/repo/script/get-ml-model-using-imagenet-from-model-zoo/customize.py index 571c4ea259..34e3e18322 100644 --- a/cm4mlops/cm4mlops/repo/script/get-ml-model-using-imagenet-from-model-zoo/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-ml-model-using-imagenet-from-model-zoo/customize.py @@ -9,8 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/get-mlperf-automotive-scratch-space/customize.py b/cm4mlops/cm4mlops/repo/script/get-mlperf-automotive-scratch-space/customize.py index 057acd2c4e..211292d7da 100644 --- a/cm4mlops/cm4mlops/repo/script/get-mlperf-automotive-scratch-space/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-mlperf-automotive-scratch-space/customize.py @@ -1,4 +1,3 @@ -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-mlperf-inference-intel-scratch-space/customize.py b/cm4mlops/cm4mlops/repo/script/get-mlperf-inference-intel-scratch-space/customize.py index a251094535..3f58417160 100644 --- a/cm4mlops/cm4mlops/repo/script/get-mlperf-inference-intel-scratch-space/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-mlperf-inference-intel-scratch-space/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-mlperf-inference-loadgen/customize.py b/cm4mlops/cm4mlops/repo/script/get-mlperf-inference-loadgen/customize.py index de6d6299bd..17b7b1c3f8 100644 --- a/cm4mlops/cm4mlops/repo/script/get-mlperf-inference-loadgen/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-mlperf-inference-loadgen/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-mlperf-inference-nvidia-common-code/customize.py b/cm4mlops/cm4mlops/repo/script/get-mlperf-inference-nvidia-common-code/customize.py index 61a2bfe4ba..782ae4fb02 100644 --- a/cm4mlops/cm4mlops/repo/script/get-mlperf-inference-nvidia-common-code/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-mlperf-inference-nvidia-common-code/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-mlperf-inference-nvidia-scratch-space/customize.py b/cm4mlops/cm4mlops/repo/script/get-mlperf-inference-nvidia-scratch-space/customize.py index 90a733a7f8..8e8567ad3c 100644 --- a/cm4mlops/cm4mlops/repo/script/get-mlperf-inference-nvidia-scratch-space/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-mlperf-inference-nvidia-scratch-space/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-mlperf-inference-results-dir/customize.py b/cm4mlops/cm4mlops/repo/script/get-mlperf-inference-results-dir/customize.py index 978e89c5ba..8419b49f25 100644 --- a/cm4mlops/cm4mlops/repo/script/get-mlperf-inference-results-dir/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-mlperf-inference-results-dir/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-mlperf-inference-results/customize.py b/cm4mlops/cm4mlops/repo/script/get-mlperf-inference-results/customize.py index 093e95040d..ca033d7da9 100644 --- a/cm4mlops/cm4mlops/repo/script/get-mlperf-inference-results/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-mlperf-inference-results/customize.py @@ -9,9 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os -import shutil def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/get-mlperf-inference-src/customize.py b/cm4mlops/cm4mlops/repo/script/get-mlperf-inference-src/customize.py index 4076ebe008..eb262a891c 100644 --- a/cm4mlops/cm4mlops/repo/script/get-mlperf-inference-src/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-mlperf-inference-src/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os import shutil diff --git a/cm4mlops/cm4mlops/repo/script/get-mlperf-inference-submission-dir/customize.py b/cm4mlops/cm4mlops/repo/script/get-mlperf-inference-submission-dir/customize.py index 583a941174..7e17bd5a52 100644 --- a/cm4mlops/cm4mlops/repo/script/get-mlperf-inference-submission-dir/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-mlperf-inference-submission-dir/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-mlperf-inference-sut-configs/customize.py b/cm4mlops/cm4mlops/repo/script/get-mlperf-inference-sut-configs/customize.py index b66c9cb205..5870cbb51a 100644 --- a/cm4mlops/cm4mlops/repo/script/get-mlperf-inference-sut-configs/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-mlperf-inference-sut-configs/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os import yaml import shutil diff --git a/cm4mlops/cm4mlops/repo/script/get-mlperf-inference-sut-description/customize.py b/cm4mlops/cm4mlops/repo/script/get-mlperf-inference-sut-description/customize.py index 5bc14bc2d6..a04d833e93 100644 --- a/cm4mlops/cm4mlops/repo/script/get-mlperf-inference-sut-description/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-mlperf-inference-sut-description/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os import json import shutil diff --git a/cm4mlops/cm4mlops/repo/script/get-mlperf-inference-sut-description/get_memory_info.py b/cm4mlops/cm4mlops/repo/script/get-mlperf-inference-sut-description/get_memory_info.py index 27d0f870ad..1df82ed292 100644 --- a/cm4mlops/cm4mlops/repo/script/get-mlperf-inference-sut-description/get_memory_info.py +++ b/cm4mlops/cm4mlops/repo/script/get-mlperf-inference-sut-description/get_memory_info.py @@ -1,4 +1,3 @@ -import os import json from dmiparser import DmiParser diff --git a/cm4mlops/cm4mlops/repo/script/get-mlperf-inference-utils/customize.py b/cm4mlops/cm4mlops/repo/script/get-mlperf-inference-utils/customize.py index efbd039c80..3e189d0784 100644 --- a/cm4mlops/cm4mlops/repo/script/get-mlperf-inference-utils/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-mlperf-inference-utils/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os import sys diff --git a/cm4mlops/cm4mlops/repo/script/get-mlperf-inference-utils/mlperf_utils.py b/cm4mlops/cm4mlops/repo/script/get-mlperf-inference-utils/mlperf_utils.py index 1e60cafc15..12ee7d870a 100644 --- a/cm4mlops/cm4mlops/repo/script/get-mlperf-inference-utils/mlperf_utils.py +++ b/cm4mlops/cm4mlops/repo/script/get-mlperf-inference-utils/mlperf_utils.py @@ -1,4 +1,3 @@ -import sys import os import submission_checker as checker from log_parser import MLPerfLog diff --git a/cm4mlops/cm4mlops/repo/script/get-mlperf-logging/customize.py b/cm4mlops/cm4mlops/repo/script/get-mlperf-logging/customize.py index 1282175e0c..e194757cde 100644 --- a/cm4mlops/cm4mlops/repo/script/get-mlperf-logging/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-mlperf-logging/customize.py @@ -9,9 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os -import shutil def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/get-mlperf-power-dev/customize.py b/cm4mlops/cm4mlops/repo/script/get-mlperf-power-dev/customize.py index bedbf96c43..029543b038 100644 --- a/cm4mlops/cm4mlops/repo/script/get-mlperf-power-dev/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-mlperf-power-dev/customize.py @@ -9,9 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os -import shutil def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/get-mlperf-tiny-eembc-energy-runner-src/customize.py b/cm4mlops/cm4mlops/repo/script/get-mlperf-tiny-eembc-energy-runner-src/customize.py index 66219c3da8..9827db9aee 100644 --- a/cm4mlops/cm4mlops/repo/script/get-mlperf-tiny-eembc-energy-runner-src/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-mlperf-tiny-eembc-energy-runner-src/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os import shutil diff --git a/cm4mlops/cm4mlops/repo/script/get-mlperf-tiny-src/customize.py b/cm4mlops/cm4mlops/repo/script/get-mlperf-tiny-src/customize.py index aaec439fe2..ce8c7d2385 100644 --- a/cm4mlops/cm4mlops/repo/script/get-mlperf-tiny-src/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-mlperf-tiny-src/customize.py @@ -9,9 +9,7 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os -import shutil def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/get-mlperf-training-nvidia-code/customize.py b/cm4mlops/cm4mlops/repo/script/get-mlperf-training-nvidia-code/customize.py index 11acbe12ed..7a0cfde0a1 100644 --- a/cm4mlops/cm4mlops/repo/script/get-mlperf-training-nvidia-code/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-mlperf-training-nvidia-code/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-mlperf-training-src/customize.py b/cm4mlops/cm4mlops/repo/script/get-mlperf-training-src/customize.py index 7d0c4699e5..dbebd2448c 100644 --- a/cm4mlops/cm4mlops/repo/script/get-mlperf-training-src/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-mlperf-training-src/customize.py @@ -9,9 +9,7 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os -import shutil def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/get-nvidia-mitten/customize.py b/cm4mlops/cm4mlops/repo/script/get-nvidia-mitten/customize.py index 29da237a59..dc0cc47b80 100644 --- a/cm4mlops/cm4mlops/repo/script/get-nvidia-mitten/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-nvidia-mitten/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-onnxruntime-prebuilt/customize.py b/cm4mlops/cm4mlops/repo/script/get-onnxruntime-prebuilt/customize.py index b14bc1670d..172d1c59b3 100644 --- a/cm4mlops/cm4mlops/repo/script/get-onnxruntime-prebuilt/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-onnxruntime-prebuilt/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-openssl/customize.py b/cm4mlops/cm4mlops/repo/script/get-openssl/customize.py index a824fb14c3..76b9675c0b 100644 --- a/cm4mlops/cm4mlops/repo/script/get-openssl/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-openssl/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-platform-details/customize.py b/cm4mlops/cm4mlops/repo/script/get-platform-details/customize.py index 15b761269e..f398c82db4 100644 --- a/cm4mlops/cm4mlops/repo/script/get-platform-details/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-platform-details/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os import subprocess diff --git a/cm4mlops/cm4mlops/repo/script/get-preprocessed-dataset-criteo/customize.py b/cm4mlops/cm4mlops/repo/script/get-preprocessed-dataset-criteo/customize.py index 7115e89b96..74923263df 100644 --- a/cm4mlops/cm4mlops/repo/script/get-preprocessed-dataset-criteo/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-preprocessed-dataset-criteo/customize.py @@ -9,9 +9,7 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os -import shutil def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/get-preprocessed-dataset-criteo/preprocess.py b/cm4mlops/cm4mlops/repo/script/get-preprocessed-dataset-criteo/preprocess.py index 5a5c429c62..8840aa2c9a 100644 --- a/cm4mlops/cm4mlops/repo/script/get-preprocessed-dataset-criteo/preprocess.py +++ b/cm4mlops/cm4mlops/repo/script/get-preprocessed-dataset-criteo/preprocess.py @@ -1,4 +1,3 @@ -import dataset import criteo import os import sys diff --git a/cm4mlops/cm4mlops/repo/script/get-preprocessed-dataset-generic/customize.py b/cm4mlops/cm4mlops/repo/script/get-preprocessed-dataset-generic/customize.py index a4d91ab372..2a60de8cea 100644 --- a/cm4mlops/cm4mlops/repo/script/get-preprocessed-dataset-generic/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-preprocessed-dataset-generic/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-preprocessed-dataset-generic/src/generic_preprocess.py b/cm4mlops/cm4mlops/repo/script/get-preprocessed-dataset-generic/src/generic_preprocess.py index 05d65cdd29..5c9522417e 100644 --- a/cm4mlops/cm4mlops/repo/script/get-preprocessed-dataset-generic/src/generic_preprocess.py +++ b/cm4mlops/cm4mlops/repo/script/get-preprocessed-dataset-generic/src/generic_preprocess.py @@ -143,7 +143,6 @@ def int8_to_uint8(image): def preprocess(): - import sys source_dir = os.environ['CM_DATASET_PATH'] destination_dir = os.environ['CM_DATASET_PREPROCESSED_PATH'] diff --git a/cm4mlops/cm4mlops/repo/script/get-preprocessed-dataset-imagenet/customize.py b/cm4mlops/cm4mlops/repo/script/get-preprocessed-dataset-imagenet/customize.py index a3727a64c4..57e27345fa 100644 --- a/cm4mlops/cm4mlops/repo/script/get-preprocessed-dataset-imagenet/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-preprocessed-dataset-imagenet/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os from os.path import exists import shutil diff --git a/cm4mlops/cm4mlops/repo/script/get-preprocessed-dataset-kits19/customize.py b/cm4mlops/cm4mlops/repo/script/get-preprocessed-dataset-kits19/customize.py index 1914e0e642..add379c51f 100644 --- a/cm4mlops/cm4mlops/repo/script/get-preprocessed-dataset-kits19/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-preprocessed-dataset-kits19/customize.py @@ -9,9 +9,7 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os -import shutil def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/get-preprocessed-dataset-librispeech/customize.py b/cm4mlops/cm4mlops/repo/script/get-preprocessed-dataset-librispeech/customize.py index e10df2196a..6221340064 100644 --- a/cm4mlops/cm4mlops/repo/script/get-preprocessed-dataset-librispeech/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-preprocessed-dataset-librispeech/customize.py @@ -9,9 +9,7 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os -import shutil def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/get-preprocessed-dataset-openimages/customize.py b/cm4mlops/cm4mlops/repo/script/get-preprocessed-dataset-openimages/customize.py index 06b53bfb11..66e6e28cb4 100644 --- a/cm4mlops/cm4mlops/repo/script/get-preprocessed-dataset-openimages/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-preprocessed-dataset-openimages/customize.py @@ -9,9 +9,7 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os -import shutil import glob diff --git a/cm4mlops/cm4mlops/repo/script/get-preprocessed-dataset-openimages/nvidia_preprocess.py b/cm4mlops/cm4mlops/repo/script/get-preprocessed-dataset-openimages/nvidia_preprocess.py index cdafac1231..c867781bf0 100644 --- a/cm4mlops/cm4mlops/repo/script/get-preprocessed-dataset-openimages/nvidia_preprocess.py +++ b/cm4mlops/cm4mlops/repo/script/get-preprocessed-dataset-openimages/nvidia_preprocess.py @@ -14,7 +14,6 @@ # limitations under the License. import argparse -import math import os from PIL import Image import shutil @@ -26,7 +25,7 @@ from torchvision.transforms import functional as F from code.common import logging -from code.common.image_preprocessor import ImagePreprocessor, center_crop, resize_with_aspectratio +from code.common.image_preprocessor import ImagePreprocessor def preprocess_openimage_for_retinanet( diff --git a/cm4mlops/cm4mlops/repo/script/get-preprocessed-dataset-openorca/customize.py b/cm4mlops/cm4mlops/repo/script/get-preprocessed-dataset-openorca/customize.py index 203742534f..b61df9f434 100644 --- a/cm4mlops/cm4mlops/repo/script/get-preprocessed-dataset-openorca/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-preprocessed-dataset-openorca/customize.py @@ -9,9 +9,7 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os -import shutil def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/get-preprocessed-dataset-squad/customize.py b/cm4mlops/cm4mlops/repo/script/get-preprocessed-dataset-squad/customize.py index 9a4c988d1f..1c4b18b307 100644 --- a/cm4mlops/cm4mlops/repo/script/get-preprocessed-dataset-squad/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-preprocessed-dataset-squad/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-python3/customize.py b/cm4mlops/cm4mlops/repo/script/get-python3/customize.py index 9f715f24c1..9c5f5b9299 100644 --- a/cm4mlops/cm4mlops/repo/script/get-python3/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-python3/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-qaic-apps-sdk/customize.py b/cm4mlops/cm4mlops/repo/script/get-qaic-apps-sdk/customize.py index 30e424a25e..6fd564bd41 100644 --- a/cm4mlops/cm4mlops/repo/script/get-qaic-apps-sdk/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-qaic-apps-sdk/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os import xml.etree.ElementTree as et diff --git a/cm4mlops/cm4mlops/repo/script/get-qaic-platform-sdk/customize.py b/cm4mlops/cm4mlops/repo/script/get-qaic-platform-sdk/customize.py index aaeb6e6cb8..27f55865f2 100644 --- a/cm4mlops/cm4mlops/repo/script/get-qaic-platform-sdk/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-qaic-platform-sdk/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os import xml.etree.ElementTree as et diff --git a/cm4mlops/cm4mlops/repo/script/get-qaic-software-kit/customize.py b/cm4mlops/cm4mlops/repo/script/get-qaic-software-kit/customize.py index 76d9e8f582..978a117798 100644 --- a/cm4mlops/cm4mlops/repo/script/get-qaic-software-kit/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-qaic-software-kit/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-rclone-config/customize.py b/cm4mlops/cm4mlops/repo/script/get-rclone-config/customize.py index a556f4b97f..aec4ea86d6 100644 --- a/cm4mlops/cm4mlops/repo/script/get-rclone-config/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-rclone-config/customize.py @@ -9,8 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/get-rclone/customize.py b/cm4mlops/cm4mlops/repo/script/get-rclone/customize.py index 10a975424b..5bb64922d2 100644 --- a/cm4mlops/cm4mlops/repo/script/get-rclone/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-rclone/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os import configparser diff --git a/cm4mlops/cm4mlops/repo/script/get-rocm-devices/customize.py b/cm4mlops/cm4mlops/repo/script/get-rocm-devices/customize.py index f6540af1f3..8d89c39df2 100644 --- a/cm4mlops/cm4mlops/repo/script/get-rocm-devices/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-rocm-devices/customize.py @@ -10,8 +10,6 @@ # from cmind import utils -import os -import subprocess def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/get-rocm/customize.py b/cm4mlops/cm4mlops/repo/script/get-rocm/customize.py index c6a2252b8c..61e5051628 100644 --- a/cm4mlops/cm4mlops/repo/script/get-rocm/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-rocm/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-spec-ptd/customize.py b/cm4mlops/cm4mlops/repo/script/get-spec-ptd/customize.py index 04d1bedae4..c209b0ec44 100644 --- a/cm4mlops/cm4mlops/repo/script/get-spec-ptd/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-spec-ptd/customize.py @@ -9,9 +9,7 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os -import shutil import stat diff --git a/cm4mlops/cm4mlops/repo/script/get-sys-utils-cm/customize.py b/cm4mlops/cm4mlops/repo/script/get-sys-utils-cm/customize.py index 6f052c75b9..31f7323f8c 100644 --- a/cm4mlops/cm4mlops/repo/script/get-sys-utils-cm/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-sys-utils-cm/customize.py @@ -9,8 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/get-sys-utils-min/customize.py b/cm4mlops/cm4mlops/repo/script/get-sys-utils-min/customize.py index 0230039c23..c1a3453222 100644 --- a/cm4mlops/cm4mlops/repo/script/get-sys-utils-min/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-sys-utils-min/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-tensorrt/customize.py b/cm4mlops/cm4mlops/repo/script/get-tensorrt/customize.py index f3eb69a543..a8fa70c81b 100644 --- a/cm4mlops/cm4mlops/repo/script/get-tensorrt/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-tensorrt/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os import tarfile diff --git a/cm4mlops/cm4mlops/repo/script/get-terraform/customize.py b/cm4mlops/cm4mlops/repo/script/get-terraform/customize.py index 765e599d9e..ef88e981c9 100644 --- a/cm4mlops/cm4mlops/repo/script/get-terraform/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-terraform/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-tvm-model/customize.py b/cm4mlops/cm4mlops/repo/script/get-tvm-model/customize.py index 7fc7a54f28..1899511610 100644 --- a/cm4mlops/cm4mlops/repo/script/get-tvm-model/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-tvm-model/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-tvm-model/process.py b/cm4mlops/cm4mlops/repo/script/get-tvm-model/process.py index c7384000dc..5418ed3b60 100644 --- a/cm4mlops/cm4mlops/repo/script/get-tvm-model/process.py +++ b/cm4mlops/cm4mlops/repo/script/get-tvm-model/process.py @@ -7,7 +7,7 @@ import torchvision import tvm -from tvm import relay, meta_schedule +from tvm import meta_schedule from tvm.driver.tvmc.frontends import load_model diff --git a/cm4mlops/cm4mlops/repo/script/get-tvm/customize.py b/cm4mlops/cm4mlops/repo/script/get-tvm/customize.py index b6bdaf5c94..ef34a10026 100644 --- a/cm4mlops/cm4mlops/repo/script/get-tvm/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-tvm/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-xilinx-sdk/customize.py b/cm4mlops/cm4mlops/repo/script/get-xilinx-sdk/customize.py index b6650af144..9ee739fac2 100644 --- a/cm4mlops/cm4mlops/repo/script/get-xilinx-sdk/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-xilinx-sdk/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-zendnn/customize.py b/cm4mlops/cm4mlops/repo/script/get-zendnn/customize.py index e32b8123da..a412aaf599 100644 --- a/cm4mlops/cm4mlops/repo/script/get-zendnn/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-zendnn/customize.py @@ -9,8 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/get-zephyr-sdk/customize.py b/cm4mlops/cm4mlops/repo/script/get-zephyr-sdk/customize.py index 13559e2a08..9796b3115f 100644 --- a/cm4mlops/cm4mlops/repo/script/get-zephyr-sdk/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-zephyr-sdk/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/get-zephyr/customize.py b/cm4mlops/cm4mlops/repo/script/get-zephyr/customize.py index 85429b22d6..2cf5a82bc1 100644 --- a/cm4mlops/cm4mlops/repo/script/get-zephyr/customize.py +++ b/cm4mlops/cm4mlops/repo/script/get-zephyr/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/gui/customize.py b/cm4mlops/cm4mlops/repo/script/gui/customize.py index 9b25588a98..a5da8ae257 100644 --- a/cm4mlops/cm4mlops/repo/script/gui/customize.py +++ b/cm4mlops/cm4mlops/repo/script/gui/customize.py @@ -11,12 +11,7 @@ # Developer(s): Grigori Fursin -from cmind import utils -import os -import json -import shutil -import subprocess def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/gui/graph.py b/cm4mlops/cm4mlops/repo/script/gui/graph.py index 30581dd095..930f913dda 100644 --- a/cm4mlops/cm4mlops/repo/script/gui/graph.py +++ b/cm4mlops/cm4mlops/repo/script/gui/graph.py @@ -8,16 +8,13 @@ import streamlit as st -import matplotlib import matplotlib.pyplot as plt import matplotlib.colors as mcolors -import numpy as np import pandas as pd import mpld3 from mpld3 import plugins -from mpld3 import utils security = ['os.', 'streamlit.', 'matplotlib.', 'numpy.', 'pandas.', 'mpld3.'] diff --git a/cm4mlops/cm4mlops/repo/script/gui/playground.py b/cm4mlops/cm4mlops/repo/script/gui/playground.py index 851d3f1bf5..7d22bca48b 100644 --- a/cm4mlops/cm4mlops/repo/script/gui/playground.py +++ b/cm4mlops/cm4mlops/repo/script/gui/playground.py @@ -1,8 +1,6 @@ # Developer(s): Grigori Fursin import streamlit as st -from streamlit.components.v1 import html -from streamlit_option_menu import option_menu import os import cmind diff --git a/cm4mlops/cm4mlops/repo/script/gui/playground_apps.py b/cm4mlops/cm4mlops/repo/script/gui/playground_apps.py index acaf9f4bff..9fee878d0c 100644 --- a/cm4mlops/cm4mlops/repo/script/gui/playground_apps.py +++ b/cm4mlops/cm4mlops/repo/script/gui/playground_apps.py @@ -1,10 +1,7 @@ # Developer(s): Grigori Fursin -import cmind -import os import misc -import streamlit.components.v1 as components import streamlit as st diff --git a/cm4mlops/cm4mlops/repo/script/gui/playground_beta.py b/cm4mlops/cm4mlops/repo/script/gui/playground_beta.py index bf2b24ec4e..e73751d6ed 100644 --- a/cm4mlops/cm4mlops/repo/script/gui/playground_beta.py +++ b/cm4mlops/cm4mlops/repo/script/gui/playground_beta.py @@ -2,8 +2,6 @@ import cmind import os -import datetime -import misc def page(st, params): diff --git a/cm4mlops/cm4mlops/repo/script/gui/playground_challenges.py b/cm4mlops/cm4mlops/repo/script/gui/playground_challenges.py index 44a8824898..f5beea3c25 100644 --- a/cm4mlops/cm4mlops/repo/script/gui/playground_challenges.py +++ b/cm4mlops/cm4mlops/repo/script/gui/playground_challenges.py @@ -279,7 +279,6 @@ def page(st, params): ind += 1 import pandas as pd - import numpy as np df = pd.DataFrame(data, columns=['Challenge', 'Closing date', 'Extension']) diff --git a/cm4mlops/cm4mlops/repo/script/gui/playground_challenges_with_prizes.py b/cm4mlops/cm4mlops/repo/script/gui/playground_challenges_with_prizes.py index 3cc681cd72..9a31d3c3c0 100644 --- a/cm4mlops/cm4mlops/repo/script/gui/playground_challenges_with_prizes.py +++ b/cm4mlops/cm4mlops/repo/script/gui/playground_challenges_with_prizes.py @@ -227,7 +227,6 @@ def page(st, params): ind += 1 import pandas as pd - import numpy as np df = pd.DataFrame(data, columns=['Challenge', 'Closing date', 'Extension', 'Contributor award and prizes from MLCommons organizations, cTuning foundation and cKnowledge.org']) diff --git a/cm4mlops/cm4mlops/repo/script/gui/playground_contributors.py b/cm4mlops/cm4mlops/repo/script/gui/playground_contributors.py index 3c9a9a1214..9443247959 100644 --- a/cm4mlops/cm4mlops/repo/script/gui/playground_contributors.py +++ b/cm4mlops/cm4mlops/repo/script/gui/playground_contributors.py @@ -125,7 +125,6 @@ def page(st, params): def page_list(st, params): import pandas as pd - import numpy as np # Read all contributors r = cmind.access({'action': 'find', diff --git a/cm4mlops/cm4mlops/repo/script/gui/playground_howtorun.py b/cm4mlops/cm4mlops/repo/script/gui/playground_howtorun.py index e88f99c9f9..de278b10b3 100644 --- a/cm4mlops/cm4mlops/repo/script/gui/playground_howtorun.py +++ b/cm4mlops/cm4mlops/repo/script/gui/playground_howtorun.py @@ -4,7 +4,6 @@ import os import misc -import streamlit.components.v1 as components import streamlit as st @@ -260,7 +259,6 @@ def page(st, params, action=''): 'script_tags': script_tags, 'script_url': script_url} - import sys import importlib full_module_path = os.path.join(script_obj.path, 'customize.py') diff --git a/cm4mlops/cm4mlops/repo/script/gui/playground_install.py b/cm4mlops/cm4mlops/repo/script/gui/playground_install.py index a0fb3a861d..b01cc7e1a9 100644 --- a/cm4mlops/cm4mlops/repo/script/gui/playground_install.py +++ b/cm4mlops/cm4mlops/repo/script/gui/playground_install.py @@ -2,8 +2,6 @@ import cmind import os -import datetime -import misc def page(st, params, extra): diff --git a/cm4mlops/cm4mlops/repo/script/gui/playground_reports.py b/cm4mlops/cm4mlops/repo/script/gui/playground_reports.py index 78cc7b2c4a..a1dbc22b73 100644 --- a/cm4mlops/cm4mlops/repo/script/gui/playground_reports.py +++ b/cm4mlops/cm4mlops/repo/script/gui/playground_reports.py @@ -2,7 +2,6 @@ import cmind import os -import datetime import misc diff --git a/cm4mlops/cm4mlops/repo/script/gui/playground_reproduce.py b/cm4mlops/cm4mlops/repo/script/gui/playground_reproduce.py index 9e82a686ee..e094fe04d6 100644 --- a/cm4mlops/cm4mlops/repo/script/gui/playground_reproduce.py +++ b/cm4mlops/cm4mlops/repo/script/gui/playground_reproduce.py @@ -4,7 +4,6 @@ import os import misc -import streamlit.components.v1 as components import streamlit as st @@ -292,7 +291,6 @@ def page(st, params, action=''): ############################################################### # Show tables import pandas as pd - import numpy as np html = '' diff --git a/cm4mlops/cm4mlops/repo/script/gui/playground_scripts.py b/cm4mlops/cm4mlops/repo/script/gui/playground_scripts.py index 71a7becd29..1206efc1ee 100644 --- a/cm4mlops/cm4mlops/repo/script/gui/playground_scripts.py +++ b/cm4mlops/cm4mlops/repo/script/gui/playground_scripts.py @@ -2,7 +2,6 @@ import cmind import os -import datetime import misc diff --git a/cm4mlops/cm4mlops/repo/script/import-mlperf-inference-to-experiment/customize.py b/cm4mlops/cm4mlops/repo/script/import-mlperf-inference-to-experiment/customize.py index 41c08ec4c4..4f99c9ae39 100644 --- a/cm4mlops/cm4mlops/repo/script/import-mlperf-inference-to-experiment/customize.py +++ b/cm4mlops/cm4mlops/repo/script/import-mlperf-inference-to-experiment/customize.py @@ -15,8 +15,6 @@ import os import subprocess import csv -import json -import copy file_summary = 'summary.csv' diff --git a/cm4mlops/cm4mlops/repo/script/import-mlperf-training-to-experiment/customize.py b/cm4mlops/cm4mlops/repo/script/import-mlperf-training-to-experiment/customize.py index 457fabe84e..e4d00a0129 100644 --- a/cm4mlops/cm4mlops/repo/script/import-mlperf-training-to-experiment/customize.py +++ b/cm4mlops/cm4mlops/repo/script/import-mlperf-training-to-experiment/customize.py @@ -15,8 +15,6 @@ import os import subprocess import csv -import json -import copy file_summary = 'summary.csv' diff --git a/cm4mlops/cm4mlops/repo/script/install-apt-package/customize.py b/cm4mlops/cm4mlops/repo/script/install-apt-package/customize.py index 608d7b063c..dc7931330c 100644 --- a/cm4mlops/cm4mlops/repo/script/install-apt-package/customize.py +++ b/cm4mlops/cm4mlops/repo/script/install-apt-package/customize.py @@ -9,9 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os -import re def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/install-aws-cli/customize.py b/cm4mlops/cm4mlops/repo/script/install-aws-cli/customize.py index d7fcced37b..fc1b3627d4 100644 --- a/cm4mlops/cm4mlops/repo/script/install-aws-cli/customize.py +++ b/cm4mlops/cm4mlops/repo/script/install-aws-cli/customize.py @@ -9,8 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/install-bazel/customize.py b/cm4mlops/cm4mlops/repo/script/install-bazel/customize.py index d6c2e1d87b..306074fe30 100644 --- a/cm4mlops/cm4mlops/repo/script/install-bazel/customize.py +++ b/cm4mlops/cm4mlops/repo/script/install-bazel/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/install-cmake-prebuilt/customize.py b/cm4mlops/cm4mlops/repo/script/install-cmake-prebuilt/customize.py index 257b27ba12..d6a54dbc59 100644 --- a/cm4mlops/cm4mlops/repo/script/install-cmake-prebuilt/customize.py +++ b/cm4mlops/cm4mlops/repo/script/install-cmake-prebuilt/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/install-cuda-package-manager/customize.py b/cm4mlops/cm4mlops/repo/script/install-cuda-package-manager/customize.py index 72daf39cc2..264e8bb129 100644 --- a/cm4mlops/cm4mlops/repo/script/install-cuda-package-manager/customize.py +++ b/cm4mlops/cm4mlops/repo/script/install-cuda-package-manager/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/install-cuda-prebuilt/customize.py b/cm4mlops/cm4mlops/repo/script/install-cuda-prebuilt/customize.py index 63f43727d9..179b9382a4 100644 --- a/cm4mlops/cm4mlops/repo/script/install-cuda-prebuilt/customize.py +++ b/cm4mlops/cm4mlops/repo/script/install-cuda-prebuilt/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/install-diffusers-from-src/customize.py b/cm4mlops/cm4mlops/repo/script/install-diffusers-from-src/customize.py index bcb4fa9ca9..be57e71f3e 100644 --- a/cm4mlops/cm4mlops/repo/script/install-diffusers-from-src/customize.py +++ b/cm4mlops/cm4mlops/repo/script/install-diffusers-from-src/customize.py @@ -9,8 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/install-gcc-src/customize.py b/cm4mlops/cm4mlops/repo/script/install-gcc-src/customize.py index e428b949ed..c9803e0336 100644 --- a/cm4mlops/cm4mlops/repo/script/install-gcc-src/customize.py +++ b/cm4mlops/cm4mlops/repo/script/install-gcc-src/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/install-generic-conda-package/customize.py b/cm4mlops/cm4mlops/repo/script/install-generic-conda-package/customize.py index b9fce2df85..56dbf88317 100644 --- a/cm4mlops/cm4mlops/repo/script/install-generic-conda-package/customize.py +++ b/cm4mlops/cm4mlops/repo/script/install-generic-conda-package/customize.py @@ -9,9 +9,7 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os -import cmind as cm def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/install-gflags-from-src/customize.py b/cm4mlops/cm4mlops/repo/script/install-gflags-from-src/customize.py index ff527b4546..54dfb21b29 100644 --- a/cm4mlops/cm4mlops/repo/script/install-gflags-from-src/customize.py +++ b/cm4mlops/cm4mlops/repo/script/install-gflags-from-src/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/install-gflags/customize.py b/cm4mlops/cm4mlops/repo/script/install-gflags/customize.py index 12e8ee9578..de3488e96b 100644 --- a/cm4mlops/cm4mlops/repo/script/install-gflags/customize.py +++ b/cm4mlops/cm4mlops/repo/script/install-gflags/customize.py @@ -9,8 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/install-github-cli/customize.py b/cm4mlops/cm4mlops/repo/script/install-github-cli/customize.py index 2d5062251a..5647a2cf59 100644 --- a/cm4mlops/cm4mlops/repo/script/install-github-cli/customize.py +++ b/cm4mlops/cm4mlops/repo/script/install-github-cli/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/install-intel-neural-speed-from-src/customize.py b/cm4mlops/cm4mlops/repo/script/install-intel-neural-speed-from-src/customize.py index a8e9b5fdd5..1ba1547895 100644 --- a/cm4mlops/cm4mlops/repo/script/install-intel-neural-speed-from-src/customize.py +++ b/cm4mlops/cm4mlops/repo/script/install-intel-neural-speed-from-src/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/install-ipex-from-src/customize.py b/cm4mlops/cm4mlops/repo/script/install-ipex-from-src/customize.py index ab6a15554d..3c6847f907 100644 --- a/cm4mlops/cm4mlops/repo/script/install-ipex-from-src/customize.py +++ b/cm4mlops/cm4mlops/repo/script/install-ipex-from-src/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/install-llvm-prebuilt/customize.py b/cm4mlops/cm4mlops/repo/script/install-llvm-prebuilt/customize.py index 0b181c194a..bb5e79f369 100644 --- a/cm4mlops/cm4mlops/repo/script/install-llvm-prebuilt/customize.py +++ b/cm4mlops/cm4mlops/repo/script/install-llvm-prebuilt/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/install-llvm-src/customize.py b/cm4mlops/cm4mlops/repo/script/install-llvm-src/customize.py index 94832b3e4d..2bb9247555 100644 --- a/cm4mlops/cm4mlops/repo/script/install-llvm-src/customize.py +++ b/cm4mlops/cm4mlops/repo/script/install-llvm-src/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/install-mlperf-logging-from-src/customize.py b/cm4mlops/cm4mlops/repo/script/install-mlperf-logging-from-src/customize.py index 89236cec96..212833de25 100644 --- a/cm4mlops/cm4mlops/repo/script/install-mlperf-logging-from-src/customize.py +++ b/cm4mlops/cm4mlops/repo/script/install-mlperf-logging-from-src/customize.py @@ -9,8 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/install-nccl-libs/customize.py b/cm4mlops/cm4mlops/repo/script/install-nccl-libs/customize.py index 89236cec96..212833de25 100644 --- a/cm4mlops/cm4mlops/repo/script/install-nccl-libs/customize.py +++ b/cm4mlops/cm4mlops/repo/script/install-nccl-libs/customize.py @@ -9,8 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/install-numactl-from-src/customize.py b/cm4mlops/cm4mlops/repo/script/install-numactl-from-src/customize.py index 157be4d9b9..ae8d362321 100644 --- a/cm4mlops/cm4mlops/repo/script/install-numactl-from-src/customize.py +++ b/cm4mlops/cm4mlops/repo/script/install-numactl-from-src/customize.py @@ -9,8 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/install-onednn-from-src/customize.py b/cm4mlops/cm4mlops/repo/script/install-onednn-from-src/customize.py index 216391d335..8a4f02ed1a 100644 --- a/cm4mlops/cm4mlops/repo/script/install-onednn-from-src/customize.py +++ b/cm4mlops/cm4mlops/repo/script/install-onednn-from-src/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/install-onnxruntime-from-src/customize.py b/cm4mlops/cm4mlops/repo/script/install-onnxruntime-from-src/customize.py index 12c42eafc7..ba175100fa 100644 --- a/cm4mlops/cm4mlops/repo/script/install-onnxruntime-from-src/customize.py +++ b/cm4mlops/cm4mlops/repo/script/install-onnxruntime-from-src/customize.py @@ -9,8 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/install-opencv-from-src/customize.py b/cm4mlops/cm4mlops/repo/script/install-opencv-from-src/customize.py index 1d7883e9fc..c2767ab923 100644 --- a/cm4mlops/cm4mlops/repo/script/install-opencv-from-src/customize.py +++ b/cm4mlops/cm4mlops/repo/script/install-opencv-from-src/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/install-openssl/customize.py b/cm4mlops/cm4mlops/repo/script/install-openssl/customize.py index fea55e3231..514a091b44 100644 --- a/cm4mlops/cm4mlops/repo/script/install-openssl/customize.py +++ b/cm4mlops/cm4mlops/repo/script/install-openssl/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/install-pip-package-for-cmind-python/customize.py b/cm4mlops/cm4mlops/repo/script/install-pip-package-for-cmind-python/customize.py index 1fa0b99f5a..79da9aaefc 100644 --- a/cm4mlops/cm4mlops/repo/script/install-pip-package-for-cmind-python/customize.py +++ b/cm4mlops/cm4mlops/repo/script/install-pip-package-for-cmind-python/customize.py @@ -9,8 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os import subprocess import sys diff --git a/cm4mlops/cm4mlops/repo/script/install-python-src/customize.py b/cm4mlops/cm4mlops/repo/script/install-python-src/customize.py index 26641f5d29..4a4a82a87e 100644 --- a/cm4mlops/cm4mlops/repo/script/install-python-src/customize.py +++ b/cm4mlops/cm4mlops/repo/script/install-python-src/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/install-python-venv/customize.py b/cm4mlops/cm4mlops/repo/script/install-python-venv/customize.py index 1e6afb71c7..fe10db294c 100644 --- a/cm4mlops/cm4mlops/repo/script/install-python-venv/customize.py +++ b/cm4mlops/cm4mlops/repo/script/install-python-venv/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/install-pytorch-from-src/customize.py b/cm4mlops/cm4mlops/repo/script/install-pytorch-from-src/customize.py index 38d6582fc3..dd47a6f047 100644 --- a/cm4mlops/cm4mlops/repo/script/install-pytorch-from-src/customize.py +++ b/cm4mlops/cm4mlops/repo/script/install-pytorch-from-src/customize.py @@ -9,8 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/install-pytorch-kineto-from-src/customize.py b/cm4mlops/cm4mlops/repo/script/install-pytorch-kineto-from-src/customize.py index d7fcced37b..fc1b3627d4 100644 --- a/cm4mlops/cm4mlops/repo/script/install-pytorch-kineto-from-src/customize.py +++ b/cm4mlops/cm4mlops/repo/script/install-pytorch-kineto-from-src/customize.py @@ -9,8 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/install-qaic-compute-sdk-from-src/customize.py b/cm4mlops/cm4mlops/repo/script/install-qaic-compute-sdk-from-src/customize.py index c2d1f3d807..0d93461167 100644 --- a/cm4mlops/cm4mlops/repo/script/install-qaic-compute-sdk-from-src/customize.py +++ b/cm4mlops/cm4mlops/repo/script/install-qaic-compute-sdk-from-src/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/install-rapidjson-from-src/customize.py b/cm4mlops/cm4mlops/repo/script/install-rapidjson-from-src/customize.py index bcb4fa9ca9..be57e71f3e 100644 --- a/cm4mlops/cm4mlops/repo/script/install-rapidjson-from-src/customize.py +++ b/cm4mlops/cm4mlops/repo/script/install-rapidjson-from-src/customize.py @@ -9,8 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/install-rocm/customize.py b/cm4mlops/cm4mlops/repo/script/install-rocm/customize.py index 66277942ab..5942867509 100644 --- a/cm4mlops/cm4mlops/repo/script/install-rocm/customize.py +++ b/cm4mlops/cm4mlops/repo/script/install-rocm/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/install-tensorflow-for-c/customize.py b/cm4mlops/cm4mlops/repo/script/install-tensorflow-for-c/customize.py index 4ab11f8993..39af6f05f0 100644 --- a/cm4mlops/cm4mlops/repo/script/install-tensorflow-for-c/customize.py +++ b/cm4mlops/cm4mlops/repo/script/install-tensorflow-for-c/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/install-tensorflow-from-src/customize.py b/cm4mlops/cm4mlops/repo/script/install-tensorflow-from-src/customize.py index 0019fc2164..d96e3cdba9 100644 --- a/cm4mlops/cm4mlops/repo/script/install-tensorflow-from-src/customize.py +++ b/cm4mlops/cm4mlops/repo/script/install-tensorflow-from-src/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/install-terraform-from-src/customize.py b/cm4mlops/cm4mlops/repo/script/install-terraform-from-src/customize.py index b17e4237be..0effa6cc73 100644 --- a/cm4mlops/cm4mlops/repo/script/install-terraform-from-src/customize.py +++ b/cm4mlops/cm4mlops/repo/script/install-terraform-from-src/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/install-tflite-from-src/customize.py b/cm4mlops/cm4mlops/repo/script/install-tflite-from-src/customize.py index 6d625a8d85..e69afaad0a 100644 --- a/cm4mlops/cm4mlops/repo/script/install-tflite-from-src/customize.py +++ b/cm4mlops/cm4mlops/repo/script/install-tflite-from-src/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/install-torchvision-from-src/customize.py b/cm4mlops/cm4mlops/repo/script/install-torchvision-from-src/customize.py index bcb4fa9ca9..be57e71f3e 100644 --- a/cm4mlops/cm4mlops/repo/script/install-torchvision-from-src/customize.py +++ b/cm4mlops/cm4mlops/repo/script/install-torchvision-from-src/customize.py @@ -9,8 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/install-tpp-pytorch-extension/customize.py b/cm4mlops/cm4mlops/repo/script/install-tpp-pytorch-extension/customize.py index fa39e8c955..db0d12a660 100644 --- a/cm4mlops/cm4mlops/repo/script/install-tpp-pytorch-extension/customize.py +++ b/cm4mlops/cm4mlops/repo/script/install-tpp-pytorch-extension/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/install-transformers-from-src/customize.py b/cm4mlops/cm4mlops/repo/script/install-transformers-from-src/customize.py index 37321608e7..ec8740b6ce 100644 --- a/cm4mlops/cm4mlops/repo/script/install-transformers-from-src/customize.py +++ b/cm4mlops/cm4mlops/repo/script/install-transformers-from-src/customize.py @@ -9,8 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/plug-prebuilt-cudnn-to-cuda/customize.py b/cm4mlops/cm4mlops/repo/script/plug-prebuilt-cudnn-to-cuda/customize.py index 2e246e4537..68a1ed011e 100644 --- a/cm4mlops/cm4mlops/repo/script/plug-prebuilt-cudnn-to-cuda/customize.py +++ b/cm4mlops/cm4mlops/repo/script/plug-prebuilt-cudnn-to-cuda/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/plug-prebuilt-cusparselt-to-cuda/customize.py b/cm4mlops/cm4mlops/repo/script/plug-prebuilt-cusparselt-to-cuda/customize.py index 077bb670e2..359c20e60d 100644 --- a/cm4mlops/cm4mlops/repo/script/plug-prebuilt-cusparselt-to-cuda/customize.py +++ b/cm4mlops/cm4mlops/repo/script/plug-prebuilt-cusparselt-to-cuda/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/prepare-training-data-bert/customize.py b/cm4mlops/cm4mlops/repo/script/prepare-training-data-bert/customize.py index 6c74e84e6b..e5116dcd1f 100644 --- a/cm4mlops/cm4mlops/repo/script/prepare-training-data-bert/customize.py +++ b/cm4mlops/cm4mlops/repo/script/prepare-training-data-bert/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/prepare-training-data-resnet/customize.py b/cm4mlops/cm4mlops/repo/script/prepare-training-data-resnet/customize.py index f85dae70cb..289b61bebc 100644 --- a/cm4mlops/cm4mlops/repo/script/prepare-training-data-resnet/customize.py +++ b/cm4mlops/cm4mlops/repo/script/prepare-training-data-resnet/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/preprocess-mlperf-inference-submission/customize.py b/cm4mlops/cm4mlops/repo/script/preprocess-mlperf-inference-submission/customize.py index c8c43e2956..24c37c2533 100644 --- a/cm4mlops/cm4mlops/repo/script/preprocess-mlperf-inference-submission/customize.py +++ b/cm4mlops/cm4mlops/repo/script/preprocess-mlperf-inference-submission/customize.py @@ -9,10 +9,7 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import cmind as cm import os -from os.path import exists import shutil diff --git a/cm4mlops/cm4mlops/repo/script/print-any-text/customize.py b/cm4mlops/cm4mlops/repo/script/print-any-text/customize.py index ff114354de..45fd02dd91 100644 --- a/cm4mlops/cm4mlops/repo/script/print-any-text/customize.py +++ b/cm4mlops/cm4mlops/repo/script/print-any-text/customize.py @@ -11,7 +11,6 @@ # Developer(s): Grigori Fursin -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/print-hello-world-py/customize.py b/cm4mlops/cm4mlops/repo/script/print-hello-world-py/customize.py index 3dc768d9b7..1a686c73a1 100644 --- a/cm4mlops/cm4mlops/repo/script/print-hello-world-py/customize.py +++ b/cm4mlops/cm4mlops/repo/script/print-hello-world-py/customize.py @@ -11,7 +11,6 @@ # Developer(s): Grigori Fursin -import os def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/process-ae-users/code.py b/cm4mlops/cm4mlops/repo/script/process-ae-users/code.py index 7f3626fe45..41d30c47fc 100644 --- a/cm4mlops/cm4mlops/repo/script/process-ae-users/code.py +++ b/cm4mlops/cm4mlops/repo/script/process-ae-users/code.py @@ -1,6 +1,5 @@ import os import csv -import json import cmind diff --git a/cm4mlops/cm4mlops/repo/script/process-ae-users/customize.py b/cm4mlops/cm4mlops/repo/script/process-ae-users/customize.py index 197b3c27b1..eb11e732ae 100644 --- a/cm4mlops/cm4mlops/repo/script/process-ae-users/customize.py +++ b/cm4mlops/cm4mlops/repo/script/process-ae-users/customize.py @@ -9,9 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import cmind as cm -import os def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/process-mlperf-accuracy/customize.py b/cm4mlops/cm4mlops/repo/script/process-mlperf-accuracy/customize.py index ba41d02c90..c0952e49f8 100644 --- a/cm4mlops/cm4mlops/repo/script/process-mlperf-accuracy/customize.py +++ b/cm4mlops/cm4mlops/repo/script/process-mlperf-accuracy/customize.py @@ -9,8 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import cmind as cm import os diff --git a/cm4mlops/cm4mlops/repo/script/prune-bert-models/customize.py b/cm4mlops/cm4mlops/repo/script/prune-bert-models/customize.py index 824d78a37e..619a5bce7b 100644 --- a/cm4mlops/cm4mlops/repo/script/prune-bert-models/customize.py +++ b/cm4mlops/cm4mlops/repo/script/prune-bert-models/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/pull-git-repo/customize.py b/cm4mlops/cm4mlops/repo/script/pull-git-repo/customize.py index 1e91c785b5..6ffd73e1ea 100644 --- a/cm4mlops/cm4mlops/repo/script/pull-git-repo/customize.py +++ b/cm4mlops/cm4mlops/repo/script/pull-git-repo/customize.py @@ -9,9 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os -import shutil def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/push-csv-to-spreadsheet/customize.py b/cm4mlops/cm4mlops/repo/script/push-csv-to-spreadsheet/customize.py index 5d4fa830bb..114d3e851a 100644 --- a/cm4mlops/cm4mlops/repo/script/push-csv-to-spreadsheet/customize.py +++ b/cm4mlops/cm4mlops/repo/script/push-csv-to-spreadsheet/customize.py @@ -9,9 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import cmind as cm -import os def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/push-mlperf-inference-results-to-github/customize.py b/cm4mlops/cm4mlops/repo/script/push-mlperf-inference-results-to-github/customize.py index 3d52964a06..c6ff6db225 100644 --- a/cm4mlops/cm4mlops/repo/script/push-mlperf-inference-results-to-github/customize.py +++ b/cm4mlops/cm4mlops/repo/script/push-mlperf-inference-results-to-github/customize.py @@ -9,9 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import cmind as cm -import os from giturlparse import parse diff --git a/cm4mlops/cm4mlops/repo/script/remote-run-commands/customize.py b/cm4mlops/cm4mlops/repo/script/remote-run-commands/customize.py index 0c71225abe..ca200c9513 100644 --- a/cm4mlops/cm4mlops/repo/script/remote-run-commands/customize.py +++ b/cm4mlops/cm4mlops/repo/script/remote-run-commands/customize.py @@ -9,8 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/reproduce-ieee-acm-micro2023-paper-22/customize.py b/cm4mlops/cm4mlops/repo/script/reproduce-ieee-acm-micro2023-paper-22/customize.py index 89236cec96..212833de25 100644 --- a/cm4mlops/cm4mlops/repo/script/reproduce-ieee-acm-micro2023-paper-22/customize.py +++ b/cm4mlops/cm4mlops/repo/script/reproduce-ieee-acm-micro2023-paper-22/customize.py @@ -9,8 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/reproduce-ieee-acm-micro2023-paper-28/customize.py b/cm4mlops/cm4mlops/repo/script/reproduce-ieee-acm-micro2023-paper-28/customize.py index 89236cec96..212833de25 100644 --- a/cm4mlops/cm4mlops/repo/script/reproduce-ieee-acm-micro2023-paper-28/customize.py +++ b/cm4mlops/cm4mlops/repo/script/reproduce-ieee-acm-micro2023-paper-28/customize.py @@ -9,8 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/reproduce-ieee-acm-micro2023-paper-33/customize.py b/cm4mlops/cm4mlops/repo/script/reproduce-ieee-acm-micro2023-paper-33/customize.py index 89236cec96..212833de25 100644 --- a/cm4mlops/cm4mlops/repo/script/reproduce-ieee-acm-micro2023-paper-33/customize.py +++ b/cm4mlops/cm4mlops/repo/script/reproduce-ieee-acm-micro2023-paper-33/customize.py @@ -9,8 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/reproduce-ieee-acm-micro2023-paper-5/customize.py b/cm4mlops/cm4mlops/repo/script/reproduce-ieee-acm-micro2023-paper-5/customize.py index 89236cec96..212833de25 100644 --- a/cm4mlops/cm4mlops/repo/script/reproduce-ieee-acm-micro2023-paper-5/customize.py +++ b/cm4mlops/cm4mlops/repo/script/reproduce-ieee-acm-micro2023-paper-5/customize.py @@ -9,8 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/reproduce-ieee-acm-micro2023-paper-8/customize.py b/cm4mlops/cm4mlops/repo/script/reproduce-ieee-acm-micro2023-paper-8/customize.py index 89236cec96..212833de25 100644 --- a/cm4mlops/cm4mlops/repo/script/reproduce-ieee-acm-micro2023-paper-8/customize.py +++ b/cm4mlops/cm4mlops/repo/script/reproduce-ieee-acm-micro2023-paper-8/customize.py @@ -9,8 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/reproduce-ieee-acm-micro2023-paper-85/customize.py b/cm4mlops/cm4mlops/repo/script/reproduce-ieee-acm-micro2023-paper-85/customize.py index 89236cec96..212833de25 100644 --- a/cm4mlops/cm4mlops/repo/script/reproduce-ieee-acm-micro2023-paper-85/customize.py +++ b/cm4mlops/cm4mlops/repo/script/reproduce-ieee-acm-micro2023-paper-85/customize.py @@ -9,8 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/reproduce-ieee-acm-micro2023-paper-96/customize.py b/cm4mlops/cm4mlops/repo/script/reproduce-ieee-acm-micro2023-paper-96/customize.py index 89236cec96..212833de25 100644 --- a/cm4mlops/cm4mlops/repo/script/reproduce-ieee-acm-micro2023-paper-96/customize.py +++ b/cm4mlops/cm4mlops/repo/script/reproduce-ieee-acm-micro2023-paper-96/customize.py @@ -9,8 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/reproduce-ipol-paper-2022-439/customize.py b/cm4mlops/cm4mlops/repo/script/reproduce-ipol-paper-2022-439/customize.py index 10b385d3e5..9f51d69da9 100644 --- a/cm4mlops/cm4mlops/repo/script/reproduce-ipol-paper-2022-439/customize.py +++ b/cm4mlops/cm4mlops/repo/script/reproduce-ipol-paper-2022-439/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/reproduce-mlperf-octoml-tinyml-results/customize.py b/cm4mlops/cm4mlops/repo/script/reproduce-mlperf-octoml-tinyml-results/customize.py index 033ff8281f..127f6515a2 100644 --- a/cm4mlops/cm4mlops/repo/script/reproduce-mlperf-octoml-tinyml-results/customize.py +++ b/cm4mlops/cm4mlops/repo/script/reproduce-mlperf-octoml-tinyml-results/customize.py @@ -9,8 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/reproduce-mlperf-training-nvidia/customize.py b/cm4mlops/cm4mlops/repo/script/reproduce-mlperf-training-nvidia/customize.py index 0b603ffac1..9b1da56f34 100644 --- a/cm4mlops/cm4mlops/repo/script/reproduce-mlperf-training-nvidia/customize.py +++ b/cm4mlops/cm4mlops/repo/script/reproduce-mlperf-training-nvidia/customize.py @@ -9,9 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os -import shutil def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/run-all-mlperf-models/customize.py b/cm4mlops/cm4mlops/repo/script/run-all-mlperf-models/customize.py index 367a60d63e..d05b992387 100644 --- a/cm4mlops/cm4mlops/repo/script/run-all-mlperf-models/customize.py +++ b/cm4mlops/cm4mlops/repo/script/run-all-mlperf-models/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/run-docker-container/customize.py b/cm4mlops/cm4mlops/repo/script/run-docker-container/customize.py index 73d603235f..bba2f3f33d 100644 --- a/cm4mlops/cm4mlops/repo/script/run-docker-container/customize.py +++ b/cm4mlops/cm4mlops/repo/script/run-docker-container/customize.py @@ -9,11 +9,9 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import cmind as cm import os import subprocess -from os.path import exists import json diff --git a/cm4mlops/cm4mlops/repo/script/run-mlperf-automotive-app/customize.py b/cm4mlops/cm4mlops/repo/script/run-mlperf-automotive-app/customize.py index 14cb9c2374..14198e36f5 100644 --- a/cm4mlops/cm4mlops/repo/script/run-mlperf-automotive-app/customize.py +++ b/cm4mlops/cm4mlops/repo/script/run-mlperf-automotive-app/customize.py @@ -1,8 +1,6 @@ from cmind import utils import os -import json import shutil -import subprocess import cmind as cm import copy from tabulate import tabulate diff --git a/cm4mlops/cm4mlops/repo/script/run-mlperf-inference-app/customize.py b/cm4mlops/cm4mlops/repo/script/run-mlperf-inference-app/customize.py index d710d1f7cd..ec7fb07d90 100644 --- a/cm4mlops/cm4mlops/repo/script/run-mlperf-inference-app/customize.py +++ b/cm4mlops/cm4mlops/repo/script/run-mlperf-inference-app/customize.py @@ -11,7 +11,6 @@ from cmind import utils import os -import json import shutil import subprocess import cmind as cm diff --git a/cm4mlops/cm4mlops/repo/script/run-mlperf-inference-app/run_mobilenet.py b/cm4mlops/cm4mlops/repo/script/run-mlperf-inference-app/run_mobilenet.py index 63ad8986e0..9c5d3200ac 100644 --- a/cm4mlops/cm4mlops/repo/script/run-mlperf-inference-app/run_mobilenet.py +++ b/cm4mlops/cm4mlops/repo/script/run-mlperf-inference-app/run_mobilenet.py @@ -1,5 +1,4 @@ import cmind -import os import sys models = { diff --git a/cm4mlops/cm4mlops/repo/script/run-mlperf-inference-mobilenet-models/customize.py b/cm4mlops/cm4mlops/repo/script/run-mlperf-inference-mobilenet-models/customize.py index d36c188b27..f2d090fec6 100644 --- a/cm4mlops/cm4mlops/repo/script/run-mlperf-inference-mobilenet-models/customize.py +++ b/cm4mlops/cm4mlops/repo/script/run-mlperf-inference-mobilenet-models/customize.py @@ -10,9 +10,7 @@ # from cmind import utils -import os import cmind -import sys def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/run-mlperf-inference-submission-checker/code.py b/cm4mlops/cm4mlops/repo/script/run-mlperf-inference-submission-checker/code.py index 85fce01bc5..c247606416 100644 --- a/cm4mlops/cm4mlops/repo/script/run-mlperf-inference-submission-checker/code.py +++ b/cm4mlops/cm4mlops/repo/script/run-mlperf-inference-submission-checker/code.py @@ -1,7 +1,6 @@ # Developer: Grigori Fursin import os -import pandas def main(): diff --git a/cm4mlops/cm4mlops/repo/script/run-mlperf-inference-submission-checker/customize.py b/cm4mlops/cm4mlops/repo/script/run-mlperf-inference-submission-checker/customize.py index e7746c1ea3..35fba13693 100644 --- a/cm4mlops/cm4mlops/repo/script/run-mlperf-inference-submission-checker/customize.py +++ b/cm4mlops/cm4mlops/repo/script/run-mlperf-inference-submission-checker/customize.py @@ -9,10 +9,7 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import cmind as cm import os -import subprocess def preprocess(i): @@ -43,7 +40,6 @@ def preprocess(i): "submission_checker.py") if env['CM_MLPERF_SHORT_RUN'] == "yes": - import shutil new_submission_checker_file = os.path.join( os.path.dirname(submission_checker_file), "submission_checker1.py") diff --git a/cm4mlops/cm4mlops/repo/script/run-mlperf-power-client/customize.py b/cm4mlops/cm4mlops/repo/script/run-mlperf-power-client/customize.py index 889b3c2725..20bb231db3 100644 --- a/cm4mlops/cm4mlops/repo/script/run-mlperf-power-client/customize.py +++ b/cm4mlops/cm4mlops/repo/script/run-mlperf-power-client/customize.py @@ -9,10 +9,7 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import cmind as cm import os -import configparser def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/run-mlperf-power-server/customize.py b/cm4mlops/cm4mlops/repo/script/run-mlperf-power-server/customize.py index a9c674a327..989962f257 100644 --- a/cm4mlops/cm4mlops/repo/script/run-mlperf-power-server/customize.py +++ b/cm4mlops/cm4mlops/repo/script/run-mlperf-power-server/customize.py @@ -9,8 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import cmind as cm import os import configparser diff --git a/cm4mlops/cm4mlops/repo/script/run-mlperf-training-submission-checker/customize.py b/cm4mlops/cm4mlops/repo/script/run-mlperf-training-submission-checker/customize.py index 18ee013509..416579b1ca 100644 --- a/cm4mlops/cm4mlops/repo/script/run-mlperf-training-submission-checker/customize.py +++ b/cm4mlops/cm4mlops/repo/script/run-mlperf-training-submission-checker/customize.py @@ -9,10 +9,7 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import cmind as cm import os -import subprocess def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/run-terraform/customize.py b/cm4mlops/cm4mlops/repo/script/run-terraform/customize.py index 60df105e74..17cd714431 100644 --- a/cm4mlops/cm4mlops/repo/script/run-terraform/customize.py +++ b/cm4mlops/cm4mlops/repo/script/run-terraform/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import cmind as cm import os import shutil diff --git a/cm4mlops/cm4mlops/repo/script/run-vllm-server/customize.py b/cm4mlops/cm4mlops/repo/script/run-vllm-server/customize.py index 9e945c85f0..9939b815e0 100644 --- a/cm4mlops/cm4mlops/repo/script/run-vllm-server/customize.py +++ b/cm4mlops/cm4mlops/repo/script/run-vllm-server/customize.py @@ -9,9 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os -import subprocess def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/runtime-system-infos/customize.py b/cm4mlops/cm4mlops/repo/script/runtime-system-infos/customize.py index 7f77fd5346..379f5d0340 100644 --- a/cm4mlops/cm4mlops/repo/script/runtime-system-infos/customize.py +++ b/cm4mlops/cm4mlops/repo/script/runtime-system-infos/customize.py @@ -9,9 +9,7 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os -import shutil # used to measure the system infos(have not tested for obtaining gpu info) import psutil import csv # used to write the measurements to csv format as txt file diff --git a/cm4mlops/cm4mlops/repo/script/save-mlperf-inference-implementation-state/customize.py b/cm4mlops/cm4mlops/repo/script/save-mlperf-inference-implementation-state/customize.py index 6ce5426bfa..be9f81484d 100644 --- a/cm4mlops/cm4mlops/repo/script/save-mlperf-inference-implementation-state/customize.py +++ b/cm4mlops/cm4mlops/repo/script/save-mlperf-inference-implementation-state/customize.py @@ -9,8 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/set-device-settings-qaic/customize.py b/cm4mlops/cm4mlops/repo/script/set-device-settings-qaic/customize.py index 5aa6aaf3e6..2a020e1fca 100644 --- a/cm4mlops/cm4mlops/repo/script/set-device-settings-qaic/customize.py +++ b/cm4mlops/cm4mlops/repo/script/set-device-settings-qaic/customize.py @@ -9,8 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/set-echo-off-win/customize.py b/cm4mlops/cm4mlops/repo/script/set-echo-off-win/customize.py index 0472d1791a..20edb9f1b2 100644 --- a/cm4mlops/cm4mlops/repo/script/set-echo-off-win/customize.py +++ b/cm4mlops/cm4mlops/repo/script/set-echo-off-win/customize.py @@ -9,8 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/set-performance-mode/customize.py b/cm4mlops/cm4mlops/repo/script/set-performance-mode/customize.py index 5509e702fb..96cbf88267 100644 --- a/cm4mlops/cm4mlops/repo/script/set-performance-mode/customize.py +++ b/cm4mlops/cm4mlops/repo/script/set-performance-mode/customize.py @@ -9,8 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/set-sqlite-dir/code.py b/cm4mlops/cm4mlops/repo/script/set-sqlite-dir/code.py index dcff6e4a82..5f282702bb 100644 --- a/cm4mlops/cm4mlops/repo/script/set-sqlite-dir/code.py +++ b/cm4mlops/cm4mlops/repo/script/set-sqlite-dir/code.py @@ -1 +1 @@ -import sqlite3 + \ No newline at end of file diff --git a/cm4mlops/cm4mlops/repo/script/set-user-limits/customize.py b/cm4mlops/cm4mlops/repo/script/set-user-limits/customize.py index 84f9b1f22b..a4f6d04d31 100644 --- a/cm4mlops/cm4mlops/repo/script/set-user-limits/customize.py +++ b/cm4mlops/cm4mlops/repo/script/set-user-limits/customize.py @@ -9,8 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/set-venv/customize.py b/cm4mlops/cm4mlops/repo/script/set-venv/customize.py index cafdac9776..e5104ec0f8 100644 --- a/cm4mlops/cm4mlops/repo/script/set-venv/customize.py +++ b/cm4mlops/cm4mlops/repo/script/set-venv/customize.py @@ -9,7 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils import os diff --git a/cm4mlops/cm4mlops/repo/script/submit-mlperf-results/customize.py b/cm4mlops/cm4mlops/repo/script/submit-mlperf-results/customize.py index d39b233f3b..b1d7bee9d6 100644 --- a/cm4mlops/cm4mlops/repo/script/submit-mlperf-results/customize.py +++ b/cm4mlops/cm4mlops/repo/script/submit-mlperf-results/customize.py @@ -1,8 +1,4 @@ import requests -from cmind import utils -import cmind as cm -import os -import json def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/tar-my-folder/customize.py b/cm4mlops/cm4mlops/repo/script/tar-my-folder/customize.py index 1bada957fa..73579a3868 100644 --- a/cm4mlops/cm4mlops/repo/script/tar-my-folder/customize.py +++ b/cm4mlops/cm4mlops/repo/script/tar-my-folder/customize.py @@ -9,11 +9,7 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import cmind as cm import os -import subprocess -from os.path import exists def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/test-cm-core/customize.py b/cm4mlops/cm4mlops/repo/script/test-cm-core/customize.py index d6049c17ae..ef25e6a942 100644 --- a/cm4mlops/cm4mlops/repo/script/test-cm-core/customize.py +++ b/cm4mlops/cm4mlops/repo/script/test-cm-core/customize.py @@ -9,8 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/test-cm-core/src/script/test_deps.py b/cm4mlops/cm4mlops/repo/script/test-cm-core/src/script/test_deps.py index 37d75fd4c4..152661cf82 100644 --- a/cm4mlops/cm4mlops/repo/script/test-cm-core/src/script/test_deps.py +++ b/cm4mlops/cm4mlops/repo/script/test-cm-core/src/script/test_deps.py @@ -1,8 +1,6 @@ # This test covers version, variation, compilation from src, add_deps, # add_deps_recursive, deps, post_deps -import cmind as cm -import check as checks # MLPerf v3.0 inference is now very outdated and we are testing inference # in separate tests diff --git a/cm4mlops/cm4mlops/repo/script/test-cm-script-pipeline/customize.py b/cm4mlops/cm4mlops/repo/script/test-cm-script-pipeline/customize.py index 2b49c32ed1..cd68d3bd65 100644 --- a/cm4mlops/cm4mlops/repo/script/test-cm-script-pipeline/customize.py +++ b/cm4mlops/cm4mlops/repo/script/test-cm-script-pipeline/customize.py @@ -11,8 +11,6 @@ # Developers: Grigori Fursin -from cmind import utils -import os def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/test-cm-scripts/customize.py b/cm4mlops/cm4mlops/repo/script/test-cm-scripts/customize.py index 89236cec96..212833de25 100644 --- a/cm4mlops/cm4mlops/repo/script/test-cm-scripts/customize.py +++ b/cm4mlops/cm4mlops/repo/script/test-cm-scripts/customize.py @@ -9,8 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/test-debug/customize.py b/cm4mlops/cm4mlops/repo/script/test-debug/customize.py index acd7dc6e40..6a52d8266b 100644 --- a/cm4mlops/cm4mlops/repo/script/test-debug/customize.py +++ b/cm4mlops/cm4mlops/repo/script/test-debug/customize.py @@ -11,7 +11,6 @@ # Developer(s): Grigori Fursin -import os def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/test-download-and-extract-artifacts/customize.py b/cm4mlops/cm4mlops/repo/script/test-download-and-extract-artifacts/customize.py index 89236cec96..212833de25 100644 --- a/cm4mlops/cm4mlops/repo/script/test-download-and-extract-artifacts/customize.py +++ b/cm4mlops/cm4mlops/repo/script/test-download-and-extract-artifacts/customize.py @@ -9,8 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/test-dummy/customize.py b/cm4mlops/cm4mlops/repo/script/test-dummy/customize.py index 89236cec96..212833de25 100644 --- a/cm4mlops/cm4mlops/repo/script/test-dummy/customize.py +++ b/cm4mlops/cm4mlops/repo/script/test-dummy/customize.py @@ -9,8 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/test-mlperf-inference-retinanet/customize.py b/cm4mlops/cm4mlops/repo/script/test-mlperf-inference-retinanet/customize.py index 2b5c08e6b1..289e320a44 100644 --- a/cm4mlops/cm4mlops/repo/script/test-mlperf-inference-retinanet/customize.py +++ b/cm4mlops/cm4mlops/repo/script/test-mlperf-inference-retinanet/customize.py @@ -9,8 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/truncate-mlperf-inference-accuracy-log/customize.py b/cm4mlops/cm4mlops/repo/script/truncate-mlperf-inference-accuracy-log/customize.py index d4bb2d66a0..2a736eb48b 100644 --- a/cm4mlops/cm4mlops/repo/script/truncate-mlperf-inference-accuracy-log/customize.py +++ b/cm4mlops/cm4mlops/repo/script/truncate-mlperf-inference-accuracy-log/customize.py @@ -9,11 +9,7 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import cmind as cm import os -import subprocess -from os.path import exists def preprocess(i): diff --git a/cm4mlops/cm4mlops/repo/script/wrapper-reproduce-octoml-tinyml-submission/customize.py b/cm4mlops/cm4mlops/repo/script/wrapper-reproduce-octoml-tinyml-submission/customize.py index e687af6e94..7b2a20f4ff 100644 --- a/cm4mlops/cm4mlops/repo/script/wrapper-reproduce-octoml-tinyml-submission/customize.py +++ b/cm4mlops/cm4mlops/repo/script/wrapper-reproduce-octoml-tinyml-submission/customize.py @@ -9,8 +9,6 @@ # CK and CM project contributors: https://github.com/mlcommons/ck/blob/master/CONTRIBUTING.md # -from cmind import utils -import os import cmind as cm diff --git a/cm4mlops/cm4mlops/repo/tests/script/test_deps.py b/cm4mlops/cm4mlops/repo/tests/script/test_deps.py index 37d75fd4c4..152661cf82 100644 --- a/cm4mlops/cm4mlops/repo/tests/script/test_deps.py +++ b/cm4mlops/cm4mlops/repo/tests/script/test_deps.py @@ -1,8 +1,6 @@ # This test covers version, variation, compilation from src, add_deps, # add_deps_recursive, deps, post_deps -import cmind as cm -import check as checks # MLPerf v3.0 inference is now very outdated and we are testing inference # in separate tests diff --git a/cmx4mlops/repo/automation/flex.cfg/modulex.py b/cmx4mlops/repo/automation/flex.cfg/modulex.py index 729f41ea03..8facb3bfe5 100644 --- a/cmx4mlops/repo/automation/flex.cfg/modulex.py +++ b/cmx4mlops/repo/automation/flex.cfg/modulex.py @@ -1,6 +1,5 @@ # Author and developer: Grigori Fursin -import os from cmind.automation import Automation from cmind import utils diff --git a/cmx4mlops/repo/automation/flex.code/modulex.py b/cmx4mlops/repo/automation/flex.code/modulex.py index 878e474e1d..06504ec294 100644 --- a/cmx4mlops/repo/automation/flex.code/modulex.py +++ b/cmx4mlops/repo/automation/flex.code/modulex.py @@ -1,6 +1,5 @@ # Author and developer: Grigori Fursin -import os from cmind.automation import Automation from cmind import utils diff --git a/cmx4mlops/repo/automation/flex.common/modulex.py b/cmx4mlops/repo/automation/flex.common/modulex.py index 8965b9a62c..9fed361d9d 100644 --- a/cmx4mlops/repo/automation/flex.common/modulex.py +++ b/cmx4mlops/repo/automation/flex.common/modulex.py @@ -636,7 +636,6 @@ def download_file(self, i): """ import requests - import time import sys from urllib import parse @@ -1362,7 +1361,6 @@ def md5sum(self, i): """ - import sys import hashlib filename = i['filename'] diff --git a/cmx4mlops/repo/automation/flex.common/modulex_hf.py b/cmx4mlops/repo/automation/flex.common/modulex_hf.py index cf63ea2c66..cc41149ce6 100644 --- a/cmx4mlops/repo/automation/flex.common/modulex_hf.py +++ b/cmx4mlops/repo/automation/flex.common/modulex_hf.py @@ -3,7 +3,6 @@ from cmind import utils import os -import sys def process(inp): diff --git a/cmx4mlops/repo/automation/flex.common/modulex_rclone_mlcommons.py b/cmx4mlops/repo/automation/flex.common/modulex_rclone_mlcommons.py index 22ed53ed54..02c70bc538 100644 --- a/cmx4mlops/repo/automation/flex.common/modulex_rclone_mlcommons.py +++ b/cmx4mlops/repo/automation/flex.common/modulex_rclone_mlcommons.py @@ -3,7 +3,6 @@ from cmind import utils import os -import sys def process(inp): diff --git a/cmx4mlops/repo/automation/flex.compute/modulex.py b/cmx4mlops/repo/automation/flex.compute/modulex.py index 2409e1f235..0cf31d1487 100644 --- a/cmx4mlops/repo/automation/flex.compute/modulex.py +++ b/cmx4mlops/repo/automation/flex.compute/modulex.py @@ -1,9 +1,7 @@ # Author and developer: Grigori Fursin -import os from cmind.automation import Automation -from cmind import utils class CAutomation(Automation): """ diff --git a/cmx4mlops/repo/automation/flex.dataset/modulex.py b/cmx4mlops/repo/automation/flex.dataset/modulex.py index 2409e1f235..0cf31d1487 100644 --- a/cmx4mlops/repo/automation/flex.dataset/modulex.py +++ b/cmx4mlops/repo/automation/flex.dataset/modulex.py @@ -1,9 +1,7 @@ # Author and developer: Grigori Fursin -import os from cmind.automation import Automation -from cmind import utils class CAutomation(Automation): """ diff --git a/cmx4mlops/repo/automation/flex.doc/modulex.py b/cmx4mlops/repo/automation/flex.doc/modulex.py index 2409e1f235..0cf31d1487 100644 --- a/cmx4mlops/repo/automation/flex.doc/modulex.py +++ b/cmx4mlops/repo/automation/flex.doc/modulex.py @@ -1,9 +1,7 @@ # Author and developer: Grigori Fursin -import os from cmind.automation import Automation -from cmind import utils class CAutomation(Automation): """ diff --git a/cmx4mlops/repo/automation/flex.docker/modulex.py b/cmx4mlops/repo/automation/flex.docker/modulex.py index 6dc0028a00..35e7877196 100644 --- a/cmx4mlops/repo/automation/flex.docker/modulex.py +++ b/cmx4mlops/repo/automation/flex.docker/modulex.py @@ -1,9 +1,7 @@ # Developer(s): Grigori Fursin -import os from cmind.automation import Automation -from cmind import utils class CAutomation(Automation): """ diff --git a/cmx4mlops/repo/automation/flex.experiment/modulex.py b/cmx4mlops/repo/automation/flex.experiment/modulex.py index adc7cf057f..6aef181fd1 100644 --- a/cmx4mlops/repo/automation/flex.experiment/modulex.py +++ b/cmx4mlops/repo/automation/flex.experiment/modulex.py @@ -419,7 +419,6 @@ def run(self, i): import copy import itertools - import math import time import json @@ -1155,7 +1154,6 @@ def prepare_experiment_step(cm, skip_dummy_input = False, rerun = False): - import math # Generate UID and prepare extra directory: r = utils.gen_uid() diff --git a/cmx4mlops/repo/automation/flex.model/modulex.py b/cmx4mlops/repo/automation/flex.model/modulex.py index 2409e1f235..0cf31d1487 100644 --- a/cmx4mlops/repo/automation/flex.model/modulex.py +++ b/cmx4mlops/repo/automation/flex.model/modulex.py @@ -1,9 +1,7 @@ # Author and developer: Grigori Fursin -import os from cmind.automation import Automation -from cmind import utils class CAutomation(Automation): """ diff --git a/cmx4mlops/repo/automation/flex.study/modulex.py b/cmx4mlops/repo/automation/flex.study/modulex.py index 6dc0028a00..35e7877196 100644 --- a/cmx4mlops/repo/automation/flex.study/modulex.py +++ b/cmx4mlops/repo/automation/flex.study/modulex.py @@ -1,9 +1,7 @@ # Developer(s): Grigori Fursin -import os from cmind.automation import Automation -from cmind import utils class CAutomation(Automation): """ diff --git a/cmx4mlops/repo/automation/flex.sys-tool/modulex.py b/cmx4mlops/repo/automation/flex.sys-tool/modulex.py index 2409e1f235..0cf31d1487 100644 --- a/cmx4mlops/repo/automation/flex.sys-tool/modulex.py +++ b/cmx4mlops/repo/automation/flex.sys-tool/modulex.py @@ -1,9 +1,7 @@ # Author and developer: Grigori Fursin -import os from cmind.automation import Automation -from cmind import utils class CAutomation(Automation): """ diff --git a/cmx4mlops/repo/automation/flex.system/modulex.py b/cmx4mlops/repo/automation/flex.system/modulex.py index 2409e1f235..0cf31d1487 100644 --- a/cmx4mlops/repo/automation/flex.system/modulex.py +++ b/cmx4mlops/repo/automation/flex.system/modulex.py @@ -1,9 +1,7 @@ # Author and developer: Grigori Fursin -import os from cmind.automation import Automation -from cmind import utils class CAutomation(Automation): """ diff --git a/cmx4mlops/repo/automation/flex.task.input/modulex.py b/cmx4mlops/repo/automation/flex.task.input/modulex.py index 2409e1f235..0cf31d1487 100644 --- a/cmx4mlops/repo/automation/flex.task.input/modulex.py +++ b/cmx4mlops/repo/automation/flex.task.input/modulex.py @@ -1,9 +1,7 @@ # Author and developer: Grigori Fursin -import os from cmind.automation import Automation -from cmind import utils class CAutomation(Automation): """ diff --git a/cmx4mlops/repo/automation/flex.task/modulex.py b/cmx4mlops/repo/automation/flex.task/modulex.py index f8d2ea3710..c8ff699aab 100644 --- a/cmx4mlops/repo/automation/flex.task/modulex.py +++ b/cmx4mlops/repo/automation/flex.task/modulex.py @@ -323,7 +323,6 @@ def simple_run(self, i): """ - import importlib import copy import time import json diff --git a/cmx4mlops/repo/automation/flex.task/modulex_help.py b/cmx4mlops/repo/automation/flex.task/modulex_help.py index 478040e0ea..d38d746d60 100644 --- a/cmx4mlops/repo/automation/flex.task/modulex_help.py +++ b/cmx4mlops/repo/automation/flex.task/modulex_help.py @@ -1,7 +1,5 @@ # Author and developer: Grigori Fursin -import os -from cmind import utils def print_help(i): diff --git a/cmx4mlops/repo/automation/flex.task/modulex_template.py b/cmx4mlops/repo/automation/flex.task/modulex_template.py index f67647f545..246091c9d4 100644 --- a/cmx4mlops/repo/automation/flex.task/modulex_template.py +++ b/cmx4mlops/repo/automation/flex.task/modulex_template.py @@ -1,7 +1,6 @@ # Flex Task template # Developer(s): -from cmind import utils def run(i): ################################################################### diff --git a/cmx4mlops/repo/flex.dataset/_generic-hf/modulex.py b/cmx4mlops/repo/flex.dataset/_generic-hf/modulex.py index c7bc1a22d8..1b600a1856 100644 --- a/cmx4mlops/repo/flex.dataset/_generic-hf/modulex.py +++ b/cmx4mlops/repo/flex.dataset/_generic-hf/modulex.py @@ -1,9 +1,6 @@ # Author and developer: Grigori Fursin -from cmind import utils -import os -import sys def install(i): diff --git a/cmx4mlops/repo/flex.dataset/openorca_hf/modulex.py b/cmx4mlops/repo/flex.dataset/openorca_hf/modulex.py index 5e546bbedc..7f9ea51eda 100644 --- a/cmx4mlops/repo/flex.dataset/openorca_hf/modulex.py +++ b/cmx4mlops/repo/flex.dataset/openorca_hf/modulex.py @@ -2,8 +2,6 @@ from cmind import utils -import os -import sys def install(i): diff --git a/cmx4mlops/repo/flex.dataset/scrolls_gov_report_8k-mlperf/modulex.py b/cmx4mlops/repo/flex.dataset/scrolls_gov_report_8k-mlperf/modulex.py index 460d5f0b6a..d91daf480e 100644 --- a/cmx4mlops/repo/flex.dataset/scrolls_gov_report_8k-mlperf/modulex.py +++ b/cmx4mlops/repo/flex.dataset/scrolls_gov_report_8k-mlperf/modulex.py @@ -1,9 +1,6 @@ # Author and developer: Grigori Fursin -from cmind import utils -import os -import sys def install(i): diff --git a/cmx4mlops/repo/flex.dataset/scrolls_gov_report_preprocessed_mlperf_2_hf/modulex.py b/cmx4mlops/repo/flex.dataset/scrolls_gov_report_preprocessed_mlperf_2_hf/modulex.py index 5e546bbedc..7f9ea51eda 100644 --- a/cmx4mlops/repo/flex.dataset/scrolls_gov_report_preprocessed_mlperf_2_hf/modulex.py +++ b/cmx4mlops/repo/flex.dataset/scrolls_gov_report_preprocessed_mlperf_2_hf/modulex.py @@ -2,8 +2,6 @@ from cmind import utils -import os -import sys def install(i): diff --git a/cmx4mlops/repo/flex.model/_generic-hf/modulex.py b/cmx4mlops/repo/flex.model/_generic-hf/modulex.py index 99166600c0..b0c803a5a5 100644 --- a/cmx4mlops/repo/flex.model/_generic-hf/modulex.py +++ b/cmx4mlops/repo/flex.model/_generic-hf/modulex.py @@ -1,9 +1,6 @@ # Author and developer: Grigori Fursin -from cmind import utils -import os -import sys def install(i): diff --git a/cmx4mlops/repo/flex.model/chufansuki-lenet5-hf/modulex.py b/cmx4mlops/repo/flex.model/chufansuki-lenet5-hf/modulex.py index 97d7a5dc4a..3116805c86 100644 --- a/cmx4mlops/repo/flex.model/chufansuki-lenet5-hf/modulex.py +++ b/cmx4mlops/repo/flex.model/chufansuki-lenet5-hf/modulex.py @@ -2,8 +2,6 @@ from cmind import utils -import os -import sys def install(i): diff --git a/cmx4mlops/repo/flex.model/gpt2-1558M-final3-karpathy-hf/modulex.py b/cmx4mlops/repo/flex.model/gpt2-1558M-final3-karpathy-hf/modulex.py index 97d7a5dc4a..3116805c86 100644 --- a/cmx4mlops/repo/flex.model/gpt2-1558M-final3-karpathy-hf/modulex.py +++ b/cmx4mlops/repo/flex.model/gpt2-1558M-final3-karpathy-hf/modulex.py @@ -2,8 +2,6 @@ from cmind import utils -import os -import sys def install(i): diff --git a/cmx4mlops/repo/flex.model/llama-2-70b-lora-fused-qkv-mlperf-hf/modulex.py b/cmx4mlops/repo/flex.model/llama-2-70b-lora-fused-qkv-mlperf-hf/modulex.py index 97d7a5dc4a..3116805c86 100644 --- a/cmx4mlops/repo/flex.model/llama-2-70b-lora-fused-qkv-mlperf-hf/modulex.py +++ b/cmx4mlops/repo/flex.model/llama-2-70b-lora-fused-qkv-mlperf-hf/modulex.py @@ -2,8 +2,6 @@ from cmind import utils -import os -import sys def install(i): diff --git a/cmx4mlops/repo/flex.model/llama-2-70b-lora-fused-qkv-mlperf-rclone/modulex.py b/cmx4mlops/repo/flex.model/llama-2-70b-lora-fused-qkv-mlperf-rclone/modulex.py index 9287943ced..032a98bb38 100644 --- a/cmx4mlops/repo/flex.model/llama-2-70b-lora-fused-qkv-mlperf-rclone/modulex.py +++ b/cmx4mlops/repo/flex.model/llama-2-70b-lora-fused-qkv-mlperf-rclone/modulex.py @@ -1,9 +1,6 @@ # Author and developer: Grigori Fursin -from cmind import utils -import os -import sys def install(i): diff --git a/cmx4mlops/repo/flex.model/llama-2-7b-chat-hf-mlperf-short-rclone/modulex.py b/cmx4mlops/repo/flex.model/llama-2-7b-chat-hf-mlperf-short-rclone/modulex.py index 9287943ced..032a98bb38 100644 --- a/cmx4mlops/repo/flex.model/llama-2-7b-chat-hf-mlperf-short-rclone/modulex.py +++ b/cmx4mlops/repo/flex.model/llama-2-7b-chat-hf-mlperf-short-rclone/modulex.py @@ -1,9 +1,6 @@ # Author and developer: Grigori Fursin -from cmind import utils -import os -import sys def install(i): diff --git a/cmx4mlops/repo/flex.model/llama-3.1-8b-hf/modulex.py b/cmx4mlops/repo/flex.model/llama-3.1-8b-hf/modulex.py index 97d7a5dc4a..3116805c86 100644 --- a/cmx4mlops/repo/flex.model/llama-3.1-8b-hf/modulex.py +++ b/cmx4mlops/repo/flex.model/llama-3.1-8b-hf/modulex.py @@ -2,8 +2,6 @@ from cmind import utils -import os -import sys def install(i): diff --git a/cmx4mlops/repo/flex.sys-tool/nsys_ui/modulex.py b/cmx4mlops/repo/flex.sys-tool/nsys_ui/modulex.py index b2b51b5095..930797b0a4 100644 --- a/cmx4mlops/repo/flex.sys-tool/nsys_ui/modulex.py +++ b/cmx4mlops/repo/flex.sys-tool/nsys_ui/modulex.py @@ -1,9 +1,7 @@ # Author and developer: Grigori Fursin -from cmind import utils import os -import sys def detect_version(i): diff --git a/cmx4mlops/repo/flex.sys-tool/nvcc/modulex.py b/cmx4mlops/repo/flex.sys-tool/nvcc/modulex.py index 1ca355f552..0a77f02c63 100644 --- a/cmx4mlops/repo/flex.sys-tool/nvcc/modulex.py +++ b/cmx4mlops/repo/flex.sys-tool/nvcc/modulex.py @@ -1,9 +1,7 @@ # Author and developer: Grigori Fursin -from cmind import utils import os -import sys def process(i): diff --git a/cmx4mlops/repo/flex.sys-tool/pip_flash_attn/modulex.py b/cmx4mlops/repo/flex.sys-tool/pip_flash_attn/modulex.py index 1c46fb155b..13e063cc93 100644 --- a/cmx4mlops/repo/flex.sys-tool/pip_flash_attn/modulex.py +++ b/cmx4mlops/repo/flex.sys-tool/pip_flash_attn/modulex.py @@ -2,8 +2,6 @@ from cmind import utils -import os -import sys def install(i): diff --git a/cmx4mlops/repo/flex.sys-tool/pip_generic/modulex.py b/cmx4mlops/repo/flex.sys-tool/pip_generic/modulex.py index 1fe8e32035..99ab2a05fb 100644 --- a/cmx4mlops/repo/flex.sys-tool/pip_generic/modulex.py +++ b/cmx4mlops/repo/flex.sys-tool/pip_generic/modulex.py @@ -1,9 +1,6 @@ # Author and developer: Grigori Fursin -from cmind import utils -import os -import sys def install(i): diff --git a/cmx4mlops/repo/flex.sys-tool/pip_torch/modulex.py b/cmx4mlops/repo/flex.sys-tool/pip_torch/modulex.py index 156367b577..42e96ea8c1 100644 --- a/cmx4mlops/repo/flex.sys-tool/pip_torch/modulex.py +++ b/cmx4mlops/repo/flex.sys-tool/pip_torch/modulex.py @@ -2,8 +2,6 @@ from cmind import utils -import os -import sys def install(i): diff --git a/cmx4mlops/repo/flex.sys-tool/pip_torchaudio/modulex.py b/cmx4mlops/repo/flex.sys-tool/pip_torchaudio/modulex.py index e24830cedd..71697ca9a4 100644 --- a/cmx4mlops/repo/flex.sys-tool/pip_torchaudio/modulex.py +++ b/cmx4mlops/repo/flex.sys-tool/pip_torchaudio/modulex.py @@ -2,8 +2,6 @@ from cmind import utils -import os -import sys def install(i): diff --git a/cmx4mlops/repo/flex.sys-tool/pip_torchvision/modulex.py b/cmx4mlops/repo/flex.sys-tool/pip_torchvision/modulex.py index f265a7a357..006ffea225 100644 --- a/cmx4mlops/repo/flex.sys-tool/pip_torchvision/modulex.py +++ b/cmx4mlops/repo/flex.sys-tool/pip_torchvision/modulex.py @@ -2,8 +2,6 @@ from cmind import utils -import os -import sys def install(i): diff --git a/cmx4mlops/repo/flex.sys-tool/rclone/modulex.py b/cmx4mlops/repo/flex.sys-tool/rclone/modulex.py index 4f924c9bcf..102a106d89 100644 --- a/cmx4mlops/repo/flex.sys-tool/rclone/modulex.py +++ b/cmx4mlops/repo/flex.sys-tool/rclone/modulex.py @@ -1,9 +1,7 @@ # Author and developer: Grigori Fursin -from cmind import utils import os -import sys def install(i): diff --git a/cmx4mlops/repo/flex.sys-tool/rocm/modulex.py b/cmx4mlops/repo/flex.sys-tool/rocm/modulex.py index 02b8ac7844..3db1ef32e0 100644 --- a/cmx4mlops/repo/flex.sys-tool/rocm/modulex.py +++ b/cmx4mlops/repo/flex.sys-tool/rocm/modulex.py @@ -1,9 +1,6 @@ # Author and developer: Grigori Fursin -from cmind import utils -import os -import sys def process(i): diff --git a/cmx4mlops/repo/flex.task/benchmark-vllm-huggingface-mlperf-loadgen/modulex.py b/cmx4mlops/repo/flex.task/benchmark-vllm-huggingface-mlperf-loadgen/modulex.py index e88a41a7f0..7e3f2691c7 100644 --- a/cmx4mlops/repo/flex.task/benchmark-vllm-huggingface-mlperf-loadgen/modulex.py +++ b/cmx4mlops/repo/flex.task/benchmark-vllm-huggingface-mlperf-loadgen/modulex.py @@ -1,6 +1,5 @@ # Author and developer: Grigori Fursin -from cmind import utils import os import shutil diff --git a/cmx4mlops/repo/flex.task/benchmark-vllm-huggingface-mlperf-loadgen/src/compliance/TEST06/run_verification.py b/cmx4mlops/repo/flex.task/benchmark-vllm-huggingface-mlperf-loadgen/src/compliance/TEST06/run_verification.py index 84bc2b73c4..06ec648c91 100644 --- a/cmx4mlops/repo/flex.task/benchmark-vllm-huggingface-mlperf-loadgen/src/compliance/TEST06/run_verification.py +++ b/cmx4mlops/repo/flex.task/benchmark-vllm-huggingface-mlperf-loadgen/src/compliance/TEST06/run_verification.py @@ -14,7 +14,6 @@ # limitations under the License. # ============================================================================= import os -import sys import shutil import argparse import json diff --git a/cmx4mlops/repo/flex.task/benchmark-vllm-huggingface-mlperf-loadgen/src/run_verification.py b/cmx4mlops/repo/flex.task/benchmark-vllm-huggingface-mlperf-loadgen/src/run_verification.py index 84bc2b73c4..06ec648c91 100644 --- a/cmx4mlops/repo/flex.task/benchmark-vllm-huggingface-mlperf-loadgen/src/run_verification.py +++ b/cmx4mlops/repo/flex.task/benchmark-vllm-huggingface-mlperf-loadgen/src/run_verification.py @@ -14,7 +14,6 @@ # limitations under the License. # ============================================================================= import os -import sys import shutil import argparse import json diff --git a/cmx4mlops/repo/flex.task/build-docker-image/modulex.py b/cmx4mlops/repo/flex.task/build-docker-image/modulex.py index fcc30360d9..18c99e0854 100644 --- a/cmx4mlops/repo/flex.task/build-docker-image/modulex.py +++ b/cmx4mlops/repo/flex.task/build-docker-image/modulex.py @@ -3,7 +3,6 @@ from cmind import utils import os -import copy def run(i): diff --git a/cmx4mlops/repo/flex.task/clone-git-repo/modulex.py b/cmx4mlops/repo/flex.task/clone-git-repo/modulex.py index 0a03ac83c5..778275a257 100644 --- a/cmx4mlops/repo/flex.task/clone-git-repo/modulex.py +++ b/cmx4mlops/repo/flex.task/clone-git-repo/modulex.py @@ -1,9 +1,7 @@ # Author and developer: Grigori Fursin -from cmind import utils import os -import copy def run(i): diff --git a/cmx4mlops/repo/flex.task/cmlc/modulex.py b/cmx4mlops/repo/flex.task/cmlc/modulex.py index e1032fcdc7..09907b7291 100644 --- a/cmx4mlops/repo/flex.task/cmlc/modulex.py +++ b/cmx4mlops/repo/flex.task/cmlc/modulex.py @@ -1,10 +1,7 @@ # Author and developer: Grigori Fursin # Run legacy CM front-ends for MLOps and MLPerf (mlc, mlcr and mlcflow) -from cmind import utils -import os -import copy def run(i): diff --git a/cmx4mlops/repo/flex.task/cmlcr/modulex.py b/cmx4mlops/repo/flex.task/cmlcr/modulex.py index 59d3e5e4ee..1e52b77663 100644 --- a/cmx4mlops/repo/flex.task/cmlcr/modulex.py +++ b/cmx4mlops/repo/flex.task/cmlcr/modulex.py @@ -1,10 +1,7 @@ # Author and developer: Grigori Fursin # Run legacy CM front-ends for MLOps and MLPerf (mlc, mlcr and mlcflow) -from cmind import utils -import os -import copy def run(i): diff --git a/cmx4mlops/repo/flex.task/detect-cuda-info/modulex.py b/cmx4mlops/repo/flex.task/detect-cuda-info/modulex.py index 0e8b598940..5550c9afaa 100644 --- a/cmx4mlops/repo/flex.task/detect-cuda-info/modulex.py +++ b/cmx4mlops/repo/flex.task/detect-cuda-info/modulex.py @@ -1,9 +1,7 @@ # Author and developer: Grigori Fursin -from cmind import utils import os -import copy def run(i): diff --git a/cmx4mlops/repo/flex.task/detect-host-info-min/modulex.py b/cmx4mlops/repo/flex.task/detect-host-info-min/modulex.py index 4c788458bd..074a24ff82 100644 --- a/cmx4mlops/repo/flex.task/detect-host-info-min/modulex.py +++ b/cmx4mlops/repo/flex.task/detect-host-info-min/modulex.py @@ -1,6 +1,5 @@ # Author and developer: Grigori Fursin -from cmind import utils import os import platform diff --git a/cmx4mlops/repo/flex.task/detect-pycuda-info/modulex.py b/cmx4mlops/repo/flex.task/detect-pycuda-info/modulex.py index 031538441e..c28ef7415b 100644 --- a/cmx4mlops/repo/flex.task/detect-pycuda-info/modulex.py +++ b/cmx4mlops/repo/flex.task/detect-pycuda-info/modulex.py @@ -1,9 +1,7 @@ # Author and developer: Grigori Fursin -from cmind import utils import os -import copy def run(i): diff --git a/cmx4mlops/repo/flex.task/detect-pycuda-info/src/detect.py b/cmx4mlops/repo/flex.task/detect-pycuda-info/src/detect.py index aacd54b53e..7270128456 100644 --- a/cmx4mlops/repo/flex.task/detect-pycuda-info/src/detect.py +++ b/cmx4mlops/repo/flex.task/detect-pycuda-info/src/detect.py @@ -1,7 +1,6 @@ # Reused from legacy CM4MLOps import pycuda.driver as cuda -import pycuda.autoinit def get_gpu_info(): num_gpus = cuda.Device.count() diff --git a/cmx4mlops/repo/flex.task/detect-rocm-info/modulex.py b/cmx4mlops/repo/flex.task/detect-rocm-info/modulex.py index 4e5bf7b63d..35593913dd 100644 --- a/cmx4mlops/repo/flex.task/detect-rocm-info/modulex.py +++ b/cmx4mlops/repo/flex.task/detect-rocm-info/modulex.py @@ -1,9 +1,6 @@ # Author and developer: Grigori Fursin -from cmind import utils -import os -import copy def run(i): diff --git a/cmx4mlops/repo/flex.task/detect-rocm-info/src/detect.py b/cmx4mlops/repo/flex.task/detect-rocm-info/src/detect.py index aacd54b53e..7270128456 100644 --- a/cmx4mlops/repo/flex.task/detect-rocm-info/src/detect.py +++ b/cmx4mlops/repo/flex.task/detect-rocm-info/src/detect.py @@ -1,7 +1,6 @@ # Reused from legacy CM4MLOps import pycuda.driver as cuda -import pycuda.autoinit def get_gpu_info(): num_gpus = cuda.Device.count() diff --git a/cmx4mlops/repo/flex.task/download-file/modulex.py b/cmx4mlops/repo/flex.task/download-file/modulex.py index f7a762a4cd..6678cf0856 100644 --- a/cmx4mlops/repo/flex.task/download-file/modulex.py +++ b/cmx4mlops/repo/flex.task/download-file/modulex.py @@ -1,9 +1,7 @@ # Author and developer: Grigori Fursin -from cmind import utils import os -import copy def run(i): diff --git a/cmx4mlops/repo/flex.task/fail-if-windows/modulex.py b/cmx4mlops/repo/flex.task/fail-if-windows/modulex.py index cf94a4df54..78a71bfcc8 100644 --- a/cmx4mlops/repo/flex.task/fail-if-windows/modulex.py +++ b/cmx4mlops/repo/flex.task/fail-if-windows/modulex.py @@ -1,9 +1,7 @@ # Author and developer: Grigori Fursin -from cmind import utils import os -import copy def run(i): diff --git a/cmx4mlops/repo/flex.task/filter-mlperf-results/modulex.py b/cmx4mlops/repo/flex.task/filter-mlperf-results/modulex.py index 64a986ce9b..3ae3f33e65 100644 --- a/cmx4mlops/repo/flex.task/filter-mlperf-results/modulex.py +++ b/cmx4mlops/repo/flex.task/filter-mlperf-results/modulex.py @@ -3,7 +3,6 @@ from cmind import utils import os -import copy def run(i): diff --git a/cmx4mlops/repo/flex.task/filter-mlperf-results/modulex_inference.py b/cmx4mlops/repo/flex.task/filter-mlperf-results/modulex_inference.py index f2dfa80c79..eee360f2f4 100644 --- a/cmx4mlops/repo/flex.task/filter-mlperf-results/modulex_inference.py +++ b/cmx4mlops/repo/flex.task/filter-mlperf-results/modulex_inference.py @@ -1,9 +1,6 @@ # Author and developer: Grigori Fursin -from cmind import utils -import os -import copy file_summary = 'summary.csv' file_summary_json = 'mlperf-inference-summary-{}.json' diff --git a/cmx4mlops/repo/flex.task/filter-mlperf-results/modulex_training.py b/cmx4mlops/repo/flex.task/filter-mlperf-results/modulex_training.py index 107a06f75c..7884604e49 100644 --- a/cmx4mlops/repo/flex.task/filter-mlperf-results/modulex_training.py +++ b/cmx4mlops/repo/flex.task/filter-mlperf-results/modulex_training.py @@ -1,9 +1,6 @@ # Author and developer: Grigori Fursin -from cmind import utils -import os -import copy def process(i): diff --git a/cmx4mlops/repo/flex.task/get-current-git-branch/modulex.py b/cmx4mlops/repo/flex.task/get-current-git-branch/modulex.py index 36367ab1f5..a6f4840bad 100644 --- a/cmx4mlops/repo/flex.task/get-current-git-branch/modulex.py +++ b/cmx4mlops/repo/flex.task/get-current-git-branch/modulex.py @@ -1,9 +1,7 @@ # Author and developer: Grigori Fursin -from cmind import utils import os -import copy def run(i): diff --git a/cmx4mlops/repo/flex.task/get-mlperf-results/modulex.py b/cmx4mlops/repo/flex.task/get-mlperf-results/modulex.py index 03262d6d72..40dd6cc2e8 100644 --- a/cmx4mlops/repo/flex.task/get-mlperf-results/modulex.py +++ b/cmx4mlops/repo/flex.task/get-mlperf-results/modulex.py @@ -3,7 +3,6 @@ from cmind import utils import os -import copy def run(i): diff --git a/cmx4mlops/repo/flex.task/import-mlperf-results/modulex.py b/cmx4mlops/repo/flex.task/import-mlperf-results/modulex.py index 4c402a04a7..ac180ec5fb 100644 --- a/cmx4mlops/repo/flex.task/import-mlperf-results/modulex.py +++ b/cmx4mlops/repo/flex.task/import-mlperf-results/modulex.py @@ -3,7 +3,6 @@ from cmind import utils import os -import copy def run(i): diff --git a/cmx4mlops/repo/flex.task/list-docker-images/modulex.py b/cmx4mlops/repo/flex.task/list-docker-images/modulex.py index 983860a5a4..363a16a584 100644 --- a/cmx4mlops/repo/flex.task/list-docker-images/modulex.py +++ b/cmx4mlops/repo/flex.task/list-docker-images/modulex.py @@ -1,9 +1,6 @@ # Author and developer: Grigori Fursin -from cmind import utils -import os -import copy def run(i): diff --git a/cmx4mlops/repo/flex.task/postprocess-mlperf-results/modulex.py b/cmx4mlops/repo/flex.task/postprocess-mlperf-results/modulex.py index be417df008..653a0245e8 100644 --- a/cmx4mlops/repo/flex.task/postprocess-mlperf-results/modulex.py +++ b/cmx4mlops/repo/flex.task/postprocess-mlperf-results/modulex.py @@ -1,10 +1,6 @@ # Author and developer: Grigori Fursin -from cmind import utils -import os -import copy -import shutil def run(i): diff --git a/cmx4mlops/repo/flex.task/print-debug-info/modulex.py b/cmx4mlops/repo/flex.task/print-debug-info/modulex.py index c00687506f..68b1b56c90 100644 --- a/cmx4mlops/repo/flex.task/print-debug-info/modulex.py +++ b/cmx4mlops/repo/flex.task/print-debug-info/modulex.py @@ -1,9 +1,6 @@ # Author and developer: Grigori Fursin -from cmind import utils -import os -import copy def run(i): diff --git a/cmx4mlops/repo/flex.task/print-hello-world-cmx-script/modulex.py b/cmx4mlops/repo/flex.task/print-hello-world-cmx-script/modulex.py index b4a7fe52b2..3457f88e3e 100644 --- a/cmx4mlops/repo/flex.task/print-hello-world-cmx-script/modulex.py +++ b/cmx4mlops/repo/flex.task/print-hello-world-cmx-script/modulex.py @@ -1,6 +1,5 @@ # Author and developer: Grigori Fursin -from cmind import utils def run(i): ################################################################### diff --git a/cmx4mlops/repo/flex.task/print-hello-world-cmx/modulex.py b/cmx4mlops/repo/flex.task/print-hello-world-cmx/modulex.py index a5170fadc9..9828d186fc 100644 --- a/cmx4mlops/repo/flex.task/print-hello-world-cmx/modulex.py +++ b/cmx4mlops/repo/flex.task/print-hello-world-cmx/modulex.py @@ -1,6 +1,5 @@ # Author and developer: Grigori Fursin -from cmind import utils def run(i): diff --git a/cmx4mlops/repo/flex.task/process-mlperf-csv-results/modulex.py b/cmx4mlops/repo/flex.task/process-mlperf-csv-results/modulex.py index fcc2cf1731..34a0be05c7 100644 --- a/cmx4mlops/repo/flex.task/process-mlperf-csv-results/modulex.py +++ b/cmx4mlops/repo/flex.task/process-mlperf-csv-results/modulex.py @@ -4,7 +4,6 @@ import os import copy -import shutil training_models = [ 'bert', diff --git a/cmx4mlops/repo/flex.task/run-docker-container/modulex.py b/cmx4mlops/repo/flex.task/run-docker-container/modulex.py index 0c3b793681..a5a326978c 100644 --- a/cmx4mlops/repo/flex.task/run-docker-container/modulex.py +++ b/cmx4mlops/repo/flex.task/run-docker-container/modulex.py @@ -3,7 +3,6 @@ from cmind import utils import os -import copy def run(i): diff --git a/cmx4mlops/repo/flex.task/run-md5sum/modulex.py b/cmx4mlops/repo/flex.task/run-md5sum/modulex.py index 14099352bc..041c0264d2 100644 --- a/cmx4mlops/repo/flex.task/run-md5sum/modulex.py +++ b/cmx4mlops/repo/flex.task/run-md5sum/modulex.py @@ -3,7 +3,6 @@ from cmind import utils import os -import copy def run(i): diff --git a/cmx4mlops/repo/flex.task/run-mlc/modulex.py b/cmx4mlops/repo/flex.task/run-mlc/modulex.py index 6e2f8aaab2..c5f2e20f52 100644 --- a/cmx4mlops/repo/flex.task/run-mlc/modulex.py +++ b/cmx4mlops/repo/flex.task/run-mlc/modulex.py @@ -1,10 +1,7 @@ # Author and developer: Grigori Fursin # Run legacy CM front-ends for MLOps and MLPerf (mlc, mlcr and mlcflow) -from cmind import utils -import os -import copy def run(i): diff --git a/cmx4mlops/repo/flex.task/run-mlcr/modulex.py b/cmx4mlops/repo/flex.task/run-mlcr/modulex.py index 808790c628..6ef34bfc06 100644 --- a/cmx4mlops/repo/flex.task/run-mlcr/modulex.py +++ b/cmx4mlops/repo/flex.task/run-mlcr/modulex.py @@ -1,10 +1,7 @@ # Author and developer: Grigori Fursin # Run legacy CM front-ends for MLOps and MLPerf (mlc, mlcr and mlcflow) -from cmind import utils -import os -import copy def run(i): diff --git a/cmx4mlops/repo/flex.task/run-mlperf-submission-checker/modulex.py b/cmx4mlops/repo/flex.task/run-mlperf-submission-checker/modulex.py index 76f9380e9c..835766f40d 100644 --- a/cmx4mlops/repo/flex.task/run-mlperf-submission-checker/modulex.py +++ b/cmx4mlops/repo/flex.task/run-mlperf-submission-checker/modulex.py @@ -3,7 +3,6 @@ from cmind import utils import os -import copy def run(i): @@ -274,7 +273,6 @@ def run(i): # Process CSV summary = [] - import csv if len(csvs) == 0: csvs = [target] diff --git a/cmx4mlops/repo/flex.task/run-mlperf-training-benchmark/modulex.py b/cmx4mlops/repo/flex.task/run-mlperf-training-benchmark/modulex.py index 4e3f0df380..8e8ef829f4 100644 --- a/cmx4mlops/repo/flex.task/run-mlperf-training-benchmark/modulex.py +++ b/cmx4mlops/repo/flex.task/run-mlperf-training-benchmark/modulex.py @@ -3,7 +3,6 @@ from cmind import utils import os -import copy import shutil def run(i): diff --git a/cmx4mlops/repo/flex.task/run-rclone/modulex.py b/cmx4mlops/repo/flex.task/run-rclone/modulex.py index 7b08800eeb..6270c17f7c 100644 --- a/cmx4mlops/repo/flex.task/run-rclone/modulex.py +++ b/cmx4mlops/repo/flex.task/run-rclone/modulex.py @@ -1,9 +1,6 @@ # Author and developer: Grigori Fursin -from cmind import utils -import os -import copy def run(i): diff --git a/cmx4mlops/repo/flex.task/run-tar-bzip2/modulex.py b/cmx4mlops/repo/flex.task/run-tar-bzip2/modulex.py index 68e700a28c..982679600b 100644 --- a/cmx4mlops/repo/flex.task/run-tar-bzip2/modulex.py +++ b/cmx4mlops/repo/flex.task/run-tar-bzip2/modulex.py @@ -3,7 +3,6 @@ from cmind import utils import os -import copy def run(i): diff --git a/cmx4mlops/repo/flex.task/run-tsh-init/modulex.py b/cmx4mlops/repo/flex.task/run-tsh-init/modulex.py index 17139ba697..c9b74eb2de 100644 --- a/cmx4mlops/repo/flex.task/run-tsh-init/modulex.py +++ b/cmx4mlops/repo/flex.task/run-tsh-init/modulex.py @@ -1,9 +1,7 @@ # Author and developer: Grigori Fursin -from cmind import utils import os -import copy def run(i): diff --git a/cmx4mlops/repo/flex.task/run-tsh-login/modulex.py b/cmx4mlops/repo/flex.task/run-tsh-login/modulex.py index 374a7a0bd8..328d866f58 100644 --- a/cmx4mlops/repo/flex.task/run-tsh-login/modulex.py +++ b/cmx4mlops/repo/flex.task/run-tsh-login/modulex.py @@ -1,9 +1,6 @@ # Author and developer: Grigori Fursin -from cmind import utils -import os -import copy def run(i): diff --git a/cmx4mlops/repo/flex.task/run-tsh-ls/modulex.py b/cmx4mlops/repo/flex.task/run-tsh-ls/modulex.py index a6c8517867..eb62ba937d 100644 --- a/cmx4mlops/repo/flex.task/run-tsh-ls/modulex.py +++ b/cmx4mlops/repo/flex.task/run-tsh-ls/modulex.py @@ -1,9 +1,6 @@ # Author and developer: Grigori Fursin -from cmind import utils -import os -import copy def run(i): diff --git a/cmx4mlops/repo/flex.task/run-tsh-scp/modulex.py b/cmx4mlops/repo/flex.task/run-tsh-scp/modulex.py index 39dba8a1a5..cf38fd06a0 100644 --- a/cmx4mlops/repo/flex.task/run-tsh-scp/modulex.py +++ b/cmx4mlops/repo/flex.task/run-tsh-scp/modulex.py @@ -3,7 +3,6 @@ from cmind import utils import os -import copy def run(i): diff --git a/cmx4mlops/repo/flex.task/run-tsh-ssh/modulex.py b/cmx4mlops/repo/flex.task/run-tsh-ssh/modulex.py index eae4737123..204ea33efe 100644 --- a/cmx4mlops/repo/flex.task/run-tsh-ssh/modulex.py +++ b/cmx4mlops/repo/flex.task/run-tsh-ssh/modulex.py @@ -1,9 +1,6 @@ # Author and developer: Grigori Fursin -from cmind import utils -import os -import copy def run(i): diff --git a/cmx4mlops/repo/flex.task/run-untar-unbzip2/modulex.py b/cmx4mlops/repo/flex.task/run-untar-unbzip2/modulex.py index d44cdd2ef7..28804c356e 100644 --- a/cmx4mlops/repo/flex.task/run-untar-unbzip2/modulex.py +++ b/cmx4mlops/repo/flex.task/run-untar-unbzip2/modulex.py @@ -3,7 +3,6 @@ from cmind import utils import os -import copy def run(i): diff --git a/cmx4mlops/repo/flex.task/serve-vllm/modulex.py b/cmx4mlops/repo/flex.task/serve-vllm/modulex.py index dde79023b7..01575c45ca 100644 --- a/cmx4mlops/repo/flex.task/serve-vllm/modulex.py +++ b/cmx4mlops/repo/flex.task/serve-vllm/modulex.py @@ -1,6 +1,5 @@ # Author and developer: Grigori Fursin -from cmind import utils import os def run(i): diff --git a/cmx4mlops/repo/flex.task/set-hf-home/modulex.py b/cmx4mlops/repo/flex.task/set-hf-home/modulex.py index b330e90c15..f96c16bc3e 100644 --- a/cmx4mlops/repo/flex.task/set-hf-home/modulex.py +++ b/cmx4mlops/repo/flex.task/set-hf-home/modulex.py @@ -1,9 +1,6 @@ # Author and developer: Grigori Fursin -from cmind import utils -import os -import copy def run(i): diff --git a/cmx4mlops/repo/flex.task/test-cpp-build-and-run/modulex.py b/cmx4mlops/repo/flex.task/test-cpp-build-and-run/modulex.py index a756c1c572..461bf8f136 100644 --- a/cmx4mlops/repo/flex.task/test-cpp-build-and-run/modulex.py +++ b/cmx4mlops/repo/flex.task/test-cpp-build-and-run/modulex.py @@ -1,9 +1,7 @@ # Author and developer: Grigori Fursin -from cmind import utils import os -import copy def run(i): diff --git a/cmx4mlops/repo/flex.task/test-dummy-flow/modulex.py b/cmx4mlops/repo/flex.task/test-dummy-flow/modulex.py index bd265e90e5..0ffbbe2678 100644 --- a/cmx4mlops/repo/flex.task/test-dummy-flow/modulex.py +++ b/cmx4mlops/repo/flex.task/test-dummy-flow/modulex.py @@ -1,6 +1,5 @@ # Author and developer: Grigori Fursin -from cmind import utils def run(i): diff --git a/cmx4mlops/repo/flex.task/test-image-classification-torch-py/modulex.py b/cmx4mlops/repo/flex.task/test-image-classification-torch-py/modulex.py index 9a01455cdc..fbc14c7ca2 100644 --- a/cmx4mlops/repo/flex.task/test-image-classification-torch-py/modulex.py +++ b/cmx4mlops/repo/flex.task/test-image-classification-torch-py/modulex.py @@ -1,9 +1,7 @@ # Author and developer: Grigori Fursin -from cmind import utils import os -import copy def run(i): diff --git a/cmx4mlops/repo/flex.task/test-image-classification-torch-py/src/classify.py b/cmx4mlops/repo/flex.task/test-image-classification-torch-py/src/classify.py index c05e8c6eca..49e39e75c6 100644 --- a/cmx4mlops/repo/flex.task/test-image-classification-torch-py/src/classify.py +++ b/cmx4mlops/repo/flex.task/test-image-classification-torch-py/src/classify.py @@ -1,10 +1,6 @@ #!/usr/bin/env python3 -import json -import time import os -import shutil -import numpy as np import torch diff --git a/cmx4mlops/repo/flex.task/test-matmul-python-naive-cpu/modulex.py b/cmx4mlops/repo/flex.task/test-matmul-python-naive-cpu/modulex.py index 7ed77dea2c..243a01854e 100644 --- a/cmx4mlops/repo/flex.task/test-matmul-python-naive-cpu/modulex.py +++ b/cmx4mlops/repo/flex.task/test-matmul-python-naive-cpu/modulex.py @@ -1,7 +1,5 @@ # Author and developer: Grigori Fursin -from cmind import utils -import os def run(i): diff --git a/cmx4mlops/repo/flex.task/test-mlperf-inference-ref-vllm/modulex.py b/cmx4mlops/repo/flex.task/test-mlperf-inference-ref-vllm/modulex.py index c5273913c3..4d01ef1816 100644 --- a/cmx4mlops/repo/flex.task/test-mlperf-inference-ref-vllm/modulex.py +++ b/cmx4mlops/repo/flex.task/test-mlperf-inference-ref-vllm/modulex.py @@ -1,6 +1,5 @@ # Author and developer: Grigori Fursin -from cmind import utils import os def run(i): diff --git a/cmx4mlops/repo/flex.task/test-python/modulex.py b/cmx4mlops/repo/flex.task/test-python/modulex.py index bd265e90e5..0ffbbe2678 100644 --- a/cmx4mlops/repo/flex.task/test-python/modulex.py +++ b/cmx4mlops/repo/flex.task/test-python/modulex.py @@ -1,6 +1,5 @@ # Author and developer: Grigori Fursin -from cmind import utils def run(i): diff --git a/cmx4mlops/repo/flex.task/test-pytorch-cuda-devices/modulex.py b/cmx4mlops/repo/flex.task/test-pytorch-cuda-devices/modulex.py index 72785b5b8b..c6310ebba3 100644 --- a/cmx4mlops/repo/flex.task/test-pytorch-cuda-devices/modulex.py +++ b/cmx4mlops/repo/flex.task/test-pytorch-cuda-devices/modulex.py @@ -1,9 +1,6 @@ # Author and developer: Grigori Fursin -from cmind import utils -import os -import copy def run(i): diff --git a/cmx4mlops/repo/flex.task/test-pytorch-flash-attn/modulex.py b/cmx4mlops/repo/flex.task/test-pytorch-flash-attn/modulex.py index 28fccc4b3c..e2c741b331 100644 --- a/cmx4mlops/repo/flex.task/test-pytorch-flash-attn/modulex.py +++ b/cmx4mlops/repo/flex.task/test-pytorch-flash-attn/modulex.py @@ -1,9 +1,7 @@ # Author and developer: Grigori Fursin -from cmind import utils import os -import copy def run(i): diff --git a/cmx4mlops/repo/flex.task/use-compute/modulex.py b/cmx4mlops/repo/flex.task/use-compute/modulex.py index b117efc082..f241f5215f 100644 --- a/cmx4mlops/repo/flex.task/use-compute/modulex.py +++ b/cmx4mlops/repo/flex.task/use-compute/modulex.py @@ -1,8 +1,6 @@ # Author and developer: Grigori Fursin -from cmind import utils -import os def run(i): diff --git a/cmx4mlops/repo/flex.task/use-long-paths-win/modulex.py b/cmx4mlops/repo/flex.task/use-long-paths-win/modulex.py index 394227bc2c..973d76c6f2 100644 --- a/cmx4mlops/repo/flex.task/use-long-paths-win/modulex.py +++ b/cmx4mlops/repo/flex.task/use-long-paths-win/modulex.py @@ -1,9 +1,7 @@ # Author and developer: Grigori Fursin -from cmind import utils import os -import copy def run(i): diff --git a/cmx4mlops/repo/flex.task/use-nsys-profile/modulex.py b/cmx4mlops/repo/flex.task/use-nsys-profile/modulex.py index 52c9dc0883..7ee781e525 100644 --- a/cmx4mlops/repo/flex.task/use-nsys-profile/modulex.py +++ b/cmx4mlops/repo/flex.task/use-nsys-profile/modulex.py @@ -1,6 +1,5 @@ # Author and developer: Grigori Fursin -from cmind import utils import os def run(i): diff --git a/cmx4mlops/repo/flex.task/use-nsys-report/modulex.py b/cmx4mlops/repo/flex.task/use-nsys-report/modulex.py index b797f343bb..5e40d1b693 100644 --- a/cmx4mlops/repo/flex.task/use-nsys-report/modulex.py +++ b/cmx4mlops/repo/flex.task/use-nsys-report/modulex.py @@ -1,6 +1,5 @@ # Author and developer: Grigori Fursin -from cmind import utils import os def run(i): diff --git a/cmx4mlops/repo/flex.task/use-nsys-ui/modulex.py b/cmx4mlops/repo/flex.task/use-nsys-ui/modulex.py index 85280f5da5..153f16bb3e 100644 --- a/cmx4mlops/repo/flex.task/use-nsys-ui/modulex.py +++ b/cmx4mlops/repo/flex.task/use-nsys-ui/modulex.py @@ -1,7 +1,5 @@ # Author and developer: Grigori Fursin -from cmind import utils -import os def run(i): diff --git a/cmx4mlops/repo/flex.task/use-rclone-mlcommons/modulex.py b/cmx4mlops/repo/flex.task/use-rclone-mlcommons/modulex.py index 8cc49a59e9..47196db4e9 100644 --- a/cmx4mlops/repo/flex.task/use-rclone-mlcommons/modulex.py +++ b/cmx4mlops/repo/flex.task/use-rclone-mlcommons/modulex.py @@ -1,9 +1,6 @@ # Author and developer: Grigori Fursin -from cmind import utils -import os -import copy def run(i): diff --git a/cmx4mlops/repo/flex.task/use-sys-tool/modulex.py b/cmx4mlops/repo/flex.task/use-sys-tool/modulex.py index d0ff1ab1fc..2a5dd3169c 100644 --- a/cmx4mlops/repo/flex.task/use-sys-tool/modulex.py +++ b/cmx4mlops/repo/flex.task/use-sys-tool/modulex.py @@ -3,7 +3,6 @@ from cmind import utils import os -import copy import sys def run(i): diff --git a/cmx4mlops/repo/flex.task/use-sys-tools-min-win/modulex.py b/cmx4mlops/repo/flex.task/use-sys-tools-min-win/modulex.py index bad9e6e30d..d5d827db06 100644 --- a/cmx4mlops/repo/flex.task/use-sys-tools-min-win/modulex.py +++ b/cmx4mlops/repo/flex.task/use-sys-tools-min-win/modulex.py @@ -1,9 +1,7 @@ # Author and developer: Grigori Fursin -from cmind import utils import os -import copy def run(i): diff --git a/cmx4mlperf/repo/automation/mlperf.model/modulex.py b/cmx4mlperf/repo/automation/mlperf.model/modulex.py index 7aace68e9e..9edc6471e6 100644 --- a/cmx4mlperf/repo/automation/mlperf.model/modulex.py +++ b/cmx4mlperf/repo/automation/mlperf.model/modulex.py @@ -1,7 +1,5 @@ -import os from cmind.automation import Automation -from cmind import utils class CAutomation(Automation): """ diff --git a/tests/script/test_deps.py b/tests/script/test_deps.py index aaf19bc81b..fbc0f56506 100644 --- a/tests/script/test_deps.py +++ b/tests/script/test_deps.py @@ -1,7 +1,5 @@ # This test covers version, variation, compilation from src, add_deps, add_deps_recursive, deps, post_deps -import cmind as cm -import check as checks # MLPerf v3.0 inference is now very outdated and we are testing inference in separate tests