We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 70b6590 + 7ab8ed1 commit 03a6eccCopy full SHA for 03a6ecc
torchcomp/__init__.py
@@ -89,7 +89,7 @@ def avg(rms: torch.Tensor, avg_coef: Union[torch.Tensor, float]):
89
assert torch.all(avg_coef > 0) and torch.all(avg_coef <= 1)
90
91
return sample_wise_lpc(
92
- rms * avg_coef,
+ rms * avg_coef.unsqueeze(1),
93
avg_coef[:, None, None].broadcast_to(rms.shape + (1,)) - 1,
94
)
95
0 commit comments