Skip to content

Commit

Permalink
fix a small bug thanks to @Lunariz
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Feb 9, 2023
1 parent 6ed3aad commit c8fe964
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions audiolm_pytorch/soundstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ def __init__(

def forward(self, x):
weight, bias = map(torch.view_as_complex, (self.weight, self.bias))
print(x.dtype, weight.dtype, x.device, weight.device)
return F.conv2d(x, weight, bias, stride = self.stride, padding = self.padding)

def ComplexSTFTResidualUnit(chan_in, chan_out, strides):
Expand Down
3 changes: 1 addition & 2 deletions audiolm_pytorch/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -951,8 +951,7 @@ def __init__(
folder,
max_length = data_max_length,
target_sample_hz = soundstream.target_sample_hz,
seq_len_multiple_of = soundstream.seq_len_multiple_of,
normalize = dataset_normalize
seq_len_multiple_of = soundstream.seq_len_multiple_of
)

self.ds_fields = None
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 = 'audiolm-pytorch',
packages = find_packages(exclude=[]),
version = '0.11.15',
version = '0.11.16',
license='MIT',
description = 'AudioLM - Language Modeling Approach to Audio Generation from Google Research - Pytorch',
author = 'Phil Wang',
Expand Down

0 comments on commit c8fe964

Please sign in to comment.