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

fix: only use .cpu() in the final step in collector.py to reduce the usage of cpu #2071

Merged
merged 1 commit into from
Aug 29, 2024

Conversation

HotBento
Copy link
Contributor

@HotBento HotBento commented Aug 9, 2024

只在最终get_data_struct将tensor转移到cpu,极大节约cpu占用。

只在最终get_data_struct将tensor转移到cpu,极大节约cpu占用。
@HotBento HotBento changed the title Update collector.py fix: only use .cpu() in the final step in collector.py to reduce the usage of cpu Aug 9, 2024
@TayTroye TayTroye merged commit bfe05d0 into RUCAIBox:master Aug 29, 2024
2 checks passed
@HotBento HotBento deleted the patch-2 branch September 3, 2024 07:15
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