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

Method forward

StyleGAN/net/model.py:44–47  ·  view source on GitHub ↗
(self,x)

Source from the content-addressed store, hash-verified

42 torch.nn.init.zeros_(self.bias)
43
44 def forward(self,x):
45 out = self.conv(x * self.scale) + self.bias.view(1,self.bias.shape[0],1,1)
46 # print(out.shape)
47 return out
48
49class WSLinear(torch.nn.Module):
50 def __init__(self,in_features,out_features,gain = 2):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected