Method
__init__
(self, channels, out_channels=None, ks=5)
Source from the content-addressed store, hash-verified
| 120 | class TransposedUpsample(nn.Module): |
| 121 | 'Learned 2x upsampling without padding' |
| 122 | def __init__(self, channels, out_channels=None, ks=5): |
| 123 | super().__init__() |
| 124 | self.channels = channels |
| 125 | self.out_channels = out_channels or channels |
| 126 | |
| 127 | self.up = nn.ConvTranspose2d(self.channels,self.out_channels,kernel_size=ks,stride=2) |
| 128 | |
| 129 | def forward(self,x): |
| 130 | return self.up(x) |
Callers
nothing calls this directly
Tested by
no test coverage detected