Skip to content

Commit

Permalink
handle multiple inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
albertbou92 committed Dec 3, 2023
1 parent f9033f8 commit 47d5916
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchrl/objectives/value/advantages.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def _call_actor_net(
log_prob_key: NestedKey,
):
# TODO: extend to handle time dimension (and vmap?)
log_pi = actor_net(data.select(actor_net.in_keys)).get(log_prob_key)
log_pi = actor_net(data.select(*actor_net.in_keys)).get(log_prob_key)
return log_pi


Expand Down

0 comments on commit 47d5916

Please sign in to comment.