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 Xiaolong18 via Apache TVM Discuss <no...@discuss.tvm.ai> on 2022/02/23 09:36:09 UTC
[Apache TVM Discuss] [Questions] Whether the repo of https://github.com/tlc-pack/relax can emit the relay_ir level text
[1] In the repo of "https://github.com/tlc-pack/relax", i tested the "apps\relax_examples\resnet.py", found that the "print(R.parser.astext(relax_mod))" will ouput the tir level text,i wonder whether this repo can output the relay_ir level text, if can ,how i get the output.
[2] If can not , are there plans to add this feature? Or the reason not to add this feature.
---
[Visit Topic](https://discuss.tvm.apache.org/t/whether-the-repo-of-https-github-com-tlc-pack-relax-can-emit-the-relay-ir-level-text/12151/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/6bda622eb046acf3a746725042d2000a336e4d0078656840c78df427255166b8).
[Apache TVM Discuss] [Questions] Whether the repo of https://github.com/tlc-pack/relax can emit the relay_ir level text
Posted by Xiaolong18 via Apache TVM Discuss <no...@discuss.tvm.ai>.
Ok,Thank you very much :slightly_smiling_face:
---
[Visit Topic](https://discuss.tvm.apache.org/t/whether-the-repo-of-https-github-com-tlc-pack-relax-can-emit-the-relay-ir-level-text/12151/5) 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/c462e2eeb7c592c5ae4227488ae92d20dac4479f9ded5bf937ef5e6cf8264562).
[Apache TVM Discuss] [Questions] Whether the repo of https://github.com/tlc-pack/relax can emit the relay_ir level text
Posted by Yuchen Jin via Apache TVM Discuss <no...@discuss.tvm.ai>.
If there is a need we will do so, but so far we haven't seen a need. :slight_smile:
---
[Visit Topic](https://discuss.tvm.apache.org/t/whether-the-repo-of-https-github-com-tlc-pack-relax-can-emit-the-relay-ir-level-text/12151/4) 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/9956141e47c3ceb2e1eb16626fc00474bd952cd4c95e9adac07d5eae8ede318f).
[Apache TVM Discuss] [Questions] Whether the repo of https://github.com/tlc-pack/relax can emit the relay_ir level text
Posted by Xiaolong18 via Apache TVM Discuss <no...@discuss.tvm.ai>.
Thank you very much :grinning:, I have another question, there is already provided interface “relay_translator.from_relay()" to convert relay_module to relax_module, is there any similar function to convert relax_module to relay_module in the future? Or it can be done in other ways?
---
[Visit Topic](https://discuss.tvm.apache.org/t/whether-the-repo-of-https-github-com-tlc-pack-relax-can-emit-the-relay-ir-level-text/12151/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/cabe066dcc18786595c8f0152d0e215cafad0dc2cfaddea7d57f6f0794f682d8).
[Apache TVM Discuss] [Questions] Whether the repo of https://github.com/tlc-pack/relax can emit the relay_ir level text
Posted by Yuchen Jin via Apache TVM Discuss <no...@discuss.tvm.ai>.
Hi @xiaolong18,
Thanks for playing with Relax! `print(R.parser.astext(relax_mod))` actually prints out the whole IRModule, which contains both the Relax functions and TIR PrimFuncs. Please search for "@relax.function" in the printed text, you will find the Relax IR as below:
![Screen Shot 2022-02-23 at 9.05.40 AM|690x128](upload://qRzP8qn5NApew464cjQBe8lZFsI.png)
If you just want to see the relax function, you can do `print(R.parser.astext(relax_mod["main"]))`.
---
[Visit Topic](https://discuss.tvm.apache.org/t/whether-the-repo-of-https-github-com-tlc-pack-relax-can-emit-the-relay-ir-level-text/12151/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/4d618b381beec80cca26ceda433be35ee976ff537d5727e4a524872e06e33188).