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

Method forward

pix2pix/net/Generator.py:25–28  ·  view source on GitHub ↗
(self,x)

Source from the content-addressed store, hash-verified

23 self.use_dropout = use_dropout
24 self.dropout = torch.nn.Dropout(p=0.5)
25 def forward(self,x):
26 x = self.conv(x)
27 x = self.dropout(x) if self.use_dropout else x
28 return x
29
30class Generator(torch.nn.Module):
31 def __init__(self,in_channles=3,features=64):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected