Skip to content

Commit

Permalink
added log info on the devices in use
Browse files Browse the repository at this point in the history
  • Loading branch information
M-R-Schaefer committed Apr 4, 2024
1 parent 5cf2fae commit 3a81b71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apax/train/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ def run(user_config, log_level="error"):
seed_py_np_tf(config.seed)
rng_key = jax.random.PRNGKey(config.seed)

log.info("Initializing directories")
config.data.model_version_path.mkdir(parents=True, exist_ok=True)
setup_logging(config.data.model_version_path / "train.log", log_level)
config.dump_config(config.data.model_version_path)
log.info(f"Running on {jax.devices()}")

callbacks = initialize_callbacks(config.callbacks, config.data.model_version_path)
loss_fn = initialize_loss_fn(config.loss)
Expand Down

0 comments on commit 3a81b71

Please sign in to comment.