Skip to content

Commit

Permalink
ultimate fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoens committed Oct 15, 2024
1 parent facf2e3 commit 3c53e10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchrl/objectives/cql.py
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ def _get_value_v(self, tensordict, _alpha, actor_params, qval_params):
# take max over actions
state_action_value = state_action_value.reshape(
torch.Size(
[*self.num_qvalue_nets, *tensordict.shape, self.num_random, -1]
[self.num_qvalue_nets, *tensordict.shape, self.num_random, -1]
)
).max(-2)[0]
# take min over qvalue nets
Expand Down

0 comments on commit 3c53e10

Please sign in to comment.