MCPcopy Create free account
hub / github.com/JunlinHan/DCLGAN / parallelize

Method parallelize

models/base_model.py:103–107  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

101 self.print_networks(opt.verbose)
102
103 def parallelize(self):
104 for name in self.model_names:
105 if isinstance(name, str):
106 net = getattr(self, 'net' + name)
107 setattr(self, 'net' + name, torch.nn.DataParallel(net, self.opt.gpu_ids))
108
109 def data_dependent_initialize(self, data):
110 pass

Callers 2

train.pyFile · 0.80
test.pyFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected