Apply softmax activation to channel dimension
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 layerGraph
object
or Layer
array, use
the following layer:
computes the softmax activation of the input dlY
= softmax(dlX
)dlX
by applying the softmax
transfer function to the channel dimension of the input data. All values in
dlY
are between 0
and 1
, and sum
to 1
. The input dlX
is a formatted
dlarray
with dimension labels. The output dlY
is a
formatted dlarray
with the same dimension labels as
dlX
.
batchnorm
| crossentropy
| dlarray
| dlfeval
| dlgradient
| fullyconnect
| relu