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 custom non-mutating memoization #102

Merged
merged 16 commits into from
Aug 6, 2023
Merged

Use custom non-mutating memoization #102

merged 16 commits into from
Aug 6, 2023

Conversation

DrChainsaw
Copy link
Owner

@DrChainsaw DrChainsaw commented May 20, 2023

Not sure if this has any benefits at the moment, so I might just keep it here in case Zygote removes support for Dict mutation or if Diffractor takes off (and does not support Dict mutation).

Seems to be better than the baseline now with some tweaks. There are still a couple of permutations on how to split it up which might be worth trying out.

Need to think about whether removing support for gradient of output! is considered breaking.

I guess it is in the strictest sense so I should probably add back that code if I merge this before any of the two above happen.

Changed my mind on the above. output! is not exported in the main module. It is also very unlikely that someone would need gradients for it since it is more about collecting all activations.

@codecov
Copy link

codecov bot commented May 20, 2023

Codecov Report

Merging #102 (f85beb8) into master (df65628) will increase coverage by 0.40%.
The diff coverage is 98.29%.

@@            Coverage Diff             @@
##           master     #102      +/-   ##
==========================================
+ Coverage   94.16%   94.56%   +0.40%     
==========================================
  Files          14       14              
  Lines        1251     1344      +93     
==========================================
+ Hits         1178     1271      +93     
  Misses         73       73              
Files Changed Coverage Δ
src/precompile.jl 95.45% <95.45%> (ø)
src/NaiveNASlib.jl 100.00% <100.00%> (ø)
src/compgraph.jl 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@DrChainsaw DrChainsaw marked this pull request as ready for review August 6, 2023 20:25
@DrChainsaw DrChainsaw merged commit 852811b into master Aug 6, 2023
7 checks passed
@DrChainsaw DrChainsaw deleted the funcmemo branch August 6, 2023 22:04
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.

None yet

1 participant