victoresque / pytorch-template

PyTorch deep learning projects made easy.
MIT License
4.7k stars 1.08k forks source link

Multi-GPU support #14

Closed sduxzh closed 5 years ago

sduxzh commented 6 years ago

Hello, Please check the code.

Best wishes Snail

sduxzh commented 6 years ago

Hello, Please check the code.

Best wishes Snail

borgesa commented 6 years ago

Hi,

Nice @sduxzh!

Some comments/questions follow below.

TensorboardX: I believe visualization/writer (TensorboardX) should be separated from 'BaseTrainer'. Maybe in its own module that is imported by BaseTrainer if the configuration file asks for it.

The above will also enable users to customize their visualization extensively according to their needs (say if they wish to show example output in a GAN model every n'th epoch).

I hope my proposal is clear, if not, I can provide either a proposal or more details on Monday.

Multi-GPU: I have not yet worked much with multi-gpu myself, but I have a couple questions:

borgesa commented 6 years ago

What do we do with this pull request, then?

@SunQpark has separately implemented TensorboardX (in alignment with the proposal I wrote above).

Multi GPU is still not handled.

SunQpark commented 5 years ago

I have handled tensorboardX support with other PR #17 and Multi-GPU implementation in this PR does not cover distributing data into machines. Maybe Multi-GPU support can be done later. I feel sorry for not merging this PR @sduxzh, but I will close this PR.