Compute Library
18.05
|
Interface to convert the 2D Fully Connected weights from NCHW to NHWC or vice versa. More...
#include <NEConvertFullyConnectedWeightsKernel.h>
Public Member Functions | |
const char * | name () const override |
Name of the kernel. More... | |
NEConvertFullyConnectedWeightsKernel () | |
Default constructor. More... | |
NEConvertFullyConnectedWeightsKernel (const NEConvertFullyConnectedWeightsKernel &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEConvertFullyConnectedWeightsKernel & | operator= (const NEConvertFullyConnectedWeightsKernel &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEConvertFullyConnectedWeightsKernel (NEConvertFullyConnectedWeightsKernel &&)=default | |
Allow instances of this class to be moved. More... | |
NEConvertFullyConnectedWeightsKernel & | operator= (NEConvertFullyConnectedWeightsKernel &&)=default |
Allow instances of this class to be moved. More... | |
~NEConvertFullyConnectedWeightsKernel ()=default | |
Default destructor. More... | |
void | configure (const ITensor *input, ITensor *output, const TensorShape &original_input_shape, DataLayout data_layout) |
Set the input and output tensor. More... | |
void | run (const Window &window, const ThreadInfo &info) override |
Execute the kernel on the passed window. More... | |
Public Member Functions inherited from ICPPKernel | |
virtual | ~ICPPKernel ()=default |
Default destructor. More... | |
Public Member Functions inherited from IKernel | |
IKernel () | |
Constructor. More... | |
virtual | ~IKernel ()=default |
Destructor. More... | |
virtual bool | is_parallelisable () const |
Indicates whether or not the kernel is parallelisable. More... | |
virtual BorderSize | border_size () const |
The size of the border for that kernel. More... | |
const Window & | window () const |
The maximum window the kernel can be executed on. 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 NEConvertFullyConnectedWeightsKernel. More... | |
Interface to convert the 2D Fully Connected weights from NCHW to NHWC or vice versa.
Definition at line 41 of file NEConvertFullyConnectedWeightsKernel.h.
Default constructor.
Referenced by NEConvertFullyConnectedWeightsKernel::name().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
Allow instances of this class to be moved.
|
default |
Default destructor.
Referenced by NEConvertFullyConnectedWeightsKernel::name().
void configure | ( | const ITensor * | input, |
ITensor * | output, | ||
const TensorShape & | original_input_shape, | ||
DataLayout | data_layout | ||
) |
Set the input and output tensor.
[in] | input | Source weights tensor to convert. Must be 2 dimensional. Data types supported: U8/S8/QS8/QASYMM8/U16/S16/QS16/U32/S32/QS32/F16/F32. |
[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). Must be in NCHW format. |
[in] | data_layout | The data layout the weights have been trained in. |
Referenced by NEConvertFullyConnectedWeightsKernel::name().
|
inlineoverridevirtual |
Name of the kernel.
Implements ICPPKernel.
Definition at line 44 of file NEConvertFullyConnectedWeightsKernel.h.
References NEConvertFullyConnectedWeightsKernel::configure(), arm_compute::test::validation::info(), NEConvertFullyConnectedWeightsKernel::NEConvertFullyConnectedWeightsKernel(), NEConvertFullyConnectedWeightsKernel::operator=(), NEConvertFullyConnectedWeightsKernel::run(), NEConvertFullyConnectedWeightsKernel::validate(), IKernel::window(), and NEConvertFullyConnectedWeightsKernel::~NEConvertFullyConnectedWeightsKernel().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
Referenced by NEConvertFullyConnectedWeightsKernel::name().
|
default |
Allow instances of this class to be moved.
|
overridevirtual |
Execute the kernel on the passed window.
[in] | window | Region on which to execute the kernel. (Must be a region of the window returned by window()) |
[in] | info | Info about executing thread and CPU. |
Implements ICPPKernel.
Referenced by NEConvertFullyConnectedWeightsKernel::name().
|
static |
Static function to check if given info will lead to a valid configuration of NEConvertFullyConnectedWeightsKernel.
[in] | input | Source weights tensor info to convert. Must be 2 dimensional. Data types supported: U8/S8/QS8/QASYMM8/U16/S16/QS16/U32/S32/QS32/F16/F32. |
[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). Must be in NCHW format. |
[in] | data_layout | The data layout the weights have been trained in. |
Referenced by NEConvertFullyConnectedWeightsKernel::name().