Skip to content

Commit

Permalink
Fix tvm.target.generic_func runtime detection (apache#4910)
Browse files Browse the repository at this point in the history
  • Loading branch information
robo-corg authored and alexwong committed Feb 26, 2020
1 parent 6e15f3c commit ed8584b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/tvm/target/generic_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@

try:
from decorator import decorate
except ImportError as err_msg:
except ImportError:
# Allow decorator to be missing in runtime
if _LIB_NAME != "libtvm_runtime.so":
raise err_msg
if not tvm._ffi.base._RUNTIME_ONLY:
raise

from tvm.runtime import Object
from . target import Target
Expand Down

0 comments on commit ed8584b

Please sign in to comment.