Skip to content

Commit

Permalink
fix: length typo
Browse files Browse the repository at this point in the history
  • Loading branch information
flavioschneider committed Dec 6, 2022
1 parent c99ee50 commit e9629a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cqt_pytorch/cqt.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def decode(self, transform: Tensor) -> Tensor:
frequencies = torch.zeros(b, c, length).to(transform)
frequencies.scatter_add_(
dim=-1,
index=self.windows_range_indices.view(-1).expand(b, c, -1) % l, # type: ignore # noqa
index=self.windows_range_indices.view(-1).expand(b, c, -1) % length, # type: ignore # noqa
src=crops_unwindowed.view(b, c, -1),
)
waveform = torch.fft.ifft(frequencies)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
setup(
name="cqt-pytorch",
packages=find_packages(exclude=[]),
version="0.0.1",
version="0.0.2",
license="MIT",
description="CQT Pytorch",
long_description_content_type="text/markdown",
Expand Down

0 comments on commit e9629a6

Please sign in to comment.