24.02
|
Go to the documentation of this file.
34 struct NEDepthConvertLayer::Impl
36 const ITensor *
src{
nullptr};
37 ITensor *
dst{
nullptr};
38 std::unique_ptr<cpu::CpuCast> op{
nullptr};
58 _impl->op = std::make_unique<cpu::CpuCast>();
59 _impl->op->configure(_impl->src->info(), _impl->dst->info(), policy);
SimpleTensor< float > src
Interface for CPU tensor.
static Status validate(const ITensorInfo *input, const ITensorInfo *output, ConvertPolicy policy, uint32_t shift=0)
Static function to check if given info will lead to a valid configuration of NEDepthConvertLayer.
#define ARM_COMPUTE_ERROR_ON_NULLPTR(...)
Basic function to run cpu::kernels::CpuCastKernel.
#define ARM_COMPUTE_ERROR_ON(cond)
If the condition is true then an error message is printed and an exception thrown.
NEDepthConvertLayer()
Constructor.
#define ARM_COMPUTE_RETURN_ERROR_ON(cond)
If the condition is true, an error is returned.
static Status validate(const ITensorInfo *src, const ITensorInfo *dst, ConvertPolicy policy)
Static function to check if given info will lead to a valid configuration.
~NEDepthConvertLayer()
Destructor.
#define ARM_COMPUTE_UNUSED(...)
To avoid unused variables warnings.
NEDepthConvertLayer & operator=(const NEDepthConvertLayer &)=delete
Prevent instances of this class from being copied (As this class contains pointers)
void configure(const ITensor *input, ITensor *output, ConvertPolicy policy, uint32_t shift=0)
Initialize the function's source, destination.
void run() override
Run the kernels contained in the function.
Copyright (c) 2017-2024 Arm Limited.
ConvertPolicy
Policy to handle integer overflow.
Store the tensor's metadata.