24 #ifndef ARM_COMPUTE_NECONVOLUTIONLAYER_H 25 #define ARM_COMPUTE_NECONVOLUTIONLAYER_H 157 std::shared_ptr<IMemoryManager> _memory_manager;
158 std::unique_ptr<IFunction> _function;
Base class for all functions.
void run() override
Run the kernels contained in the function.
void configure(ITensor *input, const ITensor *weights, const ITensor *biases, ITensor *output, const PadStrideInfo &conv_info, const WeightsInfo &weights_info=WeightsInfo(), const Size2D &dilation=Size2D(1U, 1U), const ActivationLayerInfo &act_info=ActivationLayerInfo(), bool enable_fast_math=false, unsigned int num_groups=1)
Set the input and output tensors.
Store the tensor's metadata.
ConvolutionMethod
Available ConvolutionMethod.
NEConvolutionLayer & operator=(const NEConvolutionLayer &)=delete
Prevent instances of this class from being copied (As this class contains pointers) ...
Activation Layer Information class.
Interface for Neon tensor.
Copyright (c) 2017-2021 Arm Limited.
Convolution Layer Weights Information class.
NEConvolutionLayer(std::shared_ptr< IMemoryManager > memory_manager=nullptr)
Constructor.
Basic function to simulate a convolution layer.
const unsigned int num_groups
Padding and stride information class.
~NEConvolutionLayer()=default
Default destructor.
static ConvolutionMethod get_convolution_method(const ITensorInfo *input, const ITensorInfo *weights, const ITensorInfo *output, const PadStrideInfo &conv_info, const WeightsInfo &weights_info=WeightsInfo(), const Size2D &dilation=Size2D(1U, 1U), const ActivationLayerInfo &act_info=ActivationLayerInfo(), bool enable_fast_math=false)
Static function to check if given info will return the convolution called by NEConvolutionLayer.
Class for specifying the size of an image or rectangle.
static Status validate(const ITensorInfo *input, const ITensorInfo *weights, const ITensorInfo *biases, const ITensorInfo *output, const PadStrideInfo &conv_info, const WeightsInfo &weights_info=WeightsInfo(), const Size2D &dilation=Size2D(1U, 1U), const ActivationLayerInfo &act_info=ActivationLayerInfo(), bool enable_fast_math=false, unsigned int num_groups=1)
Static function to check if given info will lead to a valid configuration of NEConvolutionLayer.
void prepare() override
Prepare the function for executing.