(argv: Sequence[str])
| 117 | |
| 118 | |
| 119 | def main(argv: Sequence[str]) -> None: |
| 120 | os.environ["TF_CPP_MIN_LOG_LEVEL"] = "0" |
| 121 | config = pyconfig.initialize(argv) |
| 122 | validate_train_config(config) |
| 123 | print(f"Found {jax.device_count()} devices.") |
| 124 | print(f"Found {jax.process_count()} processes.") |
| 125 | print(f"Found {jax.devices()} devices.") |
| 126 | os.environ["TFDS_DATA_DIR"] = config.dataset_path |
| 127 | checkpoint_loop(config) |
| 128 | |
| 129 | |
| 130 | if __name__ == "__main__": |
nothing calls this directly
no test coverage detected