mirror of
https://github.com/wassname/ray.git
synced 2026-10-28 13:21:06 +08:00
Fix TorchDeterministic (#9241)
This commit is contained in:
1 parent
9f969260e8
commit
5303c3abe3
1 file changed
+1
-1
@@ -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