# Aesara/tt.scan equivalent in pymc v5?

**URL:** <https://discourse.pymc.io/t/aesara-tt-scan-equivalent-in-pymc-v5/11056>\
**Category:** Questions\
**Created:** [December 22, 2022, 10:47pm UTC](https://discourse.pymc.io/t/aesara-tt-scan-equivalent-in-pymc-v5/11056 "2022-12-22T22:47:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jcstucki](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/jcstucki/32/5463_2.png) [@jcstucki](https://discourse.pymc.io/u/jcstucki)\
**Post date:** [December 22, 2022, 10:47pm UTC](https://discourse.pymc.io/t/aesara-tt-scan-equivalent-in-pymc-v5/11056/1 "2022-12-22T22:47:56Z")

</div>

Sorry if this is a newbie question, but I updated my pymc and noticed it’s on v5 (as of yesterday). I was wondering if the aesara.scan function is still applicable to the pytensor library or if there is an equivalent function/decorator in pymc v5.0? If not that’s fine I’ll just use pymc4 🙂

---

<div class="post-metadata">

**Author:** ![ricardoV94](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/ricardov94/32/5775_2.png) [@ricardoV94](https://discourse.pymc.io/u/ricardoV94)\
**Post date:** [December 22, 2022, 11:05pm UTC](https://discourse.pymc.io/t/aesara-tt-scan-equivalent-in-pymc-v5/11056/2 "2022-12-22T23:05:37Z")

</div>

You can use pytensor.scan which works just like aesara.scan used to.
