mirror of
https://github.com/wassname/ray.git
synced 2026-07-13 17:45:08 +08:00
fix(rllib): allow explore=False with tuple action distributions (#10443)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user