Method
__init__
(
self,
in_channels: int = 4,
out_channels: int = 8,
kernel_size: Union[int, tuple[int]] = 3,
stride: Union[int, tuple[int]] = 1,
padding: Union[int, tuple[int]] = 0,
output_padding: Union[int, tuple[int]] = 0,
groups: int = 1,
bias: bool = True,
dilation: Union[int, tuple[int]] = 1,
)
Source from the content-addressed store, hash-verified
| 42 | |
| 43 | class ConvTranspose1dModule(torch.nn.Module): |
| 44 | def __init__( |
| 45 | self, |
| 46 | in_channels: int = 4, |
| 47 | out_channels: int = 8, |
| 48 | kernel_size: Union[int, tuple[int]] = 3, |
| 49 | stride: Union[int, tuple[int]] = 1, |
| 50 | padding: Union[int, tuple[int]] = 0, |
| 51 | output_padding: Union[int, tuple[int]] = 0, |
| 52 | groups: int = 1, |
| 53 | bias: bool = True, |
| 54 | dilation: Union[int, tuple[int]] = 1, |
| 55 | ): |
| 56 | super().__init__() |
| 57 | |
| 58 | self.conv_transp = torch.nn.ConvTranspose1d( |
| 59 | in_channels=in_channels, |
| 60 | out_channels=out_channels, |
| 61 | kernel_size=kernel_size, |
| 62 | stride=stride, |
| 63 | padding=padding, |
| 64 | output_padding=output_padding, |
| 65 | groups=groups, |
| 66 | bias=bias, |
| 67 | dilation=dilation, |
| 68 | ) |
| 69 | |
| 70 | def forward(self, x): |
| 71 | return self.conv_transp(x) |
Callers
nothing calls this directly
Tested by
no test coverage detected