MCPcopy Create free account
hub / github.com/ASLP-lab/OSUM / __init__

Method __init__

OSUM/wenet/transformer/embedding.py:130–132  ·  view source on GitHub ↗

Initialize class.

(self, d_model: int, dropout_rate: float, max_len: int = 5000)

Source from the content-addressed store, hash-verified

128 """
129
130 def __init__(self, d_model: int, dropout_rate: float, max_len: int = 5000):
131 """Initialize class."""
132 super().__init__(d_model, dropout_rate, max_len, reverse=True)
133
134 def forward(self,
135 x: torch.Tensor,

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected