24.02.1
|
Basic function to execute mean and standard deviation normalization by calling CLMeanStdDevNormalizationKernel. More...
#include <CLMeanStdDevNormalizationLayer.h>
Public Member Functions | |
void | configure (ICLTensor *input, ICLTensor *output=nullptr, float epsilon=1e-8f) |
Initialise the function's input and outputs. More... | |
void | configure (const CLCompileContext &compile_context, ICLTensor *input, ICLTensor *output=nullptr, float epsilon=1e-8f) |
Initialise the function's input and outputs. More... | |
Public Member Functions inherited from ICLSimpleFunction | |
ICLSimpleFunction (CLRuntimeContext *ctx=nullptr) | |
Constructor. More... | |
ICLSimpleFunction (const ICLSimpleFunction &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
ICLSimpleFunction (ICLSimpleFunction &&)=default | |
Default move constructor. More... | |
ICLSimpleFunction & | operator= (const ICLSimpleFunction &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
ICLSimpleFunction & | operator= (ICLSimpleFunction &&)=default |
Default move assignment operator. More... | |
~ICLSimpleFunction () | |
Default destructor. More... | |
void | run () override final |
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=nullptr, float epsilon=1e-8f) |
Static function to check if given info will lead to a valid configuration of CLMeanStdDevNormalizationKernel. More... | |
Basic function to execute mean and standard deviation normalization by calling CLMeanStdDevNormalizationKernel.
Definition at line 37 of file CLMeanStdDevNormalizationLayer.h.
void configure | ( | const CLCompileContext & | compile_context, |
ICLTensor * | input, | ||
ICLTensor * | output = nullptr , |
||
float | epsilon = 1e-8f |
||
) |
Initialise the function's input and outputs.
[in] | compile_context | The compile context to be used. |
[in,out] | input | Input tensor with 2 dimensions. Data types supported: F16/F32. |
[out] | output | (Optional) Destination tensor. It can be nullptr in case of in-place computation. Data type supported: same as input |
[in] | epsilon | (Optional) Small float to avoid division by zero in case of zero standard deviation. Defaults to 1e-8. |
Definition at line 38 of file CLMeanStdDevNormalizationLayer.cpp.
References ARM_COMPUTE_LOG_PARAMS, arm_compute::quantization::epsilon, and arm_compute::test::validation::input.
Initialise the function's input and outputs.
Valid data layouts:
Valid data type configurations:
src | dst |
---|---|
F32 | F32 |
F16 | F16 |
[in,out] | input | Input tensor with 2 dimensions. Data types supported: F16/F32. |
[out] | output | (Optional) Destination tensor. It can be nullptr in case of in-place computation. Data type supported: same as input |
[in] | epsilon | (Optional) Small float to avoid division by zero in case of zero standard deviation. Defaults to 1e-8. |
Definition at line 33 of file CLMeanStdDevNormalizationLayer.cpp.
References arm_compute::quantization::epsilon, CLKernelLibrary::get(), and arm_compute::test::validation::input.
Referenced by CLLSTMLayer::configure().
|
static |
Static function to check if given info will lead to a valid configuration of CLMeanStdDevNormalizationKernel.
[in] | input | Source tensor info with 2 dimensions. In case of output tensor info = nullptr, this tensor will store the result of the normalization. Data types supported: F16/F32. |
[in] | output | (Optional) Destination tensor info. It can be nullptr in case of in-place computation. Data type supported: same as input |
[in] | epsilon | (Optional) Small float to avoid division by zero in case of zero standard deviation. Defaults to 1e-8. |
Definition at line 49 of file CLMeanStdDevNormalizationLayer.cpp.
References arm_compute::quantization::epsilon, arm_compute::test::validation::input, and CLMeanStdDevNormalizationKernel::validate().
Referenced by CLLSTMLayer::validate().