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).

Reply via email to