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

Whether we maintain two same models in two process #6

Open
LukeLIN-web opened this issue Apr 22, 2022 · 1 comment
Open

Whether we maintain two same models in two process #6

LukeLIN-web opened this issue Apr 22, 2022 · 1 comment

Comments

@LukeLIN-web
Copy link

model = Net()

Whether it isn't useful in any real practice? I think eventually we only need one model
How I can know which GPU place each data replicas and each model?

@LukeLIN-web
Copy link
Author

LukeLIN-web commented Apr 22, 2022

we need use some codes like:

 device = torch.device("cuda:{}".format(rank))
  model = Net().to(device)
 data, target = data.to(device), target.to(device)

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