21.02
|
Basic function to run NEConvertFullyConnectedWeightsKernel. More...
#include <NEConvertFullyConnectedWeights.h>
Public Member Functions | |
NEConvertFullyConnectedWeights () | |
Default constructor. More... | |
NEConvertFullyConnectedWeights (const NEConvertFullyConnectedWeights &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEConvertFullyConnectedWeights & | operator= (const NEConvertFullyConnectedWeights &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEConvertFullyConnectedWeights (NEConvertFullyConnectedWeights &&)=delete | |
Prevent instances of this class from being moved (As this class contains non movable objects) More... | |
NEConvertFullyConnectedWeights & | operator= (NEConvertFullyConnectedWeights &&)=delete |
Prevent instances of this class from being moved (As this class contains non movable objects) More... | |
~NEConvertFullyConnectedWeights () | |
Default destructor. More... | |
void | configure (const ITensor *input, ITensor *output, const TensorShape &original_input_shape, DataLayout data_layout) |
Initialize the function. More... | |
void | run () override |
Run the kernels contained in the function. More... | |
Public Member Functions inherited from IFunction | |
virtual | ~IFunction ()=default |
Destructor. More... | |
virtual void | prepare () |
Prepare the function for executing. More... | |
Static Public Member Functions | |
static Status | validate (const ITensorInfo *input, const ITensorInfo *output, const TensorShape &original_input_shape, DataLayout data_layout) |
Static function to check if given info will lead to a valid configuration of NEConvertFullyConnectedWeights. More... | |
Basic function to run NEConvertFullyConnectedWeightsKernel.
Definition at line 40 of file NEConvertFullyConnectedWeights.h.
Default constructor.
Definition at line 31 of file NEConvertFullyConnectedWeights.cpp.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
delete |
Prevent instances of this class from being moved (As this class contains non movable objects)
|
default |
Default destructor.
void configure | ( | const ITensor * | input, |
ITensor * | output, | ||
const TensorShape & | original_input_shape, | ||
DataLayout | data_layout | ||
) |
Initialize the function.
[in] | input | Source weights tensor to convert. Must be 2 dimensional. Data types supported: All. |
[out] | output | The converted weights tensor. Shape and Data Type: Same as input . |
[in] | original_input_shape | Shape of the original input tensor (the one entering fully connected layer). |
[in] | data_layout | The data layout the weights have been trained in. |
Definition at line 36 of file NEConvertFullyConnectedWeights.cpp.
Referenced by NEFullyConnectedLayer::configure().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
delete |
Prevent instances of this class from being moved (As this class contains non movable objects)
|
overridevirtual |
Run the kernels contained in the function.
For Neon kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 49 of file NEConvertFullyConnectedWeights.cpp.
References Window::DimZ, Scheduler::get(), and IScheduler::schedule().
Referenced by NEFullyConnectedLayer::prepare().
|
static |
Static function to check if given info will lead to a valid configuration of NEConvertFullyConnectedWeights.
[in] | input | Source weights tensor info to convert. Must be 2 dimensional. Data types supported: All. |
[in] | output | The converted weights tensor info. Shape and Data Type: Same as input . |
[in] | original_input_shape | Shape of the original input tensor (the one entering fully connected layer). |
[in] | data_layout | The data layout the weights have been trained in. |
Definition at line 43 of file NEConvertFullyConnectedWeights.cpp.
References NEConvertFullyConnectedWeightsKernel::validate().
Referenced by NEFullyConnectedLayer::validate().