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

Method forward

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

Source from the content-addressed store, hash-verified

38 self.ps = torch.nn.PixelShuffle(scale_factor)
39 self.act = torch.nn.PReLU(num_parameters=in_channels)
40 def forward(self,x):
41 out = self.act(self.ps(self.conv(x)))
42 return out
43
44
45class ResidualBlock(torch.nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected