Commit 8690e6ec authored by moto's avatar moto Committed by Facebook GitHub Bot
Browse files

Resolve lint issue on LaTeX (#3366)

Summary: Pull Request resolved: https://github.com/pytorch/audio/pull/3366

Reviewed By: nateanl

Differential Revision: D46136238

Pulled By: mthrok

fbshipit-source-id: 3432f5d007293831bab21460a79ae26b1bbc81a8
parent 7d0f3369
...@@ -2608,7 +2608,7 @@ def forced_align( ...@@ -2608,7 +2608,7 @@ def forced_align(
target_lengths: torch.Tensor, target_lengths: torch.Tensor,
blank: int = 0, blank: int = 0,
) -> Tuple[torch.Tensor, torch.Tensor]: ) -> Tuple[torch.Tensor, torch.Tensor]:
"""Computes forced alignment given the emissions from a CTC-trained model and a target label. r"""Computes forced alignment given the emissions from a CTC-trained model and a target label.
.. devices:: CPU CUDA .. devices:: CPU CUDA
...@@ -2635,9 +2635,9 @@ def forced_align( ...@@ -2635,9 +2635,9 @@ def forced_align(
.. math:: .. math::
L_{\\text{log\_probs}} \ge L_{\\text{label}} + N_{\\text{repeat}} L_{\text{log\_probs}} \ge L_{\text{label}} + N_{\text{repeat}}
where :math:`N_{\\text{repeat}}` is the number of consecutively repeated tokens. where :math:`N_{\text{repeat}}` is the number of consecutively repeated tokens.
For example, in str `"aabbc"`, the number of repeats are `2`. For example, in str `"aabbc"`, the number of repeats are `2`.
""" """
if blank in targets: if blank in targets:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment