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

Method __init__

OSUM/wenet/branchformer/encoder.py:168–171  ·  view source on GitHub ↗
(self, p: List[float], modules=None)

Source from the content-addressed store, hash-verified

166 """
167
168 def __init__(self, p: List[float], modules=None):
169 super().__init__(modules)
170 assert len(p) == len(self)
171 self.p = p
172
173 def __iter__(self):
174 dropout_probs = torch.empty(len(self)).uniform_()

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected