MCPcopy Create free account
hub / github.com/dangf15/THLNet / __init__

Method __init__

nets/dfnet_block.py:176–182  ·  view source on GitHub ↗
(self, in_channels, out_channels, kernel_size, r=1)

Source from the content-addressed store, hash-verified

174
175class SPConvTranspose2d(nn.Module):
176 def __init__(self, in_channels, out_channels, kernel_size, r=1):
177 # upconvolution only along second dimension of image
178 # Upsampling using sub pixel layers
179 super(SPConvTranspose2d, self).__init__()
180 self.out_channels = out_channels
181 self.conv = nn.Conv2d(in_channels, out_channels * r, kernel_size=kernel_size, stride=(1, 1))
182 self.r = r
183
184 def forward(self, x):
185 out = self.conv(x)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected