ARM Compute Library
17.03.1
|
Basic function to compute a SoftmaxLayer. More...
#include <CLSoftmaxLayer.h>
Public Member Functions | |
CLSoftmaxLayer () | |
Constructor. More... | |
void | configure (const ICLTensor *input, ICLTensor *output) |
Set the input and output tensors. More... | |
void | run () override |
Run the kernels contained in the function. More... | |
Public Member Functions inherited from IFunction | |
virtual | ~IFunction ()=default |
Destructor. More... | |
Basic function to compute a SoftmaxLayer.
Softmax is calculated by :
\[ out = exp(x - max(x)) / sum(exp(x - max(x))) \]
This function runs the following kernels:
Definition at line 45 of file CLSoftmaxLayer.h.
CLSoftmaxLayer | ( | ) |
Constructor.
Set the input and output tensors.
[in] | input | Source tensor. Data types supported: F16, F32. Number of channels must be 1. |
[out] | output | Destination tensor. Matching input type and channel number. |
|
overridevirtual |
Run the kernels contained in the function.
For NEON kernels:
For OpenCL kernels:
Implements IFunction.