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

Class Config

axlearn/common/bert.py:67–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65
66 @config_class
67 class Config(BaseLayer.Config):
68 input_dim: Required[int] = REQUIRED # Input dimension.
69 linear: InstantiableConfig = Linear.default_config()
70 dropout: InstantiableConfig = Dropout.default_config()
71 activation: str = "jnp.tanh"
72
73 def __init__(self, cfg: Config, *, parent: Optional[Module]):
74 super().__init__(cfg, parent=parent)

Callers

nothing calls this directly

Calls 1

default_configMethod · 0.45

Tested by

no test coverage detected