(self, cfg: Config)
| 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. |