Open samsartor opened 2 years ago
Even a = identity(x)
is enough to stop this. It seems to sometimes get confused that assignment does not permanently identify variables.
Similar to #1236 and https://github.com/FluxML/Zygote.jl/issues/1198 perhaps.
i have the same error and i dont know how to solve it
Here is the minimal reproducer I came up with
The error on
for f=m.b
isEven though all the dimensions actually match up correctly. Running
t(x)
is just fine.The error goes away with any one of the following:
a + b
with justa
or justb
a = x
witha = copy(x)
(this is the workaround I'm using in my actual code right now)This is with Zygote version 0.6.41