Skip to content

Commit

Permalink
update ml-starter
Browse files Browse the repository at this point in the history
  • Loading branch information
codekansas committed Nov 2, 2023
1 parent 95c28a1 commit ecb1c33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion project/tasks/rl_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def compute_loss(self, model: A2CModel, batch: tuple[State, Action], state: ml.S
# Logs additional metrics.
self.logger.log_scalar("p_dist_std", lambda: p_dist.stddev.mean().item())
if state.num_epoch_steps == 0 and state.num_epochs % self.config.sample_clip_interval == 0:
self.logger.log_video("sample", self.sample_clip(model=model, use_tqdm=False))
self.logger.log_video("sample", self.sample_clip(model=model))

return {
"policy": policy_loss,
Expand Down

0 comments on commit ecb1c33

Please sign in to comment.