24.02.1
|
Go to the documentation of this file.
38 struct CLDepthConvertLayer::Impl
40 const ICLTensor *
src{
nullptr};
41 ICLTensor *
dst{
nullptr};
42 std::unique_ptr<opencl::ClCast> op{
nullptr};
72 _impl->op = std::make_unique<opencl::ClCast>();
73 _impl->op->configure(compile_context, _impl->src->info(), _impl->dst->info(), policy);
CLDepthConvertLayer()
Constructor.
SimpleTensor< float > src
Interface for OpenCL tensor.
Basic function to run opencl::kernels::ClCastKernel.
static CLKernelLibrary & get()
Access the KernelLibrary singleton.
Manages all the OpenCL kernels compilation and caching, provides accessors for the OpenCL Context.
#define ARM_COMPUTE_ERROR_ON_NULLPTR(...)
#define ARM_COMPUTE_ERROR_ON(cond)
If the condition is true then an error message is printed and an exception thrown.
void run() override
Run the kernels contained in the function.
#define ARM_COMPUTE_RETURN_ERROR_ON(cond)
If the condition is true, an error is returned.
CLDepthConvertLayer & operator=(const CLDepthConvertLayer &)=delete
Prevent instances of this class from being copied (As this class contains pointers)
#define ARM_COMPUTE_UNUSED(...)
To avoid unused variables warnings.
void configure(const ICLTensor *input, ICLTensor *output, ConvertPolicy policy, uint32_t shift)
Initialize the function's source, destination.
Copyright (c) 2017-2024 Arm Limited.
ConvertPolicy
Policy to handle integer overflow.
Store the tensor's metadata.
static Status validate(const ITensorInfo *src, const ITensorInfo *dst, ConvertPolicy policy)
Static function to check if given info will lead to a valid configuration.
~CLDepthConvertLayer()
Destructor.
#define ARM_COMPUTE_LOG_PARAMS(...)
static Status validate(const ITensorInfo *input, const ITensorInfo *output, ConvertPolicy policy, uint32_t shift)
Static function to check if given info will lead to a valid configuration of CLDepthConvertLayer.