So I’m trying to implement a gaussian policy in C++ I have a my gaussian tensor defined as:
this->dist = at::normal( mu[0], sigma );
dist will be a torch::Tensor
For the learning part I need something like: this->dist.log_prob(action)
Obviously the problem is that Tensors don’t have a log_prob function, can anyone help me out with this?
Thanks a lot for you time