x: [bs, C, T_size] cache: [bs, C, T_size-1]
(self, x, cache)
| 38 | bias = bias) |
| 39 | |
| 40 | def forward(self, x, cache): |
| 41 | """ |
| 42 | x: [bs, C, T_size] |
| 43 | cache: [bs, C, T_size-1] |
| 44 | """ |
| 45 | inp = torch.cat([cache, x], dim=-1) |
| 46 | oup = self.Conv1d(inp) |
| 47 | out_cache = inp[..., 1:] |
| 48 | return oup, out_cache |
| 49 | |
| 50 | |
| 51 | class StreamConv2d(nn.Module): |
nothing calls this directly
no outgoing calls
no test coverage detected