(self, input)
| 192 | ) |
| 193 | |
| 194 | def forward(self, input): |
| 195 | if (input.is_cuda or input.is_xpu) and self.ngpu > 1: |
| 196 | output = nn.parallel.data_parallel(self.main, input, range(self.ngpu)) |
| 197 | else: |
| 198 | output = self.main(input) |
| 199 | |
| 200 | return output.view(-1, 1).squeeze(1) |
| 201 | |
| 202 | |
| 203 | netD = Discriminator(ngpu).to(device) |
nothing calls this directly
no outgoing calls
no test coverage detected