Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion torchcomp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def avg(rms: torch.Tensor, avg_coef: Union[torch.Tensor, float]):
assert torch.all(avg_coef > 0) and torch.all(avg_coef <= 1)

return sample_wise_lpc(
rms * avg_coef,
rms * avg_coef.unsqueeze(1),
avg_coef[:, None, None].broadcast_to(rms.shape + (1,)) - 1,
)

Expand Down