Skip to content
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

Use NNlib's within_gradient #2152

Merged
merged 1 commit into from
Jan 7, 2023
Merged

Use NNlib's within_gradient #2152

merged 1 commit into from
Jan 7, 2023

Conversation

mcabbott
Copy link
Member

@mcabbott mcabbott commented Jan 6, 2023

Uses FluxML/NNlib.jl#434

Planned to fix issue #2122, but doesn't! This is because ForwardDiff's chunk mode runs the model several times, and each of them updates the history within BatchNorm. Sounds pretty tricky to solve.

But with FluxML/Tracker.jl#136, BatchNorm should work with Tracker. Ideally we'd have multi-AD tests... not here though.

@codecov-commenter
Copy link

codecov-commenter commented Jan 6, 2023

Codecov Report

Base: 86.79% // Head: 83.50% // Decreases project coverage by -3.29% ⚠️

Coverage data is based on head (89e67ca) compared to base (aba285c).
Patch coverage: 36.36% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2152      +/-   ##
==========================================
- Coverage   86.79%   83.50%   -3.30%     
==========================================
  Files          19       19              
  Lines        1477     1479       +2     
==========================================
- Hits         1282     1235      -47     
- Misses        195      244      +49     
Impacted Files Coverage Δ
src/cuda/cudnn.jl 0.00% <ø> (-90.91%) ⬇️
src/deprecations.jl 46.37% <0.00%> (-5.24%) ⬇️
src/layers/normalise.jl 86.33% <100.00%> (-2.63%) ⬇️
src/functor.jl 43.07% <0.00%> (-43.50%) ⬇️
src/layers/conv.jl 87.93% <0.00%> (-0.07%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@mcabbott mcabbott merged commit 7997174 into FluxML:master Jan 7, 2023
@mcabbott mcabbott deleted the within_grad branch January 7, 2023 00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants