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