bundle_class.rst 1.73 KB
Newer Older
1
2
3
4
5
6
7
..
  autogenerated from source/_templates/autosummary/bundle_class.rst

{{ name | underline }}

.. autoclass:: {{ fullname }}()

moto's avatar
moto committed
8
9
{%- set support_classes = [] %}
{%- if name in ["RNNTBundle.FeatureExtractor", "RNNTBundle.TokenProcessor", "Wav2Vec2FABundle.Tokenizer"] %}
10
  {%- set methods = ["__call__"] %}
moto's avatar
moto committed
11
12
13
14
{%- elif name == "Wav2Vec2FABundle.Aligner" %}
  {%- set attributes = [] %}
  {%- set methods = ["__call__"] %}
  {%- set support_classes = ["Token"] %}
15
16
17
18
19
20
{%- elif name == "Tacotron2TTSBundle.TextProcessor" %}
  {%- set attributes = ["tokens"] %}
  {%- set methods = ["__call__"] %}
{%- elif name == "Tacotron2TTSBundle.Vocoder" %}
  {%- set attributes=["sample_rate"] %}
  {%- set methods = ["__call__"] %}
21
22
23
24
25
26
{%- elif name == "VGGishBundle.VGGish" %}
  {%- set attributes = [] %}
  {%- set methods = ["forward"] %}
{%- elif name == "VGGishBundle.VGGishInputProcessor" %}
  {%- set attributes = [] %}
  {%- set methods = ["__call__"] %}
27
28
{% endif %}

moto's avatar
moto committed
29
30
31
32
33
34
35
{%- if attributes %}

Properties
----------

{%- endif %}

36
37
38
{%- for item in attributes %}
{%- if not item.startswith('_') %}

moto's avatar
moto committed
39
{{ item | underline("~") }}
40
41
42
43
44
45
46
47

.. container:: py attribute

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

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

moto's avatar
moto committed
48
49
50
51
52
53
{%- if methods %}

Methods
-------

{%- endif %}
54
55
56
57

{%- for item in methods %}
{%- if item != "__init__" %}

moto's avatar
moto committed
58
{{item | underline("~") }}
59
60
61
62
63
64
65

.. container:: py attribute

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

{%- endif %}
{%- endfor %}
moto's avatar
moto committed
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86

{%- if support_classes %}

Support Structures
------------------

{%- endif %}

{%- for item in support_classes %}

{% set components = item.split('.') %}

{{ components[-1] | underline("~") }}

.. container:: py attribute

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


{%- endfor %}