1#ifndef TORCH_DISTRIBUTION_H
2#define TORCH_DISTRIBUTION_H
4#include "bitrl/base/bitrl_config.h"
9#include "torch/torch.h"
std::vector< int64_t > batch_shape_
batch_shape_
Definition torch_distribution.h:59
virtual torch_tensor_t sample(c10::ArrayRef< int64_t > sample_shape)=0
Ssample. Sample from the distribution.
virtual torch_tensor_t log_prob(torch_tensor_t value)=0
log_prob
virtual ~TorchDistributionBase()=default
Destructor.
TorchDistributionBase()=default
Constructor.
std::vector< int64_t > event_shape_
event_shape_
Definition torch_distribution.h:64
std::vector< int64_t > extended_shape(c10::ArrayRef< int64_t > sample_shape)
extended_shape
virtual torch_tensor_t entropy() const =0
entropy
Definition torch_bernoulli_dist.h:23
Definition lp_metric.h:10
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