mirror of
https://github.com/wassname/ray.git
synced 2026-07-09 10:37:48 +08:00
Fix TorchDeterministic (#9241)
This commit is contained in:
@@ -308,7 +308,7 @@ class TorchDeterministic(TorchDistributionWrapper):
|
||||
|
||||
@override(TorchDistributionWrapper)
|
||||
def sampled_action_logp(self):
|
||||
return 0.0
|
||||
return torch.zeros((self.inputs.size()[0], ), dtype=torch.float32)
|
||||
|
||||
@override(TorchDistributionWrapper)
|
||||
def sample(self):
|
||||
|
||||
Reference in New Issue
Block a user