Method
__init__
(
self,
in_channels: int,
out_channels: int,
)
Source from the content-addressed store, hash-verified
| 359 | """ |
| 360 | |
| 361 | def __init__( |
| 362 | self, |
| 363 | in_channels: int, |
| 364 | out_channels: int, |
| 365 | ) -> None: |
| 366 | super().__init__() |
| 367 | self.in_channels = in_channels |
| 368 | self.out_channels = out_channels |
| 369 | self.deconv = nn.ConvTranspose2d(in_channels, out_channels, kernel_size=4, stride=2, padding=1) |
| 370 | |
| 371 | def forward(self, x: torch.Tensor) -> torch.Tensor: |
| 372 | r"""The forward method of the `UpSample` class.""" |
Callers
nothing calls this directly
Tested by
no test coverage detected