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

Class Config

axlearn/common/bert.py:107–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105
106 @config_class
107 class Config(BaseLayer.Config):
108 input_dim: Required[int] = REQUIRED
109 output_dim: Required[int] = REQUIRED
110 linear: InstantiableConfig = Linear.default_config()
111 activation: str = "nn.gelu"
112 norm: InstantiableConfig = LayerNorm.default_config()
113
114 def __init__(self, cfg: Config, *, parent: Optional[Module]):
115 super().__init__(cfg, parent=parent)

Callers

nothing calls this directly

Calls 1

default_configMethod · 0.45

Tested by

no test coverage detected