-
-
Notifications
You must be signed in to change notification settings - Fork 611
Recurrent 3d interface uses a lot of memory #1872
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
Comments
Thanks for testing this, I think it's a good time to think about |
That definitely fixes this. With CPU n=1000, t=64
forward
819.105 ms (397 allocations: 976.58 MiB)
backward
1.586 s (4208 allocations: 2.37 GiB)
forw and back
2.658 s (6147 allocations: 3.57 GiB) |
Those are some pretty good improvements over the normal interface! I'm curious why the amount of memory allocated is slightly higher given that the count is lower (especially for forward + backward, what in the world is going on there!) but figuring that out now is not important. |
Yeah. Learning about the issues using views in zygote has really opened my eyes to some things I wasn't paying attention to before. Thanks for pointing to |
Uh oh!
There was an error while loading. Please reload this page.
After making the recurrent performance measure in #1871 , I noticed that the memory usage of the 3d interface from #1686 uses significantly more memory than the normal interface. This likely has to do with creating views to walk across the temporal dimension. This wasn't an issue for smaller networks (which is what we mostly used to test), but starts becoming problematic as things get larger/the sequence is longer. Below are the benchmark results
Normal Interface:
3d Interface:
The text was updated successfully, but these errors were encountered: