diff options
author | Jordan Gong <jordan.gong@protonmail.com> | 2021-01-07 14:34:37 +0800 |
---|---|---|
committer | Jordan Gong <jordan.gong@protonmail.com> | 2021-01-07 14:34:37 +0800 |
commit | a27af5dfd58e7b48cf3bd063fa2b4b51ed1e0277 (patch) | |
tree | 08e6b52d4e59506e6890bf67d1922abea97ce116 /utils/dataset.py | |
parent | f1fe77c083f952e81cf80c0b44611fc6057a7882 (diff) |
Change device config and add enable multi-GPU computing
1. Add `disable_acc` switch for disabling accelerator. When it is off, system will automatically choosing accelerator.
2. Enable multi-GPU training using torch.nn.DataParallel
Diffstat (limited to 'utils/dataset.py')
0 files changed, 0 insertions, 0 deletions