Hi everyone.
I’m confused.
The example that used to work @GitHub - SciML/NeuralPDE.jl: Physics-Informed Neural Networks (PINN) and Deep BSDE Solvers of Differential Equations for Scientific Machine Learning (SciML) accelerated simulation
does not work anymore because of the common error of Zygote
ERROR: Mutating arrays is not supported – called setindex!(Vector{Float64}, …)
This error occurs when you ask Zygote to perform operations that mutate the elements of
the elements of arrays in place (e.g. setting values with x .= …).
Possible fixes:
- avoid mutating operations (preferred)
- or read the documentation and solutions for this bug
Limitations · Zygote
I tried to see how to fix this but didn’t succeed.
So I thought, what about forcing Lux to use Enzyme instead of Zygote?
So I added the code example using Enzyme.
but nothing happened at all.
If any of you can help me, ask Lux to use Enzyme instead of Zygote. Maybe I can see why this is happening when this example used to run perfectly.
Naceur