Fix TorchDeterministic (#9241)

This commit is contained in:
Raphael Avalos
2020-07-23 19:43:20 +02:00
committed by GitHub
parent 9f969260e8
commit 5303c3abe3
+1 -1
View File
@@ -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):