mirror of
https://github.com/vale981/ray
synced 2025-03-06 10:31:39 -05:00
fix(rllib): allow explore=False with tuple action distributions (#10443)
This commit is contained in:
parent
7aa55ca82c
commit
504da45e69
1 changed files with 1 additions and 1 deletions
|
@ -72,5 +72,5 @@ class StochasticSampling(Exploration):
|
|||
logp = action_dist.sampled_action_logp()
|
||||
else:
|
||||
action = action_dist.deterministic_sample()
|
||||
logp = torch.zeros((action.size()[0], ), dtype=torch.float32)
|
||||
logp = torch.zeros_like(action_dist.sampled_action_logp())
|
||||
return action, logp
|
||||
|
|
Loading…
Add table
Reference in a new issue