"git@developer.sourcefind.cn:change/sglang.git" did not exist on "51ac297ace2256a77a80ee39ebecc28d23d44567"
Unverified Commit d6ae55c6 authored by Caroline Chen's avatar Caroline Chen Committed by GitHub
Browse files

Remove gradient variable from RNNTL Python code (#1616)

parent 7f591c62
......@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment