ONE - On-device Neural Engine
|
#include <NEInstanceNormalizationLayerEx.h>
Public Member Functions | |
NEInstanceNormalizationLayerEx (std::shared_ptr< IMemoryManager > memory_manager=nullptr) | |
void | configure (ITensor *input, ITensor *output, ITensor *gamma, ITensor *beta, float epsilon=1e-12f) |
void | run () 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) |
Basic function to perform a Instance normalization.
This function runs the following kernels:
Definition at line 64 of file NEInstanceNormalizationLayerEx.h.
arm_compute::NEInstanceNormalizationLayerEx::NEInstanceNormalizationLayerEx | ( | std::shared_ptr< IMemoryManager > | memory_manager = nullptr | ) |
Constructor
Definition at line 48 of file NEInstanceNormalizationLayerEx.cpp.
void arm_compute::NEInstanceNormalizationLayerEx::configure | ( | ITensor * | input, |
ITensor * | output, | ||
ITensor * | gamma, | ||
ITensor * | beta, | ||
float | epsilon = 1e-12f |
||
) |
Set the input and output tensors.
[in,out] | input | Source tensor. 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 |
[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 55 of file NEInstanceNormalizationLayerEx.cpp.
References arm_compute::NEInstanceNormalizationLayerKernelEx::configure().
|
override |
Definition at line 95 of file NEInstanceNormalizationLayerEx.cpp.
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: NHWC, 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 86 of file NEInstanceNormalizationLayerEx.cpp.
References arm_compute::NEInstanceNormalizationLayerKernelEx::validate().