After starting fresh it seems that the last error is coming from some 
previously unsynced modifications so I think you can forget about it.

Now I am getting this error `Failed to find the codegen tool for 
relay.ext.ccompiler` (full below).
The codegen is registered with 
`TVM_REGISTER_GLOBAL("relay.ext.ccompiler").set_body_typed(CCompiler)`
 and the op are registered in the file at 
`python/tvm/relay/op/contrib/ccompiler.py`. 

*I also made sure to delete `CODEGENC.cmake` so that the original c codegen 
example doesn't compile with library as this is a straight copy of it that uses 
the same names.*

The python code that resulted in this is the following:
```python
from tvm import relay
from tvm.contrib import graph_executor

mod = create_relay_mod()
from tvm.relay.op.contrib.ccompiler import partition_for_ccompiler
pmod = partition_for_ccompiler(mod)  # do "ccompiler" annotation, also graph 
partitionning
lib = relay.build(pmod, target)

# Generate graph executor
dev = tvm.device(target, 0)
m = graph_executor.GraphModule(lib["default"](dev))

dtype = 'float32'
set_module_inputs(m)
m.run()
output = m.get_output(0)
```
```
Traceback (most recent call last):
  File "/Users/.../tvm/tests/slai/relay_multiply.py", line 29, in <module>
    lib = R.build(pmod, target)
  File "/Users/.../tvm/python/tvm/relay/build_module.py", line 471, in build
    graph_json, runtime_mod, params = bld_mod.build(
  File "/Users/.../tvm/python/tvm/relay/build_module.py", line 199, in build
    self._build(mod, target, target_host, executor, runtime, 
workspace_memory_pools, mod_name)
  File "/Users/.../tvm/python/tvm/_ffi/_ctypes/packed_func.py", line 237, in 
__call__
    raise get_last_ffi_error()
tvm._ffi.base.TVMError: Traceback (most recent call last):
  [bt] (8) 9   libtvm.dylib                        0x00000001182ed574 
tvm::transform::Pass::operator()(tvm::IRModule) const + 184
  [bt] (7) 8   libtvm.dylib                        0x00000001182ed7c0 
tvm::transform::Pass::operator()(tvm::IRModule, tvm::transform::PassContext 
const&) const + 244
  [bt] (6) 7   libtvm.dylib                        0x00000001182f02ec 
tvm::transform::SequentialNode::operator()(tvm::IRModule, 
tvm::transform::PassContext const&) const + 872
  [bt] (5) 6   libtvm.dylib                        0x00000001182ed7c0 
tvm::transform::Pass::operator()(tvm::IRModule, tvm::transform::PassContext 
const&) const + 244
  [bt] (4) 5   libtvm.dylib                        0x00000001182ee504 
tvm::transform::ModulePassNode::operator()(tvm::IRModule, 
tvm::transform::PassContext const&) const + 1956
  [bt] (3) 4   libtvm.dylib                        0x00000001195dd350 
tvm::runtime::PackedFuncObj::Extractor<tvm::runtime::PackedFuncSubObj<void 
tvm::runtime::TypedPackedFunc<tvm::IRModule (tvm::IRModule, 
tvm::transform::PassContext)>::AssignTypedLambda<tvm::relay::tec::LowerTEPass(tvm::runtime::String
 const&, std::__1::function<void (tvm::BaseFunc)>, 
tvm::VirtualDevice)::$_8>(tvm::relay::tec::LowerTEPass(tvm::runtime::String 
const&, std::__1::function<void (tvm::BaseFunc)>, 
tvm::VirtualDevice)::$_8)::'lambda'(tvm::runtime::TVMArgs const&, 
tvm::runtime::TVMRetValue*)> >::Call(tvm::runtime::PackedFuncObj const*, 
tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*) + 888
  [bt] (2) 3   libtvm.dylib                        0x00000001195bd0cc 
tvm::relay::tec::LowerTE(tvm::IRModule const&, tvm::runtime::String const&, 
std::__1::function<void (tvm::BaseFunc)>, tvm::VirtualDevice) + 2480
  [bt] (1) 2   libtvm.dylib                        0x00000001195c4874 
tvm::relay::tec::TECompilerImpl::LowerExternalFunctions() + 2388
  [bt] (0) 1   libtvm.dylib                        0x0000000117f9b6a0 
tvm::runtime::detail::LogFatal::Entry::Finalize() + 84
  File "/Users/.../tvm/src/relay/backend/te_compiler.cc", line 206
TVMError:
---------------------------------------------------------------
An error occurred during the execution of TVM.
For more information, please see: https://tvm.apache.org/docs/errors.html
---------------------------------------------------------------
  Check failed: (pf) is false: Failed to find the codegen tool for 
relay.ext.ccompiler
```





---
[Visit 
Topic](https://discuss.tvm.apache.org/t/byoc-details-about-byoc-newbie/12190/7) 
to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click 
here](https://discuss.tvm.apache.org/email/unsubscribe/ac1dc1f842fd00e1759cd637db272fa1b482541ffeee8759dfbfe1ffbc10297c).

Reply via email to