Method
__init__
(
self,
in_channels,
with_conv,
compress_time=False,
)
Source from the content-addressed store, hash-verified
| 432 | |
| 433 | class Upsample3D(nn.Module): |
| 434 | def __init__( |
| 435 | self, |
| 436 | in_channels, |
| 437 | with_conv, |
| 438 | compress_time=False, |
| 439 | ): |
| 440 | super().__init__() |
| 441 | self.with_conv = with_conv |
| 442 | if self.with_conv: |
| 443 | self.conv = torch.nn.Conv2d(in_channels, in_channels, kernel_size=3, stride=1, padding=1) |
| 444 | self.compress_time = compress_time |
| 445 | |
| 446 | def forward(self, x): |
| 447 | if self.compress_time: |
Tested by
no test coverage detected