Skip to content

Commit

Permalink
torch.functional Docs (pytorch#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamarshon authored and cpuhrsch committed Jul 16, 2019
1 parent c569b40 commit 0902494
Show file tree
Hide file tree
Showing 5 changed files with 190 additions and 106 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ instance/

# Sphinx documentation
docs/_build/
docs/src/

# PyBuilder
target/
Expand Down
1 change: 1 addition & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ def setup(app):
intersphinx_mapping = {
'python': ('https://docs.python.org/', None),
'numpy': ('https://docs.scipy.org/doc/numpy/', None),
'torch': ('https://pytorch.org/docs/stable/', None),
}

# -- A patch that prevents Sphinx from cross-referencing ivar tags -------
Expand Down
70 changes: 70 additions & 0 deletions docs/source/functional.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
.. role:: hidden
:class: hidden-section

torchaudio.functional
======================

.. currentmodule:: torchaudio.functional

Functions to perform common audio operations.

:hidden:`scale`
~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: scale


:hidden:`pad_trim`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: pad_trim

:hidden:`downmix_mono`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: downmix_mono

:hidden:`LC2CL`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: LC2CL

:hidden:`istft`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: istft

:hidden:`spectrogram`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: spectrogram

:hidden:`create_fb_matrix`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: create_fb_matrix

:hidden:`spectrogram_to_DB`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: spectrogram_to_DB

:hidden:`create_dct`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: create_dct

:hidden:`BLC2CBL`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: BLC2CBL

:hidden:`mu_law_encoding`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: mu_law_encoding

:hidden:`mu_law_expanding`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: mu_law_expanding
1 change: 1 addition & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ The :mod:`torchaudio` package consists of I/O, popular datasets and common audio
compliance.kaldi
kaldi_io
transforms
functional
legacy

.. automodule:: torchaudio
Expand Down
Loading

0 comments on commit 0902494

Please sign in to comment.