MCPcopy Create free account
hub / github.com/KeepTryingTo/Pytorch-GAN / forward

Method forward

SRGAN/models.py:28–30  ·  view source on GitHub ↗
(self,x)

Source from the content-addressed store, hash-verified

26 if discriminator else torch.nn.PReLU(num_parameters=out_channels)
27 )
28 def forward(self,x):
29 out = self.act(self.bn(self.cnn(x))) if self.use_act else self.bn(self.cnn(x))
30 return out
31
32#采用PixelShuffle进行上采样
33class UpsampleBlock(torch.nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected