ONE - On-device Neural Engine
|
#include <NEInstanceNormalizationLayerKernelEx.h>
Public Member Functions | |
const char * | name () const override |
NEInstanceNormalizationLayerKernelEx () | |
NEInstanceNormalizationLayerKernelEx (const NEInstanceNormalizationLayerKernelEx &)=delete | |
NEInstanceNormalizationLayerKernelEx & | operator= (const NEInstanceNormalizationLayerKernelEx &)=delete |
NEInstanceNormalizationLayerKernelEx (NEInstanceNormalizationLayerKernelEx &&)=default | |
NEInstanceNormalizationLayerKernelEx & | operator= (NEInstanceNormalizationLayerKernelEx &&)=default |
~NEInstanceNormalizationLayerKernelEx ()=default | |
void | configure (ITensor *input, ITensor *output, ITensor *gamma=nullptr, ITensor *beta=nullptr, float epsilon=1e-12f) |
void | run (const Window &window, const ThreadInfo &info) 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 NEInstanceNormalizationLayerKernelEx.h.
arm_compute::NEInstanceNormalizationLayerKernelEx::NEInstanceNormalizationLayerKernelEx | ( | ) |
Default constructor
Definition at line 241 of file NEInstanceNormalizationLayerKernelEx.cpp.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Allow instances of this class to be moved
|
default |
Default destructor
References validate().
void arm_compute::NEInstanceNormalizationLayerKernelEx::configure | ( | ITensor * | input, |
ITensor * | output, | ||
ITensor * | gamma = nullptr , |
||
ITensor * | 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 In case of output tensor = nullptr this tensor will store the result of the normalization. |
[out] | output | Destination tensor. Data types and data layouts supported: same as input . |
[in] | gamma | (Optional) The scale scalar value applied to the normalized tensor. Defaults to 1.0 |
[in] | beta | (Optional) The offset scalar value applied to the normalized tensor. Defaults to 0.0 |
[in] | epsilon | (Optional) Lower bound value for the normalization. Defaults to 1e-12 |
Definition at line 247 of file NEInstanceNormalizationLayerKernelEx.cpp.
Referenced by arm_compute::NEInstanceNormalizationLayerEx::configure().
|
inlineoverride |
Definition at line 54 of file NEInstanceNormalizationLayerKernelEx.h.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Allow instances of this class to be moved
|
override |
Definition at line 294 of file NEInstanceNormalizationLayerKernelEx.cpp.
References info.
Referenced by package.infer.session::inference().
|
static |
Static function to check if given info will lead to a valid configuration of NEInstanceNormalizationLayer.
[in] | input | Source tensor info. Data types supported: F16/F32. Data layout supported: NCHW |
[in] | output | Destination tensor info. Data types and data layouts supported: same as input . |
[in] | gamma | (Optional) The scale scalar value applied to the normalized tensor. Defaults to 1.0 |
[in] | beta | (Optional) The offset scalar value applied to the normalized tensor. Defaults to 0.0 |
[in] | epsilon | (Optional) Lower bound value for the normalization. Defaults to 1e-12 |
Definition at line 283 of file NEInstanceNormalizationLayerKernelEx.cpp.
Referenced by arm_compute::NEInstanceNormalizationLayerEx::validate(), and ~NEInstanceNormalizationLayerKernelEx().