A neural transfer function that is useful for classification tasks.
- iOS 10.0+
- macOS 10.13+
- UIKit for Mac 13.0+Beta
- tvOS 10.0+
- Metal Performance Shaders
The softmax filter is applied across feature channels in a convolutional manner at all spatial locations. The softmax filter can be seen as the combination of an activation function (exponential) and a normalization operator.
For each feature channel per pixel in an image in a feature map, the softmax filter computes the following:
R is the result channel in the pixel and
N is the number of feature channels.