nn.softmax
Last updated
Last updated
Applies the Softmax function to an n-dimensional input Tensor rescaling them so that the elements of the n-dimensional output Tensor lie in the range [0,1] and sum to 1.
tensor
(@Tensor<T>
) - The input tensor.
axis
(Option<i32>
) - Describes the dimension Softmax will be performed on. Negative value means counting dimensions from the back. Accepted range is [-r, r-1] where r = rank(input).
A Tensor of fixed point numbers with the same shape than the input Tensor.
Constrain input and output types to fixed point tensors.