Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Caroline Chen authored and Caroline committed Aug 18, 2021
1 parent c0b23dc commit 0a91ebc
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 29 deletions.
8 changes: 8 additions & 0 deletions docs/source/functional.rst
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,14 @@ vad

.. autofunction:: spectral_centroid

:hidden:`Loss`
~~~~~~~~~~~~~~

rnnt_loss
---------

.. autofunction:: rnnt_loss

References
~~~~~~~~~~

Expand Down
1 change: 0 additions & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ The :mod:`torchaudio` package consists of I/O, popular datasets and common audio
compliance.kaldi
kaldi_io
utils
rnnt_loss
tacotron2


Expand Down
28 changes: 0 additions & 28 deletions docs/source/rnnt_loss.rst

This file was deleted.

6 changes: 6 additions & 0 deletions docs/source/transforms.rst
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,12 @@ Transforms are common audio transforms. They can be chained together using :clas

.. automethod:: forward

:hidden:`RNNTLoss`
~~~~~~~~~~~~~~~~~~

.. autoclass:: RNNTLoss

.. automethod:: forward

References
~~~~~~~~~~
Expand Down
1 change: 1 addition & 0 deletions torchaudio/functional/functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -1762,6 +1762,7 @@ def rnnt_loss(
The RNN Transducer loss extends the CTC loss by defining a distribution over output
sequences of all lengths, and by jointly modelling both input-output and output-output
dependencies.
Args:
logits (Tensor): Tensor of dimension (batch, max seq length, max target length + 1, class)
containing output from joiner
Expand Down
1 change: 1 addition & 0 deletions torchaudio/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -1437,6 +1437,7 @@ class RNNTLoss(torch.nn.Module):
The RNN Transducer loss extends the CTC loss by defining a distribution over output
sequences of all lengths, and by jointly modelling both input-output and output-output
dependencies.
Args:
blank (int, optional): blank label (Default: ``-1``)
clamp (float, optional): clamp for gradients (Default: ``-1``)
Expand Down

0 comments on commit 0a91ebc

Please sign in to comment.