Method
__init__
(
self,
in_channels,
out_channels,
kernel_size,
stride=1,
dilation=1,
groups=1,
bias=True,
)
Source from the content-addressed store, hash-verified
| 546 | """ |
| 547 | |
| 548 | def __init__( |
| 549 | self, |
| 550 | in_channels, |
| 551 | out_channels, |
| 552 | kernel_size, |
| 553 | stride=1, |
| 554 | dilation=1, |
| 555 | groups=1, |
| 556 | bias=True, |
| 557 | ): |
| 558 | self.__padding = (kernel_size - 1) * dilation |
| 559 | |
| 560 | super(TorchCausalConv1d, self).__init__( |
| 561 | in_channels, |
| 562 | out_channels, |
| 563 | kernel_size=kernel_size, |
| 564 | stride=stride, |
| 565 | padding=self.__padding, |
| 566 | dilation=dilation, |
| 567 | groups=groups, |
| 568 | bias=bias, |
| 569 | ) |
| 570 | |
| 571 | def forward(self, input): |
| 572 | result = super(TorchCausalConv1d, self).forward(input) |
Callers
nothing calls this directly
Tested by
no test coverage detected