MCPcopy Create free account
hub / github.com/apple/axlearn / __init__

Method __init__

axlearn/common/bert.py:318–322  ·  view source on GitHub ↗
(self, cfg: Config, *, parent: Optional[Module])

Source from the content-addressed store, hash-verified

316 Config = EncoderModel.Config
317
318 def __init__(self, cfg: Config, *, parent: Optional[Module]):
319 super().__init__(cfg, parent=parent)
320 self._share_with_descendants(
321 self.encoder.emb.token_emb, shared_module_name="shared_token_emb"
322 )
323
324 @classmethod
325 def default_config(cls):

Callers

nothing calls this directly

Calls 2

__init__Method · 0.45

Tested by

no test coverage detected