# AttributeError: module 'tvm.relay' has no attribute 'ir\_pass'

**URL:** <https://discuss.tvm.apache.org/t/attributeerror-module-tvm-relay-has-no-attribute-ir-pass/13567>\
**Category:** Troubleshooting\
**Created:** [September 23, 2022, 2:56am UTC](https://discuss.tvm.apache.org/t/attributeerror-module-tvm-relay-has-no-attribute-ir-pass/13567 "2022-09-23T02:56:53Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Learneruestc](https://discuss.tvm.apache.org/user_avatar/discuss.tvm.apache.org/learneruestc/32/4217_2.png) [@Learneruestc](https://discuss.tvm.apache.org/u/Learneruestc)\
**Post date:** [September 23, 2022, 9:56am UTC](https://discuss.tvm.apache.org/t/attributeerror-module-tvm-relay-has-no-attribute-ir-pass/13567/3 "2022-09-23T09:56:28Z")

</div>

ok… There had a same post…

> [@\[Relay\] tvm.relay.ir\_pass is gone?](https://discuss.tvm.apache.org/t/relay-tvm-relay-ir-pass-is-gone/4077):
>
> Hi after I sync tvm to master version I couldn’t find ir\_pass under tvm.relay. I’m also un-able to use function like ir\_pass.free\_vars or ir\_pass.infer\_type. However I couldn’t find alternative to replace them from document. Any idea of where should I use to replace those two mentioned functions? Thanks!

---

_[View the full topic](https://discuss.tvm.apache.org/t/attributeerror-module-tvm-relay-has-no-attribute-ir-pass/13567)._
