Debugging Zygote: ERROR: Mutating arrays is not supported

Zygote.jacobian happens to be one of those incompatible functions: Jacobian in loss function · Issue #953 · FluxML/Zygote.jl · GitHub