Method
__init__
(
self,
in_channels: int,
out_channels: int,
)
Source from the content-addressed store, hash-verified
| 323 | """ |
| 324 | |
| 325 | def __init__( |
| 326 | self, |
| 327 | in_channels: int, |
| 328 | out_channels: int, |
| 329 | ) -> None: |
| 330 | super().__init__() |
| 331 | self.in_channels = in_channels |
| 332 | self.out_channels = out_channels |
| 333 | self.deconv = nn.ConvTranspose2d(in_channels, out_channels, kernel_size=4, stride=2, padding=1) |
| 334 | |
| 335 | def forward(self, x: torch.Tensor) -> torch.Tensor: |
| 336 | r"""The forward method of the `UpSample` class.""" |
Callers
nothing calls this directly
Tested by
no test coverage detected