ONE - On-device Neural Engine
|
#include <CLInstanceNormalizationLayerKernelEx.h>
Public Member Functions | |
CLInstanceNormalizationLayerKernelEx () | |
CLInstanceNormalizationLayerKernelEx (const CLInstanceNormalizationLayerKernelEx &)=delete | |
CLInstanceNormalizationLayerKernelEx & | operator= (const CLInstanceNormalizationLayerKernelEx &)=delete |
CLInstanceNormalizationLayerKernelEx (CLInstanceNormalizationLayerKernelEx &&)=default | |
CLInstanceNormalizationLayerKernelEx & | operator= (CLInstanceNormalizationLayerKernelEx &&)=default |
~CLInstanceNormalizationLayerKernelEx ()=default | |
void | configure (ICLTensor *input, ICLTensor *output, ICLTensor *gamma=nullptr, ICLTensor *beta=nullptr, float epsilon=1e-12f) |
void | run (const Window &window, cl::CommandQueue &queue) override |
Static Public Member Functions | |
static Status | validate (const ITensorInfo *input, const ITensorInfo *output, const ITensorInfo *gamma=nullptr, const ITensorInfo *beta=nullptr, float epsilon=1e-12f) |
Interface for performing an instance normalization
Definition at line 51 of file CLInstanceNormalizationLayerKernelEx.h.
arm_compute::CLInstanceNormalizationLayerKernelEx::CLInstanceNormalizationLayerKernelEx | ( | ) |
Constructor
Definition at line 100 of file CLInstanceNormalizationLayerKernelEx.cpp.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Default Move Constructor.
|
default |
Default destructor
References validate().
void arm_compute::CLInstanceNormalizationLayerKernelEx::configure | ( | ICLTensor * | input, |
ICLTensor * | output, | ||
ICLTensor * | gamma = nullptr , |
||
ICLTensor * | beta = nullptr , |
||
float | epsilon = 1e-12f |
||
) |
Set the input and output tensors.
[in,out] | input | Source tensor. Data types supported: F16/F32. Data layout supported: NCHW |
[out] | output | Destination tensor. Data types and data layouts supported: same as input . |
[in] | gamma | (Optional) The scale tensor applied to the normalized tensor. Defaults to nullptr |
[in] | beta | (Optional) The offset tensor applied to the normalized tensor. Defaults to nullptr |
[in] | epsilon | (Optional) Lower bound value for the normalization. Defaults to 1e-12 |
Definition at line 106 of file CLInstanceNormalizationLayerKernelEx.cpp.
References arm_compute::CLKernelLibraryEx::create_kernel(), and arm_compute::CLKernelLibraryEx::get().
|
default |
Default move assignment operator
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
override |
Definition at line 158 of file CLInstanceNormalizationLayerKernelEx.cpp.
Referenced by package.infer.session::inference().
|
static |
Static function to check if given info will lead to a valid configuration of CLInstanceNormalizationLayerEx.
[in] | input | Source tensor info. In case of output tensor = nullptr this tensor will store the result of the normalization. Data types supported: F16/F32. Data layout supported: NHWC, NCHW |
[in] | output | Destination tensor info. Data types and data layouts supported: same as input . |
[in] | gamma | (Optional) The scale tensor applied to the normalized tensor. Defaults to nullptr |
[in] | beta | (Optional) The offset tensor applied to the normalized tensor. Defaults to nullptr |
[in] | epsilon | (Optional) Lower bound value for the normalization. Defaults to 1e-12 |
Definition at line 147 of file CLInstanceNormalizationLayerKernelEx.cpp.
Referenced by arm_compute::CLInstanceNormalizationLayerEx::validate(), and ~CLInstanceNormalizationLayerKernelEx().