Computing Flux.gradient change the model

Your English is fine, but you’re going to have to provide some more information to properly troubleshoot this :slight_smile: . We can’t do anything with just “your code broke the model on my pc”.

See Please read: make it easier to help you. Specifically, you’ll need to provide:

  1. The error and stacktrace you get (i.e. what julia outputs when the model is “broken”)
  2. The version of Flux you’re using
  3. The structure of your model. This should be as easy as copying the output of println(model). You probably won’t have to change it, but it’s hard to debug without actually seeing what it is.
2 Likes