io_class.rst 1.71 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

{%- for item in members %}
moto's avatar
moto committed
41
42
43
44
45
{%- if
   not item.startswith('_')
   and item not in inherited_members
   and item not in attributes
   %}
46

moto's avatar
moto committed
47
{{ item | underline("~") }}
48
49
50
51
52
53
54

.. container:: py attribute

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

{%- endif %}
{%- endfor %}
55
{%- endif %}
56

moto's avatar
moto committed
57

moto's avatar
moto committed
58
{%- if name in ["StreamReader", "StreamWriter"] %}
59
60

Support Structures
moto's avatar
moto committed
61
------------------
62

moto's avatar
moto committed
63
{%- if name == "StreamReader" %}
moto's avatar
moto committed
64
65
66
67
68
69
{%- for item in [
    "ChunkTensor",
    "SourceStream",
    "SourceAudioStream",
    "SourceVideoStream",
    "OutputStream",
70
71
    "OutputAudioStream",
    "OutputVideoStream",
moto's avatar
moto committed
72
] %}
73

moto's avatar
moto committed
74
{{ item | underline("~") }}
75

76
.. autoclass:: torio.io._streaming_media_decoder.{{item}}()
77
78
79
   :members:

{%- endfor %}
moto's avatar
moto committed
80

moto's avatar
moto committed
81
{%- elif name == "StreamWriter" %}
moto's avatar
moto committed
82

83
84
CodecConfig
~~~~~~~~~~~
moto's avatar
moto committed
85

moto's avatar
moto committed
86
.. autoclass:: torchaudio.io::CodecConfig
moto's avatar
moto committed
87
88
   :members:

89
{%- endif %}
moto's avatar
moto committed
90
{%- endif %}