chainerx.log_softmax

chainerx.log_softmax(x, axis=None)

The log of the softmax of input array.

Parameters
  • x (ndarray) – Input array.

  • axis (None or int or tuple of ints) – Axis or axes along which a sum is performed. The flattened array is used by default.

Returns

The log of the softmax of input elements over a given axis.

Return type

ndarray

Note

During backpropagation, this function propagates the gradient of the output array to the input array x.