[Apache TVM Discuss] [Questions] How to save model compiled by VirtualMachine

2021-08-28 Thread Nam Nguyen Duc via Apache TVM Discuss
@yuchenj Thanks you very much, it is exactly what I looking for --- [Visit Topic](https://discuss.tvm.apache.org/t/how-to-save-model-compiled-by-virtualmachine/10902/3) to respond. You are receiving this because you enabled mailing list mode. To unsubscribe from these emails, [click her

[Apache TVM Discuss] [Questions] How to save model compiled by VirtualMachine

2021-08-28 Thread Yuchen Jin via Apache TVM Discuss
Hi @namduc, you can use `vm_exec.save()` to save the executable. Checkout the code example here: https://github.com/apache/tvm/blob/main/python/tvm/runtime/vm.py#L123. --- [Visit Topic](https://discuss.tvm.apache.org/t/how-to-save-model-compiled-by-virtualmachine/10902/2) to respond. Yo

[Apache TVM Discuss] [Questions] How to save model compile by VirtualMachine

2021-08-28 Thread Nam Nguyen Duc via Apache TVM Discuss
I want to save and load the model compiled by `relay.vm.compile`, how can I be !? Because my model is not able to build with `relay.build` thus I was unable to save the model like this `lib.export_library(path_lib)` My code: ```python with tvm.transform.PassContext(opt_level=3, disabled_pa