(self, x, is_init=True, residual=None)
| 452 | self.is_first_run = True |
| 453 | |
| 454 | def forward(self, x, is_init=True, residual=None): |
| 455 | if self.is_first_run: |
| 456 | self.is_first_run = False |
| 457 | |
| 458 | if self.time_causal_padding == (1, 1, 1, 1, 2, 0): |
| 459 | pass |
| 460 | else: |
| 461 | x = nn.functional.pad(x, self.time_causal_padding).contiguous() |
| 462 | |
| 463 | x = base_conv3d_channel_last(x, self.conv, residual=residual) |
| 464 | return x |
| 465 | |
| 466 | class AttnBlock(nn.Module): |
| 467 | def __init__(self, |
nothing calls this directly
no test coverage detected