-
-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error from gradient of vcat(x...)
- appeared in v0.6.45
#1417
Comments
0.6.45 is when we switched over to ChainRules for the cat functions: #1277. TBD whether ChainRules projection isn't being flexible enough or if Zygote is passing invalid inputs to it. |
I think this is #599, |
vcat(x...)
- appeared in v0.6.45
I am running into this issue while trying to implement DenseNet. Since |
Can you simplify the example, or make other ones?
No, I think those are getting fixed...
The
|
Differentiating through this is what causes the error for me: function (m::DenseBlock)(x)
input = [x]
for layer in m.layers
x = layer(input)
input = vcat(input, [x])
end
return cat_channels(input...)
end This is the only place |
I think we should be implementing DenseNet differently anyhow (toss up a PR if you want some ideas there), so this shouldn't block Metalhead at least. |
In GTorlai/PastaQ.jl#300 (comment) a bug was detected that I have found to stem from a problem in the differentiation of vcat. I created a minimal example to reproduce the error:
this code used to work in version Zygote@0.6.44 but does not work as early as Zygote@0.6.45 until Zygote@0.6.60.
The text was updated successfully, but these errors were encountered: