-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
Overload NNlib.within_gradient #136
Conversation
Pull Request Test Coverage Report for Build 3852665337
💛 - Coveralls |
For the first error, guessing it needs something like https://github.com/FluxML/Flux.jl/blob/master/src/layers/normalise.jl#L278-L280. For the second, this is FluxML/NNlib.jl#405. Although we probably ought to make the NNlib side more robust, the conv layer and conv functions shouldn't be seeing |
For the first, I think that after f098dd9 the error is not from within For the second, indeed the error is exactly that, thanks. But why an array of tracked numbers is made I don't know. A smaller example is this: julia> Flux.trainmode!(BatchNorm(3))(param(rand(2,3,1)))
Tracked 2×3×1 Array{Tracker.TrackedReal{Float64}, 3}:
[:, :, 1] =
-0.994696 -0.999959 0.912711
0.994696 0.999959 -0.912711
julia> Flux.testmode!(BatchNorm(3))(param(rand(2,3,1)))
Tracked 2×3×1 Array{Float64, 3}:
[:, :, 1] =
0.664405 0.684316 0.321995
0.834291 0.463685 0.370812 ... which is #137. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only remaining test failures on nightly are the known kron ones.
Uses FluxML/NNlib.jl#434
Does not solve #133 but the error is different:
Does not make the example from FluxML/Flux.jl#2122 work, but perhaps the failure is unrelated:
Edit: fixed, closes #133, closes #137