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

DataParallel and next(self.parameter) causing problem when used together #3

Open
innocentius opened this issue Apr 26, 2024 · 0 comments

Comments

@innocentius
Copy link

Hey, I'm writing this issue to inform you about an error occured to me when using multi-GPU training.

File "/home/[]/DETM-arxiv/detm.py", line 212, in init_hidden
    weight = next(self.parameters())
StopIteration
StopIteration: Caught StopIteration in replica 0 on device 0.

This is much of a known issue in Pytorch world. As Pytorch are moving away from Dataparallel they would much unlikely to solve this, and the better way to do this is to change the code to suit for the new DistributedDataParallel.

Thanks!

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

1 participant