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 Caleb via Apache TVM Discuss <no...@discuss.tvm.ai> on 2021/06/21 23:31:35 UTC

[Apache TVM Discuss] [Questions] Saving compiled model to a .tar file using Python API


Ultimately, I'm trying to save off a tuned model as an executable (or something similar). I'm wondering if this should be done between the `tune` and `compile` steps, or between the `compile` and `run` steps. However, I'm a little confused on the difference between the `TVMCModel` and `TVMCPackage` artifacts. The only difference between these two is that the `TVMCPackage` artifact has a `mod.so` file while `TVMCModel` does not - does this .so file make the TVMCPackage deployable?





---
[Visit Topic](https://discuss.tvm.apache.org/t/saving-compiled-model-to-a-tar-file-using-python-api/10275/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/e3b5e12679c895e5ded341b4cd740373a82d4cb2be27b0223406900f0626e4bb).

[Apache TVM Discuss] [Questions] Saving compiled model to a .tar file using Python API

Posted by Josh Fromm via Apache TVM Discuss <no...@discuss.tvm.ai>.

Yes `TVMCPackage` (between the `compile` and `run` steps) sounds like what you want. It's the deployable artifact. `TVMCModel` is the high level graph definition. If you wanted to tune a model for a few different hardware targets you could use the one `TVMCModel` to produce several `TVMCPackage`s for example.





---
[Visit Topic](https://discuss.tvm.apache.org/t/saving-compiled-model-to-a-tar-file-using-python-api/10275/8) 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/65d34bf65d6b2f4b09be03a45a2c074605a61e49ef335d8e0319d94a5f938a88).