We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f25bf1 commit c12691aCopy full SHA for c12691a
1 file changed
vta/python/vta/__init__.py
@@ -6,15 +6,17 @@
6
"""
7
from __future__ import absolute_import as _abs
8
9
-__version__ = "0.1.0"
+import sys
10
11
from .bitstream import get_bitstream_path, download_bitstream
12
from .environment import get_env, Environment
13
from .rpc_client import reconfig_runtime, program_fpga
14
15
-try:
+__version__ = "0.1.0"
16
+
17
+# do not import nnvm/topi when running vta.exec.rpc_server
18
+# to maintain minimum dependency on the board
19
+if sys.argv[0] not in ("-c", "-m"):
20
from . import top
21
from .build_module import build_config, lower, build
22
from . import graph
-except (ImportError, RuntimeError):
- pass
0 commit comments