Tensor data for one PPO mini-batch. More...
#include <LibtorchRLMiniBatchSampler.h>
Public Member Functions | |
| std::int64_t | size () const |
| Return the number of rows stored in the mini-batch. | |
Public Attributes | |
| torch::Tensor | observations |
| Flattened observation rows for the mini-batch. | |
| torch::Tensor | actions |
| Action rows that match the sampled observations. | |
| torch::Tensor | old_log_probabilities |
| Behavior-policy log probabilities for the sampled actions. | |
| torch::Tensor | value_targets |
| Critic targets aligned with the sampled observations. | |
| torch::Tensor | advantages |
| Advantage estimates aligned with the sampled observations. | |
Tensor data for one PPO mini-batch.
Definition at line 24 of file LibtorchRLMiniBatchSampler.h.
|
inline |
Return the number of rows stored in the mini-batch.
Definition at line 40 of file LibtorchRLMiniBatchSampler.h.
| torch::Tensor LibtorchRLMiniBatch::actions |
Action rows that match the sampled observations.
Definition at line 29 of file LibtorchRLMiniBatchSampler.h.
Referenced by LibtorchRLPPOLoss::compute(), and LibtorchRLMiniBatchSampler::makeMiniBatch().
| torch::Tensor LibtorchRLMiniBatch::advantages |
Advantage estimates aligned with the sampled observations.
Definition at line 35 of file LibtorchRLMiniBatchSampler.h.
Referenced by LibtorchRLPPOLoss::compute(), and LibtorchRLMiniBatchSampler::makeMiniBatch().
| torch::Tensor LibtorchRLMiniBatch::observations |
Flattened observation rows for the mini-batch.
Definition at line 27 of file LibtorchRLMiniBatchSampler.h.
Referenced by LibtorchRLPPOLoss::compute(), LibtorchRLMiniBatchSampler::makeMiniBatch(), and size().
| torch::Tensor LibtorchRLMiniBatch::old_log_probabilities |
Behavior-policy log probabilities for the sampled actions.
Definition at line 31 of file LibtorchRLMiniBatchSampler.h.
Referenced by LibtorchRLPPOLoss::compute(), and LibtorchRLMiniBatchSampler::makeMiniBatch().
| torch::Tensor LibtorchRLMiniBatch::value_targets |
Critic targets aligned with the sampled observations.
Definition at line 33 of file LibtorchRLMiniBatchSampler.h.
Referenced by LibtorchRLPPOLoss::compute(), and LibtorchRLMiniBatchSampler::makeMiniBatch().