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

Memory leak fix when only extracting cls token #150

Merged
merged 1 commit into from
Aug 4, 2023
Merged

Conversation

jonasd4
Copy link
Collaborator

@jonasd4 jonasd4 commented Aug 4, 2023

  • Fixes memory leak when extracting the cls token of a model.
  • We need an additional clone when we create a view on the tensor.

@jonasd4 jonasd4 requested a review from LukasMut August 4, 2023 10:17
@LukasMut LukasMut merged commit 8a3a416 into master Aug 4, 2023
4 checks passed
@LukasMut LukasMut deleted the mem_leak_fix branch August 4, 2023 10:28
@LukasMut LukasMut added bug Something isn't working cleanup Deprecate or refactor code labels Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cleanup Deprecate or refactor code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants