* It there any option in tvm similar to  **-print-after-all in the llvm**, 
which can dump the llvm IR for each pass ?

When I look for the solution in deepseek, it give a example to use 
**dump_pass_ir=1**,
```
from tvm import relay
from tvm.relay import transform

# Build your Relay module (mod) and pass sequence
seq = transform.Sequential([...])

with tvm.transform.PassContext(opt_level=3, dump_pass_ir=1):  # Dump AFTER 
every pass
    mod_optimized = seq(mod)
```
* So I try it base on tvm 0.18, but get a unexpected error ?
```
(tvm0.18_py310_zyd) root@j00595921debug2-cc95c9977-q752v:/home/zyd# python 
vector_matmul_add5.5.py
Traceback (most recent call last):
  File "/home/zhongyunde/vector_matmul_add5.5.py", line 41, in <module>
    with tvm.transform.PassContext(opt_level=3, dump_pass_ir=3):
TypeError: PassContext.__init__() got an unexpected keyword argument 
'dump_pass_ir'
```





---
[Visit 
Topic](https://discuss.tvm.apache.org/t/dump-any-option-can-dump-the-relay-and-tir-ir-for-each-pass/18402/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/be8f777f72fbdf8246f8bb2170f005e46e025484a2cff6f8d57302a4a1f72b13).

Reply via email to