# Use Enzyme in flux

**URL:** <https://discourse.julialang.org/t/use-enzyme-in-flux/98352>\
**Category:** Machine Learning\
**Tags:** flux\
**Created:** [May 4, 2023, 10:34pm UTC](https://discourse.julialang.org/t/use-enzyme-in-flux/98352 "2023-05-04T22:34:30Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![wsmoses](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wsmoses/32/26497_2.png) [@wsmoses](https://discourse.julialang.org/u/wsmoses)\
**Post date:** [May 6, 2023, 3:03am UTC](https://discourse.julialang.org/t/use-enzyme-in-flux/98352/7 "2023-05-06T03:03:44Z")

</div>

I would caution this coding style however and strongly recommend passing in dudt p and st explicitly as (const) parameters to the autodiff rather than type unstably capturing them.

It is significant for performance among other things.

---

_[View the full topic](https://discourse.julialang.org/t/use-enzyme-in-flux/98352)._
