Method
__init__
(self, in_channels, up_scale)
Source from the content-addressed store, hash-verified
| 168 | |
| 169 | class UpsampleBLock(nn.Layer): |
| 170 | def __init__(self, in_channels, up_scale): |
| 171 | super(UpsampleBLock, self).__init__() |
| 172 | self.conv = nn.Conv2D( |
| 173 | in_channels, in_channels * up_scale**2, kernel_size=3, padding=1 |
| 174 | ) |
| 175 | |
| 176 | self.pixel_shuffle = nn.PixelShuffle(up_scale) |
| 177 | self.prelu = mish() |
| 178 | |
| 179 | def forward(self, x): |
| 180 | x = self.conv(x) |
Callers
nothing calls this directly
Tested by
no test coverage detected