Unverified Commit 406b5f76 by Andrew Committed by GitHub

Fix tvm.target.generic_func runtime detection (#4910)

parent d2ae8c95
......@@ -20,10 +20,10 @@ import tvm._ffi
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment