24 #ifndef ARM_COMPUTE_NEFUSEBATCHNORMALIZATIONKERNEL_H 25 #define ARM_COMPUTE_NEFUSEBATCHNORMALIZATIONKERNEL_H 38 const char *
name()
const override 40 return "NEFuseBatchNormalizationKernel";
70 const ITensor *input_bias =
nullptr,
const ITensor *bn_beta =
nullptr,
const ITensor *bn_gamma =
nullptr,
107 bool _run_in_place_weights;
108 bool _run_in_place_bias;
110 using FuseBatchNormFunction = void(
const ITensor *input_weights,
const ITensor *input_bias,
ITensor *fused_weights,
ITensor *fused_bias,
113 FuseBatchNormFunction *_func;
static Status validate(const ITensorInfo *input_weights, const ITensorInfo *bn_mean, const ITensorInfo *bn_var, const ITensorInfo *fused_weights, const ITensorInfo *fused_bias, const ITensorInfo *input_bias=nullptr, const ITensorInfo *bn_beta=nullptr, const ITensorInfo *bn_gamma=nullptr, float epsilon=0.001f, FuseBatchNormalizationType fbn_type=FuseBatchNormalizationType::CONVOLUTION)
Static function to check if given info will lead to a valid configuration of NEFuseBatchNormalization...
const Window & window() const
The maximum window the kernel can be executed on.
~NEFuseBatchNormalizationKernel()=default
Default destructor.
OpenNE kernel to fuse the batch normalization node to a preceding convolution node.
const char * name() const override
Name of the kernel.
Common interface for all kernels implemented in C++.
NEFuseBatchNormalizationKernel & operator=(const NEFuseBatchNormalizationKernel &)=delete
Prevent instances of this class from being copied (As this class contains pointers) ...
Store the tensor's metadata.
Interface for Neon tensor.
Copyright (c) 2017-2021 Arm Limited.
void run(const Window &window, const ThreadInfo &info) override
Execute the kernel on the passed window.
FuseBatchNormalizationType
Available FuseBatchNormalizationType.
void configure(const ITensor *input_weights, const ITensor *bn_mean, const ITensor *bn_var, ITensor *fused_weights, ITensor *fused_bias, const ITensor *input_bias=nullptr, const ITensor *bn_beta=nullptr, const ITensor *bn_gamma=nullptr, float epsilon=0.001f, FuseBatchNormalizationType fbn_type=FuseBatchNormalizationType::CONVOLUTION)
Set the source, destination of the kernel.
ScaleKernelInfo info(interpolation_policy, default_border_mode, PixelValue(), sampling_policy, false)
Information about executing thread and CPU.
NEFuseBatchNormalizationKernel()
Default constructor.
Describe a multidimensional execution window.