Loads the named_shardings.json file into a plain Python dict.
(json_path: str | Path)
| 249 | |
| 250 | |
| 251 | def load_named_sharding_json(json_path: str | Path) -> dict: |
| 252 | """Loads the named_shardings.json file into a plain Python dict.""" |
| 253 | json_path = Path(json_path) |
| 254 | with open(json_path, "r", encoding="utf-8") as f: |
| 255 | return json.load(f) |
| 256 | |
| 257 | |
| 258 | def main(argv: Sequence[str]) -> None: |
no outgoing calls