Skip to content

Commit

Permalink
Apply black
Browse files Browse the repository at this point in the history
  • Loading branch information
Emrys365 committed May 7, 2022
1 parent 5ea4e08 commit 9e8e753
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions espnet2/enh/loss/wrappers/pit_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,7 @@ def pair_loss(permutation):
new_v = new_v.view(B, L // num_spk, num_spk, *rest).mean(2)
if new_v.dim() > 2:
shapes = [1 for _ in rest]
perm0 = perm_.view(perm_.shape[0], 1, *shapes).expand(
-1, -1, *rest
)
perm0 = perm_.view(perm_.shape[0], 1, *shapes).expand(-1, -1, *rest)
else:
perm0 = perm_.unsqueeze(1)
stats[k] = new_v.gather(1, perm0.to(device=new_v.device)).unbind(1)
Expand Down

0 comments on commit 9e8e753

Please sign in to comment.