Skip to content

Conversation

@ssnl
Copy link
Collaborator

@ssnl ssnl commented Apr 3, 2018

Fixes #6168

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

@ezyang ezyang merged commit efc91d8 into pytorch:master Apr 5, 2018
@ssnl ssnl deleted the dlint branch April 5, 2018 03:51
facebook-github-bot pushed a commit that referenced this pull request May 14, 2020
Summary:
Since the check was added in #6249, one can not pass an iterable as a sampler to the data loader anymore, which was a very handy feature (e.g., #1337). I think the check should be removed for two-fold reasons:
1. It is too strict. There is no reason that it should not be a general iterable.
2. It is inconsistent. In `DataLoader` (the main place where people use samplers), you can pass a general iterable as `batch_sampler` but not `sampler` due to this check.
Pull Request resolved: #38403

Differential Revision: D21555958

Pulled By: soumith

fbshipit-source-id: c7267bb99a31edd8f2750689205d6edc5dab5cff
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.

DataLoader loads whole dataset when it got non-int batch_size

5 participants