Skip to content

Commit

Permalink
logging state specs
Browse files Browse the repository at this point in the history
  • Loading branch information
hnyu committed Sep 29, 2023
1 parent fd26365 commit 7746aef
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions alf/trainers/policy_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,13 @@ def __init__(self, config: TrainerConfig, ddp_rank: int = -1):
config=self._config,
debug_summaries=self._debug_summaries)

logging.info("predict_state_spec=\n%s" % pformat_pycolor(
self._algorithm.predict_state_spec))
logging.info("rollout_state_spec=\n%s" % pformat_pycolor(
self._algorithm.rollout_state_spec))
logging.info("train_state_spec=\n%s" % pformat_pycolor(
self._algorithm.train_state_spec))

# recover offline buffer
self._algorithm.load_offline_replay_buffer(
untransformed_observation_spec)
Expand Down

0 comments on commit 7746aef

Please sign in to comment.