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

Method __init__

Code/net/Generator.py:27–32  ·  view source on GitHub ↗
(self,channels)

Source from the content-addressed store, hash-verified

25
26class ResidualBlock(torch.nn.Module):
27 def __init__(self,channels):
28 super(ResidualBlock, self).__init__()
29 self.block = torch.nn.Sequential(
30 ConvBlock(channels,channels,kernel_size = 3,padding = 1),
31 ConvBlock(channels,channels,use_act=False,kernel_size = 3,padding = 1),
32 )
33 def forward(self,x):
34 return x + self.block(x)
35

Callers

nothing calls this directly

Calls 2

ConvBlockClass · 0.70
__init__Method · 0.45

Tested by

no test coverage detected