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

Method forward

cnn-CGANCode/models.py:72–79  ·  view source on GitHub ↗
(self,input,label)

Source from the content-addressed store, hash-verified

70 )
71 )
72 def forward(self,input,label):
73 x = self.conv_layer_1(input)
74 y = self.conv_layer_2(label)
75 x = torch.cat([x,y], dim = 1)
76 x = self.conv_layer_3(x)
77 x = self.conv_layer_4(x)
78 out = torch.tanh(self.final_conv_layer(x))
79 return out
80
81class Discriminator(torch.nn.Module):
82 def __init__(self,img_channels = 1,out_channels = 1,d = 128):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected