io_class.rst 1.46 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
..
  autogenerated from source/_templates/autosummary/io_class.rst

{#-
    ################################################################################
    # autosummary template for torchaudio.io module
    # Since StreamReader/StreamWriter have many methods/properties,
    # we want to list them up in the table of contents.
    # The default class template does not do this, so we use custom one here.
    ################################################################################
#}

{{ name | underline }}

.. autoclass:: {{ fullname }}

{%- if attributes %}

Properties
moto's avatar
moto committed
20
----------
21
22
23
24

{%- for item in attributes %}
{%- if not item.startswith('_') and item not in inherited_members %}

moto's avatar
moto committed
25
{{ item | underline("~") }}
26
27
28
29
30
31
32
33
34

.. container:: py attribute

   .. autoproperty:: {{[fullname, item] | join('.')}}

{%- endif %}
{%- endfor %}
{%- endif %}

35
36
{%- if members %}

37
Methods
moto's avatar
moto committed
38
-------
39
40
41
42

{%- for item in members %}
{%- if not item.startswith('_') and item not in inherited_members and item not in attributes %}

moto's avatar
moto committed
43
{{ item | underline("~") }}
44
45
46
47
48
49
50

.. container:: py attribute

   .. automethod:: {{[fullname, item] | join('.')}}

{%- endif %}
{%- endfor %}
51
{%- endif %}
52
53
54
55

{%- if name == "StreamReader" %}

Support Structures
moto's avatar
moto committed
56
------------------
57

moto's avatar
moto committed
58
59
60
61
62
63
64
{%- for item in [
    "ChunkTensor",
    "SourceStream",
    "SourceAudioStream",
    "SourceVideoStream",
    "OutputStream",
] %}
65

moto's avatar
moto committed
66
{{ item | underline("~") }}
67

moto's avatar
moto committed
68
.. autoclass:: torchaudio.io._stream_reader.{{item}}()
69
70
71
72
   :members:

{%- endfor %}
{%- endif %}