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

The Subset class imported from torch.utils.data isn't Configurable #85

Closed
Oxer11 opened this issue Apr 3, 2022 · 1 comment
Closed

Comments

@Oxer11
Copy link
Contributor

Oxer11 commented Apr 3, 2022

In patch.py, we manually modify all datasets in the torch.utils.data.dataset to make it configurable. However, the line below only sets the attributes of torch.utils.data.dataset not torch.utils.data, which leaves all Dataset imported from the latter unchanged. There is a similar problem for torch.optim.lr_scheduler.

setattr(dataset, name, cls)

@KiddoZhu
Copy link
Contributor

KiddoZhu commented Apr 3, 2022

Fixed in f29dc55

@KiddoZhu KiddoZhu closed this as completed Apr 3, 2022
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

No branches or pull requests

2 participants