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 15, 2024
1 parent c97088f commit ab3616c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions sota-implementations/iql/discrete_iql.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,10 @@ def update(sampled_tensordict):

# update qnet_target params
target_net_updater.step()
return TensorDict(
metadata.update(
{"actor_loss": actor_loss, "value_loss": value_loss, "q_loss": q_loss}
)
).detach()
metadata.update(
{"actor_loss": actor_loss, "value_loss": value_loss, "q_loss": q_loss}
)
return TensorDict(metadata).detach()

if cfg.compile.compile:
update = torch.compile(update, mode=compile_mode)
Expand Down

0 comments on commit ab3616c

Please sign in to comment.