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 Donglin via Apache TVM Discuss <no...@discuss.tvm.ai> on 2021/11/17 07:33:27 UTC

[Apache TVM Discuss] [Questions] How to dump IRs for each pass when building a model


Hi @leeexyz , so what is the equivalent config of dump_ir_pass=True in PassContext? As tvm.build_config have been deprecated?





---
[Visit Topic](https://discuss.tvm.apache.org/t/how-to-dump-irs-for-each-pass-when-building-a-model/454/9) 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/1fba61f7eb87041fbcc6166258b197c9f759b031bbbce6f5e649c58ae80a74a3).

[Apache TVM Discuss] [Questions] How to dump IRs for each pass when building a model

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

Hi @donglinz, see the doc [Install from Source — tvm 0.8.dev0 documentation (apache.org)](https://tvm.apache.org/docs/install/from_source.html#install-from-source)
```
To debug with IRs, set(USE_RELAY_DEBUG ON) and set environment variable TVM_LOG_DEBUG.

export TVM_LOG_DEBUG="ir/transform.cc=1;relay/ir/transform.cc=1"
```

In short, first, you have to build TVM with debugging support and then set the environment variable before running.





---
[Visit Topic](https://discuss.tvm.apache.org/t/how-to-dump-irs-for-each-pass-when-building-a-model/454/10) 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/5d6e506df7bfcb69d1855ebfd27dc37c92195cb53ca25c2fcff53c661237cc76).