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

Method __init__

axlearn/common/trainer_config_modifier.py:137–140  ·  view source on GitHub ↗
(self, cfg: Config)

Source from the content-addressed store, hash-verified

135 mesh_shape: Required[Union[MeshShape, HybridMeshShape]] = REQUIRED
136
137 def __init__(self, cfg: Config):
138 super().__init__(cfg)
139 cfg = self.config
140 self._mesh_shape = cfg.mesh_shape
141
142 def __call__(self, cfg: SpmdTrainer.Config) -> SpmdTrainer.Config:
143 """Overwrite the mesh shape.

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected