24.02.1
|
Go to the documentation of this file.
24 #ifndef ARM_COMPUTE_CLFUSEBATCHNORMALIZATIONKERNEL_H
25 #define ARM_COMPUTE_CLFUSEBATCHNORMALIZATIONKERNEL_H
143 bool _run_in_place_weights;
144 bool _run_in_place_bias;
FuseBatchNormalizationType fbn_type
OpenCL kernel to fuse the batch normalization node to a preceding convolution node.
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 CLFuseBatchNormalization...
~CLFuseBatchNormalizationKernel()=default
Default destructor.
Interface for OpenCL tensor.
void configure(const ICLTensor *input_weights, const ICLTensor *bn_mean, const ICLTensor *bn_var, ICLTensor *fused_weights, ICLTensor *fused_bias, const ICLTensor *input_bias=nullptr, const ICLTensor *bn_beta=nullptr, const ICLTensor *bn_gamma=nullptr, float epsilon=0.001f, FuseBatchNormalizationType fbn_type=FuseBatchNormalizationType::CONVOLUTION)
Set the source, destination of the kernel.
FuseBatchNormalizationType
Available FuseBatchNormalizationType.
void run(const Window &window, cl::CommandQueue &queue) override
Enqueue the OpenCL kernel to process the given window on the passed OpenCL command queue.
@ CONVOLUTION
For Convolution weights.
Common interface for all the OpenCL kernels.
CLFuseBatchNormalizationKernel & operator=(const CLFuseBatchNormalizationKernel &)=delete
Prevent instances of this class from being copied (As this class contains pointers)
const Window & window() const
The maximum window the kernel can be executed on.
Describe a multidimensional execution window.
Copyright (c) 2017-2024 Arm Limited.
Store the tensor's metadata.
CLFuseBatchNormalizationKernel()
Default constructor.