24.02.1
|
Go to the documentation of this file.
24 #ifndef ARM_COMPUTE_CL_CAST_KERNEL_H
25 #define ARM_COMPUTE_CL_CAST_KERNEL_H
Casts a given tensor to a new type.
SimpleTensor< float > src
void run_op(ITensorPack &tensors, const Window &window, ::cl::CommandQueue &queue) override
Common interface for all the OpenCL kernels.
void configure(const CLCompileContext &compile_context, const ITensorInfo *src, ITensorInfo *dst, ConvertPolicy policy)
Set the src and dst of the kernel.
const Window & window() const
The maximum window the kernel can be executed on.
Describe a multidimensional execution window.
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.
ARM_COMPUTE_DISALLOW_COPY_ALLOW_MOVE(ClCastKernel)