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 Takato Yamada via Apache TVM Discuss <no...@discuss.tvm.ai> on 2020/11/07 07:08:49 UTC

[Apache TVM Discuss] [Questions] Print IRModule without meta data


Is there any way to print relay ir and tir without meta data like the pass `tvm.transform.PrintIR`. I just want something like below for example.

```python
model = create_a_model_in_relay()
mod = tvm.IRModule.from_expr(model)
custom_print(mod, show_meta_data=False)
```





---
[Visit Topic](https://discuss.tvm.apache.org/t/print-irmodule-without-meta-data/8393/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/83e0106e9bd1b1f610f9b9e1bddfef1bedf0541564446b52e95563b1b8afbe78).

[Apache TVM Discuss] [Questions] Print IRModule without meta data

Posted by Takato Yamada via Apache TVM Discuss <no...@discuss.tvm.ai>.

I solved this question by myself but I just keep this thread for someone who might have the same question.

```
print(mod.astext(show_meta_data=False))
```





---
[Visit Topic](https://discuss.tvm.apache.org/t/print-irmodule-without-meta-data/8393/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/dbeccf117468b6443abe185a16eb3d1b915c3f80a67b397600310fc7e139cda3).

[Apache TVM Discuss] [Questions] Print IRModule without meta data

Posted by "Cody H. Yu via Apache TVM Discuss" <no...@discuss.tvm.ai>.

https://github.com/apache/incubator-tvm/issues/6878





---
[Visit Topic](https://discuss.tvm.apache.org/t/print-irmodule-without-meta-data/8393/3) 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/dc63f5402c32c6f5ab903b110a1cc334e4c4fd9f5544f9ff65dc4ad1bfc4e38a).