24.02
|
Go to the documentation of this file.
35 struct NEDirectConvolutionLayer::Impl
37 ITensor *
src{
nullptr};
38 const ITensor *weights{
nullptr};
39 const ITensor *
bias{
nullptr};
40 ITensor *
dst{
nullptr};
41 std::unique_ptr<cpu::CpuDirectConv2d> op{
nullptr};
45 : _memory_manager(std::move(memory_manager)), _impl(std::make_unique<Impl>())
58 _impl->weights = weights;
61 _impl->op = std::make_unique<cpu::CpuDirectConv2d>(_memory_manager);
62 _impl->op->configure(
input->info(), weights->
info(), (
bias !=
nullptr ?
bias->info() :
nullptr), output->
info(),
SimpleTensor< float > src
NEDirectConvolutionLayer(std::shared_ptr< IMemoryManager > memory_manager=nullptr)
Constructor.
~NEDirectConvolutionLayer()
Default destructor.
void run() override
Run the kernels contained in the function.
Interface for CPU tensor.
void add_tensor(int id, ITensor *tensor)
Add tensor to the pack.
static Status validate(const ITensorInfo *src, const ITensorInfo *weights, const ITensorInfo *bias, const ITensorInfo *dst, const PadStrideInfo &conv_info, const ActivationLayerInfo &act_info=ActivationLayerInfo())
Static function to check if given info will lead to a valid configuration.
Activation Layer Information class.
virtual ITensorInfo * info() const =0
Interface to be implemented by the child class to return the tensor's metadata.
void configure(ITensor *input, const ITensor *weights, const ITensor *bias, ITensor *output, const PadStrideInfo &conv_info, const ActivationLayerInfo &act_info=ActivationLayerInfo())
Set the input, weights, biases and output tensors.
Copyright (c) 2017-2024 Arm Limited.
Store the tensor's metadata.
static Status validate(const ITensorInfo *input, const ITensorInfo *weights, const ITensorInfo *bias, const ITensorInfo *output, const PadStrideInfo &conv_info, const ActivationLayerInfo &act_info=ActivationLayerInfo())
Static function to check if given info will lead to a valid configuration of NEDirectConvolutionLayer...