8#include "bitrl/base/bitrl_config.h"
15#include <torch/torch.h>
TorchDistributionBase()=default
Constructor.
TorchNormalDist(torch_tensor_t mu, torch_tensor_t sigma)
Default constructor.
~TorchNormalDist() override=default
~TorchCategorical. Destructor
torch_tensor_t std() const
Returns the standard deviation.
Definition torch_normal.h:64
torch_tensor_t entropy() const override
Compute the entropy.
torch_tensor_t sample() const
get a sample from the distribution
torch_tensor_t log_prob(torch_tensor_t value) override
log_prob
torch_tensor_t mean() const
Returns the mean.
Definition torch_normal.h:59
Definition torch_bernoulli_dist.h:23
Various utilities used when working with RL problems.
Definition bitrl_log.h:25
torch::Tensor torch_tensor_t
torch_tensor_t
Definition bitrl_types.h:95