ARM Compute Library
17.03.1
|
Basic function to compute a Fully Connected layer on NEON. More...
#include <NEFullyConnectedLayer.h>
Public Member Functions | |
NEFullyConnectedLayer () | |
Constructor. More... | |
void | configure (ITensor *input, ITensor *weights, const ITensor *biases, ITensor *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 Fully Connected layer on NEON.
This function calls the following NEON kernels:
Definition at line 44 of file NEFullyConnectedLayer.h.
Constructor.
Set the input and output tensors.
[in,out] | input | Source tensor. Data type supported: F32. (Written to only if NEGEMM needs to pad with zeros the tensor) |
[in,out] | weights | Weights tensor. The weights can be 2 dimensional or 4 dimensional. Data type supported: Same as input . (Written to only if NEGEMM needs to pad with zeros the tensor) |
[in] | biases | Bias tensor. Data type supported:Same as input . |
[out] | output | Destination tensor. Data type supported: Same as input . |
|
overridevirtual |
Run the kernels contained in the function.
For NEON kernels:
For OpenCL kernels:
Implements IFunction.