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

Replacing torch.einsum() with opt_einsum #125

Merged
merged 1 commit into from
May 23, 2023

Conversation

Heatdh
Copy link
Contributor

@Heatdh Heatdh commented May 23, 2023

Changes:
Previously, the torch.einsum() was causing memory issues, leading to out-of-memory errors during the call of diag function.
Replacing it with the equivalent opt_einsum implementation solved the issue and alleviated memory consumption during runtime.

@aleximmer aleximmer self-requested a review May 23, 2023 15:05
@aleximmer aleximmer merged commit 7b35f17 into aleximmer:main May 23, 2023
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.

2 participants