model_class.rst 828 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
..
  autogenerated from source/_templates/autosummary/model_class.rst

{%- set methods=["forward"] %}
{%- if name in ["Wav2Vec2Model"] %}
  {{ methods.extend(["extract_features"]) }}
{%- elif name in ["Emformer", "RNNTBeamSearch", "WaveRNN", "Tacotron2", ] %}
  {{ methods.extend(["infer"]) }}
{%- elif name == "RNNT" %}
  {{ methods.extend(["transcribe_streaming", "transcribe", "predict", "join"]) }}
{%- endif %}

{{ name | underline }}

.. autoclass:: {{ fullname }}

{% for item in methods %}

{{item | underline("-") }}

.. container:: py attribute

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

{%- endfor %}

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

Support Structures
==================

Hypothesis
----------

.. container:: py attribute

   .. autodata:: torchaudio.models.Hypothesis
      :no-value:

{%- endif %}