Skip to content

Commit

Permalink
update example script
Browse files Browse the repository at this point in the history
  • Loading branch information
BY571 committed Jul 9, 2024
1 parent 0355caa commit acc9baf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sota-implementations/td3_bc/td3_bc.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def main(cfg: "DictConfig"): # noqa: F821
sampled_tensordict = sampled_tensordict.clone()

# Compute loss
q_loss, *_ = loss_module.value_loss(sampled_tensordict)
q_loss, *_ = loss_module.qvalue_loss(sampled_tensordict)

# Update critic
optimizer_critic.zero_grad()
Expand Down

0 comments on commit acc9baf

Please sign in to comment.