OneHotOrdinalΒΆ
- class torchrl.modules.OneHotOrdinal(scores: Tensor)[source]ΒΆ
The one-hot version of the
Ordinal
distribution.- Parameters:
scores (torch.Tensor) β a tensor of shape [β¦, N] where N is the size of the set which supports the distributions. Typically, the output of a neural network parametrising the distribution.