MPSCNNLogSoftMax(3) MetalPerformanceShaders.framework MPSCNNLogSoftMax(3)

MPSCNNLogSoftMax

#import <MPSCNNSoftMax.h>

Inherits MPSCNNKernel.

This depends on Metal.framework The logarithmic softMax filter can be achieved by taking the natural logarithm of the the result of the softMax filter. The results are often used to construct a loss function to be minimized when training neural networks. For each feature channel per pixel in an image in a feature map, the logarithmic softMax filter computes the following: result channel in pixel = pixel(x,y,k)) - ln{sum(exp(pixel(x,y,0)) ... exp(pixel(x,y,N-1))} where N is the number of feature channels and y = ln{x} satisfies e^y = x.

Generated automatically by Doxygen for MetalPerformanceShaders.framework from the source code.

Mon Jul 9 2018 Version MetalPerformanceShaders-119.3