pytorch-tvnet icon indicating copy to clipboard operation
pytorch-tvnet copied to clipboard

Multi-GPU?

Open Sino0904 opened this issue 5 years ago • 3 comments

Hello,

Thanks for the code! Can you tell if we can run this code with multi-gpu setup?

Thanks!

Sino0904 avatar Sep 11 '20 01:09 Sino0904

I haven't tried, but I think it can be implemented in multi-gpu setup if the data loader is carefully written.

AmazingAng avatar Sep 15 '20 08:09 AmazingAng

Thanks! I tried the simple torch.nn.DataParallel but due to predefined matrices in the tvnet.py, the code was not working. Can you specifically point out what changes needs to be made in the dataloader?

Sino0904 avatar Sep 18 '20 13:09 Sino0904

Thanks! I tried the simple torch.nn.DataParallel but due to predefined matrices in the tvnet.py, the code was not working. Can you specifically point out what changes needs to be made in the dataloader?

Yes, there are predefined matrices in the network. From my understanding, to use multi-gpu, you need to allocate one copy of the network on each gpu, and then define a dataloader that allocate input to each gpu.

AmazingAng avatar Sep 23 '20 07:09 AmazingAng