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

Use scandir in _find_classes (#557) #559

Merged
merged 2 commits into from
Jul 27, 2018
Merged

Conversation

da-wad
Copy link

@da-wad da-wad commented Jul 27, 2018

Following PEP 471 I found the os.scandir() function was faster for initializing a DatasetFolder in cases with many (10^5) classes. Fixes issue #557

@soumith soumith merged commit d6c7900 into pytorch:master Jul 27, 2018
@soumith
Copy link
Member

soumith commented Jul 27, 2018

thanks @da-wad !

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.

2 participants