36 struct CLDepthConvertLayer::Impl
38 const ICLTensor *
src{
nullptr };
39 ICLTensor *
dst{
nullptr };
40 std::unique_ptr<opencl::ClCast> op{
nullptr };
44 : _impl(
std::make_unique<Impl>())
66 _impl->op = std::make_unique<opencl::ClCast>();
67 _impl->op->configure(compile_context, _impl->src->info(), _impl->dst->info(), policy);
CLDepthConvertLayer()
Constructor.
#define ARM_COMPUTE_ERROR_ON(cond)
If the condition is true then an error message is printed and an exception thrown.
static CLKernelLibrary & get()
Access the KernelLibrary singleton.
Store the tensor's metadata.
Manages all the OpenCL kernels compilation and caching, provides accessors for the OpenCL Context...
#define ARM_COMPUTE_RETURN_ERROR_ON(cond)
If the condition is true, an error is returned.
SimpleTensor< float > src
Copyright (c) 2017-2021 Arm Limited.
void run() override
Run the kernels contained in the function.
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.
Interface for OpenCL tensor.
Basic function to run opencl::kernels::ClCastKernel.
#define ARM_COMPUTE_ERROR_ON_NULLPTR(...)
~CLDepthConvertLayer()
Destructor.
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.
ConvertPolicy
Policy to handle overflow.
static Status validate(const ITensorInfo *src, const ITensorInfo *dst, ConvertPolicy policy)
Static function to check if given info will lead to a valid configuration.