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

Support namedtuple for "convert_tensor" #740

Merged
merged 4 commits into from
Jan 28, 2020
Merged

Conversation

hoangmit
Copy link
Contributor

@hoangmit hoangmit commented Jan 28, 2020

convert_tensor support Map, List, but not namedtuple.

This change is similar to: https://github.com/pytorch/pytorch/blob/master/torch/utils/data/_utils/pin_memory.py#L45

Fixes #

Description:

Check list:

  • New tests are added (if a new feature is added)
  • New doc strings: description and/or example code are in RST format
  • Documentation is updated (if required)

@vfdev-5
Copy link
Collaborator

vfdev-5 commented Jan 28, 2020

@hoangmit thanks for the PR ! Looks good.

@vfdev-5 vfdev-5 merged commit ea83407 into pytorch:master Jan 28, 2020
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