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

cannot import name '_unflatten_tensors' #4

Closed
stefan-it opened this issue Dec 5, 2017 · 2 comments
Closed

cannot import name '_unflatten_tensors' #4

stefan-it opened this issue Dec 5, 2017 · 2 comments

Comments

@stefan-it
Copy link

stefan-it commented Dec 5, 2017

Hi,

data_parallel.py" uses the following import from pytorch:

from torch._utils import _unflatten_tensors

This function was recently removed with this commit so it is not possibly to run the code with the latest PyTorch version.

@raulpuric
Copy link
Contributor

Ahh yes sorry, the old version of pytorch we used had some bugs with dataparallel.
v0.3.0 seems to have fixed them though.
Tentatively updated code to work with the most recent version.
Leaving this open for now. Let me know if it worked for you.

@stefan-it
Copy link
Author

data_parallel.py was removed with 806e542, so I'm closing here :)

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

No branches or pull requests

2 participants