# Zygote Warning within FluxOptTools - 'cannot track gradients'

**URL:** https://discourse.julialang.org/t/zygote-warning-within-fluxopttools-cannot-track-gradients/96630
**Category:** Machine Learning
**Tags:** flux, zygote
**Created:** [March 26, 2023, 3:02pm UTC](https://discourse.julialang.org/t/zygote-warning-within-fluxopttools-cannot-track-gradients/96630 "2023-03-26T15:02:03Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![ToucheSir](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/touchesir/32/14411_2.png) [@ToucheSir](https://discourse.julialang.org/u/ToucheSir)
#### Post date: [March 27, 2023, 9:01pm UTC](https://discourse.julialang.org/t/zygote-warning-within-fluxopttools-cannot-track-gradients/96630/2 "2023-03-27T21:01:02Z")

</div>

This is in dire need of a [MWE](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757). It’s most likely that some code is inside the function being optimized is using ForwardDiff without your knowledge. This may be intentional (on the library author’s part) or due to a misunderstanding of the higher-level libraries.

---

_[View the full topic](https://discourse.julialang.org/t/zygote-warning-within-fluxopttools-cannot-track-gradients/96630)._
