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
OpenDAS
FAST-RNNT
Commits
445aca29
"sgl-kernel/python/vscode:/vscode.git/clone" did not exist on "f13d65a7ea711ed3939917b959bc49b4701d719e"
Unverified
Commit
445aca29
authored
May 03, 2023
by
Yifan Yang
Committed by
GitHub
May 03, 2023
Browse files
Update rnnt_loss.py
parent
2c2dc4b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
fast_rnnt/python/fast_rnnt/rnnt_loss.py
fast_rnnt/python/fast_rnnt/rnnt_loss.py
+6
-4
No files found.
fast_rnnt/python/fast_rnnt/rnnt_loss.py
View file @
445aca29
...
...
@@ -770,10 +770,12 @@ def do_rnnt_pruning(
# (B, T, s_range, C)
lm_pruning
=
torch
.
gather
(
lm
.
unsqueeze
(
1
).
expand
((
B
,
T
,
S
+
1
,
C
)),
dim
=
2
,
index
=
ranges
.
reshape
((
B
,
T
,
s_range
,
1
)).
expand
((
B
,
T
,
s_range
,
C
)),
)
lm
,
dim
=
1
,
index
=
ranges
.
reshape
(
B
,
T
*
s_range
,
1
).
expand
(
(
B
,
T
*
s_range
,
decoder_dim
)
),
).
reshape
(
B
,
T
,
s_range
,
decoder_dim
)
return
am_pruning
,
lm_pruning
...
...
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