21.02
|
Basic function to compute a normalization layer. More...
#include <CLNormalizationLayer.h>
Public Member Functions | |
CLNormalizationLayer () | |
Default constructor. More... | |
CLNormalizationLayer (const CLNormalizationLayer &)=delete | |
Prevent instances of this class from being copied. More... | |
CLNormalizationLayer & | operator= (const CLNormalizationLayer &)=delete |
Prevent instances of this class from being copied. More... | |
CLNormalizationLayer (CLNormalizationLayer &&)=delete | |
Prevent instances of this class to be moved. More... | |
CLNormalizationLayer & | operator= (CLNormalizationLayer &&)=delete |
Prevent instances of this class to be moved. More... | |
~CLNormalizationLayer () | |
Default destructor. More... | |
void | configure (ICLTensor *input, ICLTensor *output, const NormalizationLayerInfo &norm_info) |
Set the input and output tensors. More... | |
void | configure (const CLCompileContext &compile_context, ICLTensor *input, ICLTensor *output, const NormalizationLayerInfo &norm_info) |
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... | |
virtual void | prepare () |
Prepare the function for executing. More... | |
Static Public Member Functions | |
static Status | validate (const ITensorInfo *input, const ITensorInfo *output, const NormalizationLayerInfo &norm_info) |
Static function to check if given info will lead to a valid configuration of CLNormalizationLayer. More... | |
Basic function to compute a normalization layer.
This function calls the following CL kernels:
Definition at line 47 of file CLNormalizationLayer.h.
Default constructor.
Definition at line 38 of file CLNormalizationLayer.cpp.
References CLNormalizationLayer::~CLNormalizationLayer().
|
delete |
Prevent instances of this class from being copied.
|
delete |
Prevent instances of this class to be moved.
|
default |
Default destructor.
Referenced by CLNormalizationLayer::CLNormalizationLayer().
void configure | ( | ICLTensor * | input, |
ICLTensor * | output, | ||
const NormalizationLayerInfo & | norm_info | ||
) |
Set the input and output tensors.
[in,out] | input | Source tensor. 3 lower dims represent a single input with dimensions [width, height, IFM], and an optional 4th dimension for batch of inputs. Data types supported: F16/F32 (Written to by the border handler). Data layouts supported: NCHW/NHWC. |
[out] | output | Destination tensor. Dimensions, data type and number of channels must match the input ones. Data types supported: same as input . Data layouts supported: same as input . |
[in] | norm_info | Normalization layer information like the normalization type, normalization size and other parameters. |
Definition at line 46 of file CLNormalizationLayer.cpp.
References CLKernelLibrary::get().
void configure | ( | const CLCompileContext & | compile_context, |
ICLTensor * | input, | ||
ICLTensor * | output, | ||
const NormalizationLayerInfo & | norm_info | ||
) |
Set the input and output tensors.
[in] | compile_context | The compile context to be used. |
[in,out] | input | Source tensor. 3 lower dims represent a single input with dimensions [width, height, IFM], and an optional 4th dimension for batch of inputs. Data types supported: F16/F32 (Written to by the border handler). Data layouts supported: NCHW/NHWC. |
[out] | output | Destination tensor. Dimensions, data type and number of channels must match the input ones. Data types supported: same as input . Data layouts supported: same as input . |
[in] | norm_info | Normalization layer information like the normalization type, normalization size and other parameters. |
Definition at line 51 of file CLNormalizationLayer.cpp.
References ARM_COMPUTE_ERROR_ON, and arm_compute::CONSTANT.
|
delete |
Prevent instances of this class from being copied.
|
delete |
Prevent instances of this class to be moved.
|
overridevirtual |
Run the kernels contained in the function.
For Neon kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 67 of file CLNormalizationLayer.cpp.
References CLScheduler::enqueue(), and CLScheduler::get().
|
static |
Static function to check if given info will lead to a valid configuration of CLNormalizationLayer.
[in] | input | Source tensor. 3 lower dims represent a single input with dimensions [width, height, IFM], and an optional 4th dimension for batch of inputs. Data types supported: F16/F32. Data layouts supported: NCHW/NHWC. |
[in] | output | Destination tensor. Dimensions, data type and number of channels must match the input ones. Data layouts supported: same as input . |
[in] | norm_info | Normalization layer information like the normalization type, normalization size and other parameters. |
Definition at line 62 of file CLNormalizationLayer.cpp.
References CLNormalizationLayerKernel::validate().
Referenced by arm_compute::test::validation::DATA_TEST_CASE().