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 jmatai via Apache TVM Discuss <no...@discuss.tvm.ai> on 2021/03/04 00:08:12 UTC
[Apache TVM Discuss] [Questions] Importing relay IRModule from text
file?
Hi All,
Is it possible to import relay IRModule from a text file?
Assume, I have a text file named "a.txt" which contains the following. Can I import it to IRModule?
```
def @main(%x1: Tensor[(1, 1, 1, 20), float32], %y1: Tensor[(1, 1, 1, 20), float32]) {
%0 = add(%x1, %y1);
%1 = subtract(%x1, %y1);
multiply(%0, %1)
}
```
Here is what I have tried, but the mod is empty.
```
a = mod._import("a.txt")
```
---
[Visit Topic](https://discuss.tvm.apache.org/t/importing-relay-irmodule-from-text-file/9297/1) 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/9c0a963e6bfb890018b30811bd333f06427d8b316b4acbba695374d61a615725).
[Apache TVM Discuss] [Questions] Importing relay IRModule from text
file?
Posted by Tristan Qiu via Apache TVM Discuss <no...@discuss.tvm.ai>.
https://tvm.apache.org/docs/tutorials/frontend/deploy_sparse.html?highlight=save_json
check this turtorial out, you will find answers there.
---
[Visit Topic](https://discuss.tvm.apache.org/t/importing-relay-irmodule-from-text-file/9297/2) 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/92f2e7c60f7c9754dd4280b35ae44b86423f545cc1250eac4e734cec3b1cfa87).