38 const ICLTensor *
src{
nullptr };
39 ICLTensor *
dst{
nullptr };
40 std::unique_ptr<opencl::ClCast> op{
nullptr };
44 : _impl(
std::make_unique<Impl>())
63 _impl->op = std::make_unique<opencl::ClCast>();
64 _impl->op->configure(compile_context, _impl->src->info(), _impl->dst->info(), policy);
void run() override
Run the kernels contained in the function.
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...
SimpleTensor< float > src
Copyright (c) 2017-2021 Arm Limited.
void configure(const ICLTensor *input, ICLTensor *output, ConvertPolicy policy)
Initialize the function's source, destination.
static Status validate(const ITensorInfo *input, const ITensorInfo *output, ConvertPolicy policy)
Static function to check if given info will lead to a valid configuration of CLCast.
Interface for OpenCL tensor.
#define ARM_COMPUTE_ERROR_ON_NULLPTR(...)
CLCast & operator=(const CLCast &)=delete
Prevent instances of this class from being copied (As this class contains pointers) ...
Basic function to run opencl::kernels::ClCastKernel.
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.