Could we know detail about the applied optimization level?

I asked a similar question a couple of days ago. The first answer and my futher findings might be helpful.

https://discuss.tvm.apache.org/t/default-relay-passes-in-pathcontext/12898

I’m not sure if the order listed by @Wheest is still correct since the documentation states that build_config is deprecated and replaced by the opt_level stored in the PassInfo. Howerver the explanation still give the idea on how the passes in a sequential are checked against the opt_level of the PassContext. So from my understanding you have to check the passes and their opt_level individually and then check wheather they are applied in the two functions shown in my post.

1 Like