23.08
|
Go to the documentation of this file.
36 struct NEMaxUnpoolingLayer::Impl
38 const ITensor *
src{
nullptr };
39 const ITensor *indices{
nullptr };
40 ITensor *
dst{
nullptr };
41 std::unique_ptr<cpu::CpuMaxUnpooling> op{
nullptr };
47 : _fill_func(), _impl()
56 _fill_func = std::make_unique<NEFill>();
57 _impl = std::make_unique<Impl>();
59 _impl->indices = indices;
62 _impl->op = std::make_unique<cpu::CpuMaxUnpooling>();
63 _fill_func->configure(output, zero_value);
64 _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-2023 Arm Limited.
#define ARM_COMPUTE_RETURN_ERROR_ON_NULLPTR(...)
Store the tensor's metadata.
#define ARM_COMPUTE_LOG_PARAMS(...)
NEMaxUnpoolingLayer()
Constructor.