Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
hehl2
Torchaudio
Commits
d6ae55c6
"tests/hooks/__init__.py" did not exist on "f15f0cd2b50df9823c295f82f5f3e7fc8bf2cdcf"
Unverified
Commit
d6ae55c6
authored
Jul 08, 2021
by
Caroline Chen
Committed by
GitHub
Jul 08, 2021
Browse files
Remove gradient variable from RNNTL Python code (#1616)
parent
7f591c62
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
torchaudio/prototype/rnnt_loss.py
torchaudio/prototype/rnnt_loss.py
+1
-1
No files found.
torchaudio/prototype/rnnt_loss.py
View file @
d6ae55c6
...
@@ -53,7 +53,7 @@ def rnnt_loss(
...
@@ -53,7 +53,7 @@ def rnnt_loss(
if
blank
<
0
:
# reinterpret blank index if blank < 0.
if
blank
<
0
:
# reinterpret blank index if blank < 0.
blank
=
logits
.
shape
[
-
1
]
+
blank
blank
=
logits
.
shape
[
-
1
]
+
blank
costs
,
gradients
=
torch
.
ops
.
torchaudio
.
rnnt_loss
(
costs
,
_
=
torch
.
ops
.
torchaudio
.
rnnt_loss
(
logits
=
logits
,
logits
=
logits
,
targets
=
targets
,
targets
=
targets
,
logit_lengths
=
logit_lengths
,
logit_lengths
=
logit_lengths
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment