Commit 6810d515 authored by Phil Wang's avatar Phil Wang
Browse files

remove padding in causal convtranspose1d thanks to @NPN for catching that

parent 6bd8b8fa
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -156,7 +156,6 @@ class CausalConvTranspose1d(nn.Module):
    def forward(self, x):
        n = x.shape[-1]

        x = F.pad(x, (self.padding, 0))
        out = self.conv(x)
        out = out[..., :(n * self.upsample_factor)]