ONE - On-device Neural Engine
|
#include <CLInstanceNormalizationLayerEx.h>
Public Member Functions | |
CLInstanceNormalizationLayerEx () | |
void | configure (ICLTensor *input, ICLTensor *output, ICLTensor *gamma=nullptr, ICLTensor *beta=nullptr, float epsilon=1e-12f) |
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 58 of file CLInstanceNormalizationLayerEx.h.
arm_compute::CLInstanceNormalizationLayerEx::CLInstanceNormalizationLayerEx | ( | ) |
void arm_compute::CLInstanceNormalizationLayerEx::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. 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 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 50 of file CLInstanceNormalizationLayerEx.cpp.
|
static |
Static function to check if given info will lead to a valid configuration of CLInstanceNormalizationLayerEx.
[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 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 58 of file CLInstanceNormalizationLayerEx.cpp.
References arm_compute::CLInstanceNormalizationLayerKernelEx::validate().