Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
[ghstack-poisoned]
  • Loading branch information
vmoens committed Dec 16, 2024
1 parent 2b39661 commit 6b4284f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sota-implementations/td3/td3.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,9 @@ def update(sampled_tensordict, update_actor):
)

if collected_frames >= init_random_frames:
metrics_to_log["train/q_loss"] = q_losses.mean()
metrics_to_log["train/q_loss"] = torch.stack(q_losses).mean()
if update_actor:
metrics_to_log["train/a_loss"] = actor_losses.mean()
metrics_to_log["train/a_loss"] = torch.stack(actor_losses).mean()

# Evaluation
if abs(collected_frames % eval_iter) < frames_per_batch:
Expand Down

0 comments on commit 6b4284f

Please sign in to comment.