KEMBAR78
Accept longs in default_collate for dataloader in python 2 by alykhantejani · Pull Request #4001 · pytorch/pytorch · GitHub
Skip to content

Conversation

@alykhantejani
Copy link
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
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