Skip to content

Commit

Permalink
[INIT] Allow proper throw in compiler (apache#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
tqchen committed Jul 12, 2018
1 parent aa40347 commit 25c7039
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions python/vta/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,17 @@
"""
from __future__ import absolute_import as _abs

__version__ = "0.1.0"
import sys

from .bitstream import get_bitstream_path, download_bitstream
from .environment import get_env, Environment
from .rpc_client import reconfig_runtime, program_fpga

try:
__version__ = "0.1.0"

# do not import nnvm/topi when running vta.exec.rpc_server
# to maintain minimum dependency on the board
if sys.argv[0] not in ("-c", "-m"):
from . import top
from .build_module import build_config, lower, build
from . import graph
except (ImportError, RuntimeError):
pass

0 comments on commit 25c7039

Please sign in to comment.