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

Method __init__

ProGAN/model.py:75–81  ·  view source on GitHub ↗
(self, in_channels, out_channels, use_pixelnorm=True)

Source from the content-addressed store, hash-verified

73
74class ConvBlock(nn.Module):
75 def __init__(self, in_channels, out_channels, use_pixelnorm=True):
76 super(ConvBlock, self).__init__()
77 self.use_pn = use_pixelnorm
78 self.conv1 = WSConv2d(in_channels, out_channels)
79 self.conv2 = WSConv2d(out_channels, out_channels)
80 self.leaky = nn.LeakyReLU(0.2)
81 self.pn = PixelNorm()
82
83 def forward(self, x):
84 x = self.leaky(self.conv1(x))

Callers

nothing calls this directly

Calls 3

WSConv2dClass · 0.70
PixelNormClass · 0.70
__init__Method · 0.45

Tested by

no test coverage detected