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

PyTorch 1.13 Compatibility #3828

Merged
merged 1 commit into from Nov 1, 2022
Merged

Conversation

warner-benjamin
Copy link
Collaborator

PyTorch 1.13 introduced a subclassed Tensor formatting issue. A potential workaround is pytorch/pytorch#82766 which I use for the fastai TensorBase compatibility patch in torch_core.

PyTorch 1.13 also adds "differentiable" as another optim hyperparameter and it looks like PyTorch 1.14 will add "fused" for at least a subset of optimizers. Since I modified OptimWrapper not to error out in #3821, I changed the OptimWrapper tests to only check for the subset of hyperparameters fastai cares about.

Tested locally running the cuda and slow flags without issue.

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@jph00 jph00 merged commit dfc7d18 into fastai:master Nov 1, 2022
@jph00
Copy link
Member

jph00 commented Nov 1, 2022

Thanks so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants