(self, input)
| 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 | |
| 162 | netG = Generator(ngpu).to(device) |
nothing calls this directly
no outgoing calls
no test coverage detected