You are viewing a plain text version of this content. The canonical link for it is here.
Posted to discuss-archive@tvm.apache.org by Niu Chong via TVM Discuss <no...@discuss.tvm.ai> on 2020/05/07 07:43:08 UTC

[TVM Discuss] [Questions] Will TVM be compiled as a standalone C++ library?


Hi, all

I'm integrating TVM into a C++ deep learning framework, which is similar to the work of torch-tvm.

And during the work, I found that the whole functionality of TVM relies on not only the C++ code, but also the python code, which cannot be compiled into the libtvm.so.

For example, the relay op `nn.relu` was registered at the *src/relay/op/nn/nn.cc* without the `TOpPattern` attribute, but when we build the relay graph (through C++ API `RelayBuildModule::BuildRelay()` ), it requires the `TOpPattern` attribute of all ops, thus failing to build.

The `TOpPattern` attribute for `nn.relu` is registered at *python/tvm/relay/op/nn/_nn.py* , so if we build the relay graph from python API (i.e. `relay.build_module.build()` ), there is no error.

Same thing goes for the functionality of loading the tuned config for ops, the corresponding code are written in Python at *python/tvm/autotvm* , and I don't find the C++ code for it.

So will TVM be compiled as a standalone C++ library with all its functionality in the future? and if so, Is there a roadmap for it now?

Any help would be greatly appreciated, Thanks!





---
[Visit Topic](https://discuss.tvm.ai/t/will-tvm-be-compiled-as-a-standalone-c-library/6607/1) to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.tvm.ai/email/unsubscribe/19703caa58cca3d00db2a101e335160a1ea0f5da1af2588eaa6930bfaf8032d7).

[TVM Discuss] [Questions] Will TVM be compiled as a standalone C++ library?

Posted by Niu Chong via TVM Discuss <no...@discuss.tvm.ai>.

Is there any one can help? Thanks in advance.





---
[Visit Topic](https://discuss.tvm.ai/t/will-tvm-be-compiled-as-a-standalone-c-library/6607/2) to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.tvm.ai/email/unsubscribe/d9e22f151d5da12fc111f6bcbc7dc3765cce1b8f90654272d137901f589cabb6).