Skip to content

Accept longs in default_collate for dataloader in python 2#4001

Merged
soumith merged 1 commit intopytorch:masterfrom
alykhantejani:accept_longs_in_dataloader_default_collate
Dec 4, 2017
Merged

Accept longs in default_collate for dataloader in python 2#4001
soumith merged 1 commit intopytorch:masterfrom
alykhantejani:accept_longs_in_dataloader_default_collate

Conversation

@alykhantejani
Copy link
Copy Markdown
Contributor

The default collate function currently throws an error if you return a long from your data loader. This is because in Python 2 int(2**64) automatically converts to type long

@soumith soumith merged commit 5571d01 into pytorch:master Dec 4, 2017
@soumith soumith added the 0.3.1 label Feb 4, 2018
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
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.

4 participants