MCPcopy Create free account
hub / github.com/Zhiyuan-R/Tiger-Diffusion / _transform_

Function _transform_

train_generation.py:587–589  ·  view source on GitHub ↗
(m)

Source from the content-addressed store, hash-verified

585
586 if opt.distribution_type == 'multi': # Multiple processes, single GPU per process
587 def _transform_(m):
588 return nn.parallel.DistributedDataParallel(
589 m, device_ids=[gpu], output_device=gpu)
590
591 torch.cuda.set_device(gpu)
592 model.cuda(gpu)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected