You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Eliminate expensive indexing in separate_mtmvn (#2920)
Summary:
Pull Request resolved: #2920Fixes#2919
The batched indexing of the covariance tensor was consuming extraordinary amounts of memory, enough to crash servers with moderately sized tensors.
Profiling `separate_mtmvn` with `n_test=64` (256 was crashing my server) using the repro from the above issue.
Before: Using >7GB ram and taking >800ms
{F1980143884}
After: Using ~5e-5 GB ram and taking ~20ms
{F1980143899}
Reviewed By: Balandat
Differential Revision: D78038356
fbshipit-source-id: c347c45ef666f211521416299a393dc3fa923a0a
0 commit comments