Softmax method

T Softmax({
  1. int dim = -1,
})

When the data is mapped through Softmax, the maximum value in the data will be excluded in practice, which is not considered here.

Implementation

T Softmax({int dim = -1}) => _fromList(self.Softmax(dim: dim));