softmax
Apply softmax activation to channel dimension
Description
The softmax activation operation applies the softmax function to the channel dimension of the input data.
The softmax function normalizes the value of the input data across the channel dimension such that it sums to one. You can regard the output of the softmax function as a probability distribution.
Note
This function applies the softmax operation to dlarray
data. If
you want to apply softmax within a dlnetwork
object, use softmaxLayer
.
computes
the softmax activation of the input Y
= softmax(X
)X
by applying the softmax transfer
function to the channel dimension of the input data. All values in Y
are
between 0
and 1
, and sum to 1
. The
input X
must be a formatted dlarray
. The output
Y
is a formatted dlarray
with the same dimension
format as X
.
Examples
Input Arguments
Output Arguments
Algorithms
Extended Capabilities
Version History
Introduced in R2019b
See Also
dlarray
| batchnorm
| fullyconnect
| relu
| crossentropy
| indexcrossentropy
| dlgradient
| dlfeval
| huber
| l1loss
| l2loss