24.02
|
Go to the documentation of this file.
37 struct NEMaxUnpoolingLayer::Impl
39 const ITensor *
src{
nullptr};
40 const ITensor *indices{
nullptr};
41 ITensor *
dst{
nullptr};
42 std::unique_ptr<cpu::CpuMaxUnpooling> op{
nullptr};
59 _fill_func = std::make_unique<NEFill>();
60 _impl = std::make_unique<Impl>();
62 _impl->indices = indices;
65 _impl->op = std::make_unique<cpu::CpuMaxUnpooling>();
66 _fill_func->configure(output, zero_value);
67 _impl->op->configure(
input->info(), indices->
info(), output->
info(), pool_info);
SimpleTensor< float > src
Class describing the value of a pixel for any image format.
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.
~NEMaxUnpoolingLayer()
Default destructor.
#define ARM_COMPUTE_RETURN_ON_ERROR(status)
Checks if a status contains an error and returns it.
static Status validate(const ITensorInfo *input, const ITensorInfo *indices, const ITensorInfo *output, const PoolingLayerInfo &pool_info)
Static function to check if given info will lead to a valid configuration of NEMaxUnpoolingLayer.
virtual ITensorInfo * info() const =0
Interface to be implemented by the child class to return the tensor's metadata.
Pooling Layer Information struct.
static Status validate(const ITensorInfo *src, const ITensorInfo *indices, const ITensorInfo *dst, const PoolingLayerInfo &pool_info)
Static function to check if given info will lead to a valid configuration.
void configure(ITensor *input, ITensor *indices, ITensor *output, const PoolingLayerInfo &pool_info)
Set the input and output tensors.
Copyright (c) 2017-2024 Arm Limited.
#define ARM_COMPUTE_RETURN_ERROR_ON_NULLPTR(...)
Store the tensor's metadata.
#define ARM_COMPUTE_LOG_PARAMS(...)
NEMaxUnpoolingLayer()
Constructor.