carpedm20 / carpedm20/ENAS-pytorch

gpu_nums> 1

Open
#16 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2.7k
Forks
486
PR merge metrics
No merged PRs in 30d

Description

If want to run on multi gpu, when self.shared is forwarding , should use Modulelist's data (like self._w_h(which is a type of ModuleList)).
Otherwise will raise an error :( RuntimeError: tensors are on different GPUs) , beacuse when self.forward(xx), the parameter are used stored in list data structure, and would not replicate to another gpu.

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate the self.shared forwarding path and inspect how self._w_h and other ModuleList data are accessed. Reproduce the issue with gpu_nums > 1 and a forward pass, then verify that multi-GPU execution no longer raises a tensors-on-different-GPUs error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.