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

Method forward

Code/net/Generator.py:63–71  ·  view source on GitHub ↗
(self,x)

Source from the content-addressed store, hash-verified

61 torch.nn.Tanh()
62 )
63 def forward(self,x):
64 x = self.initial(x)
65 for layer in self.down_blocks:
66 x = layer(x)
67 x = self.residual_blocks(x)
68 for layer in self.up_blocks:
69 x = layer(x)
70 out = self.last(x)
71 return out
72
73if __name__ == '__main__':
74 img_channels = 3

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected