24.02.1
|
Go to the documentation of this file.
24 #ifndef ARM_COMPUTE_CLFUSEBATCHNORMALIZATION_H
25 #define ARM_COMPUTE_CLFUSEBATCHNORMALIZATION_H
35 class CLCompileContext;
36 class CLFuseBatchNormalizationKernel;
150 std::unique_ptr<CLFuseBatchNormalizationKernel> _fuse_bn_kernel;
FuseBatchNormalizationType fbn_type
Base class for all functions.
Interface for OpenCL tensor.
CLFuseBatchNormalization & operator=(const CLFuseBatchNormalization &)=delete
Prevent instances of this class from being copied (As this class contains pointers)
FuseBatchNormalizationType
Available FuseBatchNormalizationType.
CLFuseBatchNormalization()
Default constructor.
~CLFuseBatchNormalization()
Default destructor.
@ CONVOLUTION
For Convolution weights.
void run() override
Run the kernels contained in the function.
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...
Copyright (c) 2017-2024 Arm Limited.
Basic function to fuse the batch normalization node to a preceding convolution node.
Store the tensor's metadata.
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 input and output tensors.