Skip to content

Conversation

@charlifu
Copy link

@charlifu charlifu commented Aug 6, 2024

Pytorch caches the memory for unused tensor after each padding, use torch.cuda.empty_cache() to release the memory.

@charlifu charlifu requested a review from shajrawi August 6, 2024 19:15
Copy link

@shajrawi shajrawi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ship it

@charlifu charlifu merged commit 98f31cd into main Aug 6, 2024
@gshtras gshtras deleted the charlifu/fix_padding branch August 20, 2024 18:34
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.

3 participants