We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15e33a7 commit 409d816Copy full SHA for 409d816
script/add-custom-nvidia-system/customize.py
@@ -5,6 +5,7 @@
5
import importlib.util
6
import json
7
8
+
9
def preprocess(i):
10
11
os_info = i['os_info']
@@ -46,7 +47,8 @@ def postprocess(i):
46
47
dest_file = os.path.join(target_dir, f"{mlc_model}.py")
48
49
dummy_config_path = os.path.join(tmp_script_path, "dummy_config.py")
- spec = importlib.util.spec_from_file_location("dummy_config", dummy_config_path)
50
+ spec = importlib.util.spec_from_file_location(
51
+ "dummy_config", dummy_config_path)
52
dummy_module = importlib.util.module_from_spec(spec)
53
spec.loader.exec_module(dummy_module)
54
0 commit comments