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 MNIST url redirection #2775

Merged
merged 2 commits into from
Mar 4, 2021
Merged

Fix MNIST url redirection #2775

merged 2 commits into from
Mar 4, 2021

Conversation

fritzo
Copy link
Member

@fritzo fritzo commented Mar 4, 2021

Blocking #2774

This updates our rerouting of torchvision.datasets.mnist.MNIST after that class was moved in a recent torchvision. This also refactors from a sketchy torch_patch to a safer pyro-local subclass MNIST of the upstream class MNIST.

This also updates to use torch==1.8.0 and torchvision==0.9.0 test releases

@fritzo fritzo added this to the 1.6 release milestone Mar 4, 2021
@fehiepsi
Copy link
Member

fehiepsi commented Mar 4, 2021

@fritzo Probably we need to pump torchvision to recent nightly build due to the recent mnist download issue.


@patch_dependency('torchvision.datasets.MNIST', torchvision)
class _MNIST(getattr(MNIST, '_pyro_unpatched', MNIST)):
class MNIST(datasets.MNIST):
Copy link
Member

Choose a reason for hiding this comment

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

Thanks for getting rid of this!

@fehiepsi fehiepsi merged commit 784072f into dev Mar 4, 2021
@fritzo fritzo deleted the mv-torchvision-mnist branch September 27, 2021 14:46
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.

3 participants