8000 `set_to_zero!!` overhead · Issue #552 · chalk-lab/Mooncake.jl · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

set_to_zero!! overhead #552

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

Open
willtebbutt opened this issue Apr 15, 2025 · 0 comments
Open

set_to_zero!! overhead #552

willtebbutt opened this issue Apr 15, 2025 · 0 comments
Labels
enhancement (performance) Would reduce the time it takes to run some bit of the code

Comments

@willtebbutt
Copy link
Collaborator

The overhead of set_to_zero!! appears to be non-trivial on the DPPL examples @penelopeysm implemented for TuringLang/DynamicPPL.jl#882. This is probably not a problem in general, but it does suggest that we ought to avoid calling set_to_zero!! on arguments whose gradients are not required.

@willtebbutt willtebbutt added the enhancement (performance) Would reduce the time it takes to run some bit of the code label Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement (performance) Would reduce the time it takes to run some bit of the code
Projects
None yet
Development

No branches or pull requests

1 participant
0