Your English is fine, but you’re going to have to provide some more information to properly troubleshoot this . 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:
- The error and stacktrace you get (i.e. what julia outputs when the model is “broken”)
- The version of Flux you’re using
- 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.