Skip to content

Commit

Permalink
pre-commit formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
MorganCThomas committed May 30, 2024
1 parent 32b4184 commit de35e47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions scripts/sac/pretrain_sac.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,9 +345,8 @@ def create_env_fn():
"train/reward": episode_rewards.mean().item(),
"train/min_reward": episode_rewards.min().item(),
"train/max_reward": episode_rewards.max().item(),
"train/episode_length": episode_length.sum().item() / len(
episode_length
),
"train/episode_length": episode_length.sum().item()
/ len(episode_length),
}
)
if logger:
Expand Down
5 changes: 2 additions & 3 deletions scripts/sac/sac.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,9 +354,8 @@ def create_env_fn():
"train/reward": episode_rewards.mean().item(),
"train/min_reward": episode_rewards.min().item(),
"train/max_reward": episode_rewards.max().item(),
"train/episode_length": episode_length.sum().item() / len(
episode_length
),
"train/episode_length": episode_length.sum().item()
/ len(episode_length),
}
)
if logger:
Expand Down

0 comments on commit de35e47

Please sign in to comment.