Skip to content

Fix test for converting tensor to proper dtype - #983

Merged
sgugger merged 2 commits into
mainfrom
fix_set_tensor_to_device
Jan 18, 2023
Merged

Fix test for converting tensor to proper dtype#983
sgugger merged 2 commits into
mainfrom
fix_set_tensor_to_device

Conversation

@sgugger

@sgugger sgugger commented Jan 18, 2023

Copy link
Copy Markdown
Collaborator

I made a typo in #920 and forgot a not while copy-pasting some code 😬
This PR fixes that.

@sgugger
sgugger requested a review from muellerzr January 18, 2023 15:34
@HuggingFaceDocBuilderDev

HuggingFaceDocBuilderDev commented Jan 18, 2023

Copy link
Copy Markdown

The documentation is not available anymore as the PR was closed or merged.

@muellerzr muellerzr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Oopsie! Is it possible we could have written a test to catch this? Or not as much and it's just a silent-never-called bug

@sgugger
sgugger merged commit 7e41361 into main Jan 18, 2023
@sgugger
sgugger deleted the fix_set_tensor_to_device branch January 18, 2023 16:21
@sgugger sgugger mentioned this pull request Jan 18, 2023
4 tasks
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