MCPcopy Create free account
hub / github.com/pytorch/examples / forward

Method forward

dcgan/main.py:153–159  ·  view source on GitHub ↗
(self, input)

Source from the content-addressed store, hash-verified

151 )
152
153 def forward(self, input):
154
155 if (input.is_cuda or input.is_xpu) and self.ngpu > 1:
156 output = nn.parallel.data_parallel(self.main, input, range(self.ngpu))
157 else:
158 output = self.main(input)
159 return output
160
161
162netG = Generator(ngpu).to(device)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected