# Zygote error. "Only reference types can be differentiated with \`Params\`."

**URL:** <https://discourse.julialang.org/t/zygote-error-only-reference-types-can-be-differentiated-with-params/38224>\
**Category:** Machine Learning\
**Created:** [April 26, 2020, 6:45am UTC](https://discourse.julialang.org/t/zygote-error-only-reference-types-can-be-differentiated-with-params/38224 "2020-04-26T06:45:10Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [April 27, 2020, 3:26am UTC](https://discourse.julialang.org/t/zygote-error-only-reference-types-can-be-differentiated-with-params/38224/5 "2020-04-27T03:26:19Z")

</div>

The Flux API can be a bit difficult to use because of the globals which is why we recommend a `sciml_train` workflow these days, as demonstrated in the README: [https://github.com/SciML/DiffEqFlux.jl](https://github.com/SciML/DiffEqFlux.jl)

---

_[View the full topic](https://discourse.julialang.org/t/zygote-error-only-reference-types-can-be-differentiated-with-params/38224)._
