MCPcopy Index your code
hub / github.com/tensorpack/tensorpack / SyncMultiGPUTrainer

Function SyncMultiGPUTrainer

tensorpack/train/trainers.py:108–116  ·  view source on GitHub ↗

Return a default multi-GPU trainer, if you don't care about the details. It may not be the most efficient one for your task. Args: gpus (list[int]): list of GPU ids.

(gpus)

Source from the content-addressed store, hash-verified

106
107
108def SyncMultiGPUTrainer(gpus):
109 """
110 Return a default multi-GPU trainer, if you don't care about the details.
111 It may not be the most efficient one for your task.
112
113 Args:
114 gpus (list[int]): list of GPU ids.
115 """
116 return SyncMultiGPUTrainerParameterServer(gpus, ps_device='cpu')
117
118
119class AsyncMultiGPUTrainer(SingleCostTrainer):

Callers 3

hed.pyFile · 0.85
steering-filter.pyFile · 0.85
inception-bn.pyFile · 0.85

Tested by

no test coverage detected