Computes the log softmax.
const a = tf.tensor1d([1, 2, 3]);a.logSoftmax().print(); // or tf.logSoftmax(a) Copy
const a = tf.tensor1d([1, 2, 3]);a.logSoftmax().print(); // or tf.logSoftmax(a)
const a = tf.tensor2d([2, 4, 6, 1, 2, 3], [2, 3]);a.logSoftmax().print(); // or tf.logSoftmax(a) Copy
const a = tf.tensor2d([2, 4, 6, 1, 2, 3], [2, 3]);a.logSoftmax().print(); // or tf.logSoftmax(a)
The logits array.
Optional
The dimension softmax would be performed on. Defaults to -1 which indicates the last dimension.
-1
Generated using TypeDoc
Computes the log softmax.