io_class.rst 1.43 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
35

.. container:: py attribute

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

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

Methods
moto's avatar
moto committed
36
-------
37
38
39
40

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

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

.. container:: py attribute

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

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

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

Support Structures
moto's avatar
moto committed
53
------------------
54

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

moto's avatar
moto committed
63
{{ item | underline("~") }}
64

moto's avatar
moto committed
65
.. autoclass:: torchaudio.io._stream_reader.{{item}}()
66
67
68
69
   :members:

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