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 pin_memory=True breaking (batch) Transforms #3606

Merged
merged 2 commits into from
Mar 21, 2022
Merged

Conversation

johan12345
Copy link
Contributor

A simple workaround that fixes #2795.

The reason for the bug is that PyTorch's pin_memory (v1.10.0, v1.11.0) converts tuples into lists - so we need to convert back to a tuple.

@johan12345 johan12345 requested a review from jph00 as a code owner March 14, 2022 11:27
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@jph00
Copy link
Member

jph00 commented Mar 14, 2022

Many thanks for the PR. Could you please take a look at the CI test failure?

@johan12345
Copy link
Contributor Author

johan12345 commented Mar 21, 2022

Sorry for the late reply! I think 958fdcd should fix the test.

@jph00
Copy link
Member

jph00 commented Mar 21, 2022

Many thanks!

@jph00 jph00 merged commit 773d5b5 into fastai:master Mar 21, 2022
@jph00 jph00 added the bug label Mar 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pin_memory=True breaks (batch) Transforms
2 participants