We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4613c4c commit a7a613bCopy full SHA for a7a613b
torchcomp/__init__.py
@@ -197,5 +197,5 @@ def limiter_gain(
197
zi = x.new_zeros(x.shape[0])
198
lt = db2amp(threshold)
199
x_peak = compressor_core(x.abs(), zi, rt, at)
200
- f = F.relu(1 - lt / x_peak).neg() + 1
+ f = F.relu(1 - lt[:, None] / x_peak).neg() + 1
201
return compressor_core(f, torch.ones_like(zi), at, rt)
0 commit comments