Class Softmax
java.lang.Object
smile.deep.activation.ActivationFunction
smile.deep.activation.Softmax
- All Implemented Interfaces:
Serializable, Function<Tensor,Tensor>, Layer
-
Constructor Details
-
Softmax
public Softmax()Constructor. Computes softmax along dimension 1 (class dimension for 2-D batch × classes tensors). -
Softmax
public Softmax(int dim) Constructor.- Parameters:
dim- the dimension along which softmax is computed.
-
-
Method Details
-
forward
-