apivovarov edited a comment on pull request #9297:
URL: https://github.com/apache/tvm/pull/9297#issuecomment-949254498
relay build fails on Mac - `AttributeError: module 'tvm.driver._ffi_api' has
no attribute 'preprocess_module'`
```
lib = relay.build(func, target=target, params=params)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/tvm-0.8.dev1937+g75cf964b0-py3.9-macosx-10.15-x86_64.egg/tvm/relay/build_module.py",
line 357, in build
executor_config, runtime_mod, params = bld_mod.build(
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/tvm-0.8.dev1937+g75cf964b0-py3.9-macosx-10.15-x86_64.egg/tvm/relay/build_module.py",
line 172, in build
self._build(mod, target, target_host, executor, mod_name)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/tvm-0.8.dev1937+g75cf964b0-py3.9-macosx-10.15-x86_64.egg/tvm/_ffi/_ctypes/packed_func.py",
line 237, in __call__
raise get_last_ffi_error()
AttributeError: Traceback (most recent call last):
[bt] (8) 9 libtvm.dylib 0x000000015195400d
tvm::relay::Interpreter::VisitExpr_(tvm::relay::CallNode const*) + 157
[bt] (7) 8 libtvm.dylib 0x000000015195386e
tvm::relay::ExprFunctor<tvm::runtime::ObjectRef (tvm::RelayExpr
const&)>::VisitExpr(tvm::RelayExpr const&) + 222
[bt] (6) 7 libtvm.dylib 0x00000001519584f8
tvm::NodeFunctor<tvm::runtime::ObjectRef (tvm::runtime::ObjectRef const&,
tvm::relay::ExprFunctor<tvm::runtime::ObjectRef (tvm::RelayExpr
const&)>*)>::operator()(tvm::runtime::ObjectRef const&,
tvm::relay::ExprFunctor<tvm::runtime::ObjectRef (tvm::RelayExpr const&)>*)
const + 312
[bt] (5) 6 libtvm.dylib 0x0000000151959fe8
tvm::relay::ExprFunctor<tvm::runtime::ObjectRef (tvm::RelayExpr
const&)>::InitVTable()::'lambda4'(tvm::runtime::ObjectRef const&,
tvm::relay::ExprFunctor<tvm::runtime::ObjectRef (tvm::RelayExpr
const&)>*)::__invoke(tvm::runtime::ObjectRef const&,
tvm::relay::ExprFunctor<tvm::runtime::ObjectRef (tvm::RelayExpr const&)>*) + 24
[bt] (4) 5 libtvm.dylib 0x0000000151955006
tvm::relay::Interpreter::VisitExpr_(tvm::relay::CallNode const*) + 4246
[bt] (3) 4 libtvm.dylib 0x000000015195b8c1
tvm::relay::Interpreter::InvokePrimitiveOp(tvm::GlobalVar const&,
tvm::runtime::Array<tvm::GlobalVar, void>, tvm::Target, tvm::GlobalVar const&,
tvm::runtime::Array<tvm::GlobalVar, void> const&,
tvm::runtime::Array<tvm::Integer, void> const&, unsigned long, unsigned long,
tvm::Target, std::__1::vector<tvm::runtime::ObjectRef,
std::__1::allocator<tvm::runtime::ObjectRef> > const&) + 449
[bt] (2) 3 libtvm.dylib 0x000000015195efac
tvm::relay::Interpreter::TIRToPackedFunc(tvm::GlobalVar const&,
tvm::runtime::Array<tvm::GlobalVar, void> const&, tvm::Target) + 1596
[bt] (1) 2 libtvm.dylib 0x0000000151b478db
std::__1::__function::__func<TVMFuncCreateFromCFunc::$_2,
std::__1::allocator<TVMFuncCreateFromCFunc::$_2>, void (tvm::runtime::TVMArgs,
tvm::runtime::TVMRetValue*)>::operator()(tvm::runtime::TVMArgs&&,
tvm::runtime::TVMRetValue*&&) + 203
[bt] (0) 1 libtvm.dylib 0x0000000151b595e8
tvm::runtime::Backtrace() + 24
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/tvm-0.8.dev1937+g75cf964b0-py3.9-macosx-10.15-x86_64.egg/tvm/_ffi/_ctypes/packed_func.py",
line 81, in cfun
rv = local_pyfunc(*pyargs)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/tvm-0.8.dev1937+g75cf964b0-py3.9-macosx-10.15-x86_64.egg/tvm/relay/backend/_backend.py",
line 45, in build
return tvm.driver.build(mod, target=target)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/tvm-0.8.dev1937+g75cf964b0-py3.9-macosx-10.15-x86_64.egg/tvm/driver/build_module.py",
line 263, in build
rt_mod_host = _driver_ffi.preprocess_module(target_input_mod,
target_host)
AttributeError: module 'tvm.driver._ffi_api' has no attribute
'preprocess_module'
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]