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
b7b7b5d7
Unverified
Commit
b7b7b5d7
authored
Feb 16, 2024
by
nateanl
Committed by
GitHub
Feb 16, 2024
Browse files
Fix document for forced_align method (#3748)
The lengths of targets and log_probs should be reversed.
parent
5286f9f6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/libtorchaudio/forced_align/cpu/compute.cpp
src/libtorchaudio/forced_align/cpu/compute.cpp
+2
-2
src/libtorchaudio/forced_align/gpu/compute.cu
src/libtorchaudio/forced_align/gpu/compute.cu
+2
-2
No files found.
src/libtorchaudio/forced_align/cpu/compute.cpp
View file @
b7b7b5d7
...
...
@@ -42,9 +42,9 @@ void forced_align_impl(
}
TORCH_CHECK
(
T
>=
L
+
R
,
"targets length is too long for CTC. Found
target
s length: "
,
"targets length is too long for CTC. Found
log_prob
s length: "
,
T
,
",
log_prob
s length: "
,
",
target
s length: "
,
L
,
", and number of repeats: "
,
R
);
...
...
src/libtorchaudio/forced_align/gpu/compute.cu
View file @
b7b7b5d7
...
...
@@ -160,9 +160,9 @@ void forced_align_impl(
}
TORCH_CHECK
(
T
>=
L
+
R
,
"targets length is too long for CTC. Found
target
s length: "
,
"targets length is too long for CTC. Found
log_prob
s length: "
,
T
,
",
log_prob
s length: "
,
",
target
s length: "
,
L
,
", and number of repeats: "
,
R
);
...
...
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