Skip to content

Commit 6cbd822

Browse files
committed
[cvm]: fixed python cvm import error
1 parent e719bc7 commit 6cbd822

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

python/cvm/runtime.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from ._ctypes.runtime import CVMAPIInference
1212
from ._ctypes.runtime import CVMAPIGetOutputLength, CVMAPIGetOutputTypeSize
1313

14-
try:
15-
from ._cy3 import libcvm
16-
except ImportError:
17-
pass
14+
# try:
15+
# from ._cy3 import libcvm
16+
# except ImportError:
17+
# pass

python/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,5 @@ def config_cython():
6565
url="https://github.com/CortexFoundation/cvm-runtime.git",
6666
packages=find_packages(),
6767
author="CortexLabs Foundation",
68-
ext_modules = config_cython(),
68+
# ext_modules = config_cython(),
6969
**setup_kwargs)

tests/python/model-infer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
if len(os.sys.argv) > 1:
3737
model_root = os.sys.argv[1]
3838

39-
print("Modal Load: ", model_root)
39+
print("Model Load: ", model_root)
4040

4141
json, params = utils.load_model(
4242
os.path.join(model_root, "symbol"),

0 commit comments

Comments
 (0)