[Apache TVM Discuss] [Questions] Mix tvmc and Python API

2022-01-10 Thread Ligeng Zhu via Apache TVM Discuss
TVMC is a wrapper of python APIs. You can refer to [python/tvm/driver/tvmc/runner.py](https://github.com/apache/tvm/blob/4b0f18e433f1517e1da36bb0d6cad158fa42a9a8/python/tvm/driver/tvmc/runner.py#L581) for how to load it in python. --- [Visit Topic](https://discuss.tvm.apache.org/t/mix-tvmc

[Apache TVM Discuss] [Questions] Mix tvmc and Python API

2022-01-09 Thread Huanchun Ye via Apache TVM Discuss
@areusch We are using tvm for embedded devices. For security reasons we need to be able to update module + params separately from the code, so tvmc's output formats are suitable. On the other hand we also use the Python API to integrate the tvm runtime with our system. I'd think this use case

[Apache TVM Discuss] [Questions] Mix tvmc and Python API

2022-01-06 Thread Andrew Reusch via Apache TVM Discuss
@huanchunye it should be possible, yes. however, it depends on the format you use to export from tvmc (for example, Model Library Format is not meant to be loaded using `load_module`). could you give some more detail of what you're trying to do? --- [Visit Topic](https://discuss.tvm.apach

[Apache TVM Discuss] [Questions] Mix tvmc and Python API

2022-01-04 Thread Huanchun Ye via Apache TVM Discuss
Is it possible to use the Python API to load models compiled by tvmc or use tvmc to run models saved by the Python API? I followed the separate tutorials and noticed that there are similarities and differences in the outputs --- for example the .so saved by the Python API appears to contain t