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

what's the main difference between single gpu and data parallel? #2

Open
HoracceFeng opened this issue Jul 25, 2019 · 1 comment
Open

Comments

@HoracceFeng
Copy link

Hi, I just wonder the difference of train script between "single_gpu" and "data_parallel", since they seem like have the same structure and module, also using the same API.

By the way, would you introduce how to use the distributed one? I am a little bit confuse about how to set the url and how to start using this.

Thx.

@nanwei1
Copy link

nanwei1 commented Sep 30, 2019

os.environ["CUDA_VISIBLE_DEVICES"] = gpu_devices
net = nn.DataParallel(net)

I suggest people to take some effort themselves looking at the code before posting questions. Not a frequent pytorch user myself but this should not be difficult.

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