[TVM DEBUG] How to dump tvm log output to a file

hi , I want to dump the output of log from tvm to a file, which currently its dumps on terminal
i want something like below mentioned link:
https://discuss.tvm.apache.org/t/how-to-dump-irs-for-each-pass-when-building-a-model/454
but wasnt able to find dump_pass_ir option in PassContext.
Is this option removed now or is there another way of dumping the pass log outputs to a file. ?

currently i am running my tvm python file with below command:
TVM_LOG_DEBUG="DEFAULT=2" python3 tvm_exp.py

thanks

try this command?

TVM_LOG_DEBUG="DEFAULT=2" python3 -u tvm_exp.py 2>&1 | tee dump.log

5 Likes

hi @LeiWang1999 this command was very helpful ,
i was able to dump the log into the file specified in the terminal. thank you:)