Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
xir4n committed Dec 6, 2024
1 parent e7c5cac commit a0546c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion murenn/dtcwt/nn.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def to_conv1d(self):
device = self.conv1d[0].weight.data.device
T = self.T # Filter length
J = self.dtcwt.J # Number of levels of decomposition
N = 2 ** J * max(T, len(self.dtcwt.g0a)) # Hybrid filter length
N = 2 ** J * max(T, self.dtcwt.g0a.shape[-1]) * 2 # Hybrid filter length

# Generate a zero signal
x = torch.zeros(1, self.in_channels, N).to(device)
Expand Down

0 comments on commit a0546c1

Please sign in to comment.