(self)
| 249 | return th.mean(exploration_loss) |
| 250 | |
| 251 | def sample(self) -> th.Tensor: |
| 252 | # Reparametrization trick to pass gradients |
| 253 | return self.distribution.rsample() |
| 254 | |
| 255 | def mode(self) -> th.Tensor: |
| 256 | alpha = self.distribution.concentration1 |
no outgoing calls
no test coverage detected