Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix document for forced_align method #3748

Merged
merged 1 commit into from
Feb 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/libtorchaudio/forced_align/cpu/compute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ void forced_align_impl(
}
TORCH_CHECK(
T >= L + R,
"targets length is too long for CTC. Found targets length: ",
"targets length is too long for CTC. Found log_probs length: ",
T,
", log_probs length: ",
", targets length: ",
L,
", and number of repeats: ",
R);
Expand Down
4 changes: 2 additions & 2 deletions src/libtorchaudio/forced_align/gpu/compute.cu
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@ void forced_align_impl(
}
TORCH_CHECK(
T >= L + R,
"targets length is too long for CTC. Found targets length: ",
"targets length is too long for CTC. Found log_probs length: ",
T,
", log_probs length: ",
", targets length: ",
L,
", and number of repeats: ",
R);
Expand Down
Loading