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
Torchaudio
Commits
df48ba36
Unverified
Commit
df48ba36
authored
Jan 07, 2021
by
Vincent QB
Committed by
GitHub
Jan 07, 2021
Browse files
Fix small typo in transducer (#1162)
parent
463a8b2c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
torchaudio/prototype/transducer.py
torchaudio/prototype/transducer.py
+2
-2
No files found.
torchaudio/prototype/transducer.py
View file @
df48ba36
...
...
@@ -148,8 +148,8 @@ def check_inputs(log_probs, labels, lengths, label_lengths):
check_dim
(
log_probs
,
4
,
"log_probs"
)
check_dim
(
labels
,
2
,
"labels"
)
check_dim
(
lengths
,
1
,
"leng
h
ts"
)
check_dim
(
label_lengths
,
1
,
"label_leng
h
ts"
)
check_dim
(
lengths
,
1
,
"lengt
h
s"
)
check_dim
(
label_lengths
,
1
,
"label_lengt
h
s"
)
max_T
=
torch
.
max
(
lengths
)
max_U
=
torch
.
max
(
label_lengths
)
T
,
U
=
log_probs
.
shape
[
1
:
3
]
...
...
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