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 send_to_device with non-tensor data #177

Merged
merged 2 commits into from
Sep 29, 2021
Merged

Fix send_to_device with non-tensor data #177

merged 2 commits into from
Sep 29, 2021

Conversation

sgugger
Copy link
Collaborator

@sgugger sgugger commented Sep 29, 2021

By mistake, the refactor in #164 introduced a bug in send_to_device and made it error when non-tensor data is passed. This PR fixes that.

Fixes #176

@sgugger sgugger requested a review from LysandreJik September 29, 2021 13:21
Copy link
Member

@LysandreJik LysandreJik left a comment

Choose a reason for hiding this comment

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

Looks good to me - could a test catch this issue?

@sgugger sgugger merged commit 120b82b into main Sep 29, 2021
@sgugger sgugger deleted the fix_176 branch September 29, 2021 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants