Skip to content

Commit

Permalink
Remove gradient variable from RNNTL Python code (pytorch#1616)
Browse files Browse the repository at this point in the history
  • Loading branch information
Caroline Chen authored Jul 8, 2021
1 parent 7f591c6 commit d6ae55c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchaudio/prototype/rnnt_loss.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def rnnt_loss(
if blank < 0: # reinterpret blank index if blank < 0.
blank = logits.shape[-1] + blank

costs, gradients = torch.ops.torchaudio.rnnt_loss(
costs, _ = torch.ops.torchaudio.rnnt_loss(
logits=logits,
targets=targets,
logit_lengths=logit_lengths,
Expand Down

0 comments on commit d6ae55c

Please sign in to comment.