24 #ifndef ARM_COMPUTE_CLFUSEBATCHNORMALIZATIONKERNEL_H 25 #define ARM_COMPUTE_CLFUSEBATCHNORMALIZATIONKERNEL_H 122 bool _run_in_place_weights;
123 bool _run_in_place_bias;
const Window & window() const
The maximum window the kernel can be executed on.
~CLFuseBatchNormalizationKernel()=default
Default destructor.
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...
Store the tensor's metadata.
Common interface for all the OpenCL kernels.
Copyright (c) 2017-2021 Arm Limited.
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...
CLFuseBatchNormalizationKernel & operator=(const CLFuseBatchNormalizationKernel &)=delete
Prevent instances of this class from being copied (As this class contains pointers) ...
Interface for OpenCL tensor.
CLFuseBatchNormalizationKernel()
Default constructor.
Describe a multidimensional execution window.