pangolin.interface.softmax#
- pangolin.interface.softmax(a)#
Apply the softmax function to a vector.
The input must be one-dimensional, and the result has the same shape. The current operation does not provide a configurable axis.
Examples
>>> import pangolin.interface as pi >>> pi.softmax([1, 2, 3]).shape (3,)