MinibatchLossTensors
python
MinibatchLossTensors(policy_loss: torch.Tensor, value_loss: torch.Tensor, behavior_cloning_loss: torch.Tensor, entropy: torch.Tensor, loss: torch.Tensor, approx_kl: torch.Tensor, clip_fraction: torch.Tensor, ratio_mean: torch.Tensor) -> NoneLoss and diagnostic tensors computed by one minibatch forward pass.
Field names match PPOMinibatchMetrics so metric values can be collected by name.
Values
approx_kl
python
approx_kl: torch.Tensorbehavior_cloning_loss
python
behavior_cloning_loss: torch.Tensorclip_fraction
python
clip_fraction: torch.Tensorentropy
python
entropy: torch.Tensorloss
python
loss: torch.Tensorpolicy_loss
python
policy_loss: torch.Tensorratio_mean
python
ratio_mean: torch.Tensorvalue_loss
python
value_loss: torch.Tensor