Skip to content

Commit

Permalink
bug fix with policy class when running on GPU
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaspear committed Sep 6, 2024
1 parent a281468 commit 1fe8136
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/offline_rl_ope/components/Policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def __call__(
action_prs = self.postproc_tens(p_return.action_prs)
self.collect_res_fn(action_prs)
self.collect_act_func(actions)
return p_return.action_prs
return action_prs

class GreedyDeterministic(BasePolicy):

Expand Down

0 comments on commit 1fe8136

Please sign in to comment.