io_class.rst 1.22 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
..
  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 }}

moto's avatar
moto committed
17
18
{%- if name not in ["StreamReader", "StreamWriter"] %}

19
20
21
{%- if attributes %}

Properties
moto's avatar
moto committed
22
----------
23
24
25
26

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

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

.. container:: py attribute

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

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

37
38
{%- if members %}

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

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

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

.. container:: py attribute

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

{%- endif %}
{%- endfor %}
57
{%- endif %}
58

moto's avatar
moto committed
59
{%- endif %}