Skip to content

Commit 0902494

Browse files
jamarshoncpuhrsch
authored andcommitted
torch.functional Docs (pytorch#140)
1 parent c569b40 commit 0902494

File tree

5 files changed

+190
-106
lines changed

5 files changed

+190
-106
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ instance/
6868

6969
# Sphinx documentation
7070
docs/_build/
71+
docs/src/
7172

7273
# PyBuilder
7374
target/

docs/source/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ def setup(app):
208208
intersphinx_mapping = {
209209
'python': ('https://docs.python.org/', None),
210210
'numpy': ('https://docs.scipy.org/doc/numpy/', None),
211+
'torch': ('https://pytorch.org/docs/stable/', None),
211212
}
212213

213214
# -- A patch that prevents Sphinx from cross-referencing ivar tags -------

docs/source/functional.rst

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
.. role:: hidden
2+
:class: hidden-section
3+
4+
torchaudio.functional
5+
======================
6+
7+
.. currentmodule:: torchaudio.functional
8+
9+
Functions to perform common audio operations.
10+
11+
:hidden:`scale`
12+
~~~~~~~~~~~~~~~~~~~~~~~~~~
13+
14+
.. autofunction:: scale
15+
16+
17+
:hidden:`pad_trim`
18+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
19+
20+
.. autofunction:: pad_trim
21+
22+
:hidden:`downmix_mono`
23+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24+
25+
.. autofunction:: downmix_mono
26+
27+
:hidden:`LC2CL`
28+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
29+
30+
.. autofunction:: LC2CL
31+
32+
:hidden:`istft`
33+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
34+
35+
.. autofunction:: istft
36+
37+
:hidden:`spectrogram`
38+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
39+
40+
.. autofunction:: spectrogram
41+
42+
:hidden:`create_fb_matrix`
43+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
44+
45+
.. autofunction:: create_fb_matrix
46+
47+
:hidden:`spectrogram_to_DB`
48+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
49+
50+
.. autofunction:: spectrogram_to_DB
51+
52+
:hidden:`create_dct`
53+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
54+
55+
.. autofunction:: create_dct
56+
57+
:hidden:`BLC2CBL`
58+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
59+
60+
.. autofunction:: BLC2CBL
61+
62+
:hidden:`mu_law_encoding`
63+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
64+
65+
.. autofunction:: mu_law_encoding
66+
67+
:hidden:`mu_law_expanding`
68+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69+
70+
.. autofunction:: mu_law_expanding

docs/source/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ The :mod:`torchaudio` package consists of I/O, popular datasets and common audio
1212
compliance.kaldi
1313
kaldi_io
1414
transforms
15+
functional
1516
legacy
1617

1718
.. automodule:: torchaudio

0 commit comments

Comments
 (0)