23.08
|
Go to the documentation of this file.
24 #ifndef ARM_COMPUTE_CPU_CAST_KERNEL_H
25 #define ARM_COMPUTE_CPU_CAST_KERNEL_H
80 const char *
name()
const override;
void run_op(ITensorPack &tensors, const Window &window, const ThreadInfo &info) override
Execute the kernel on the passed window.
SimpleTensor< float > src
decltype(strategy::transforms) typedef type
void configure(const ITensorInfo *src, ITensorInfo *dst, ConvertPolicy policy)
Set the src and dst of the kernel.
Casts a given tensor to a new type.
ARM_COMPUTE_DISALLOW_COPY_ALLOW_MOVE(CpuCastKernel)
Interface for CPU tensor.
static const std::vector< CastKernel > & get_available_kernels()
std::add_pointer< bool(const CastDataTypeISASelectorData &data)>::type CastDataTypeISASelectorDataPtr
const char * name() const override
Name of the kernel.
const Window & window() const
The maximum window the kernel can be executed on.
Information about executing thread and CPU.
Describe a multidimensional execution window.
static Status validate(const ITensorInfo *src, const ITensorInfo *dst, ConvertPolicy policy)
Static function to check if given info will lead to a valid configuration.
Copyright (c) 2017-2023 Arm Limited.
ConvertPolicy
Policy to handle integer overflow.
Store the tensor's metadata.
ScaleKernelInfo info(interpolation_policy, default_border_mode, PixelValue(), sampling_policy, false)
const CastDataTypeISASelectorDataPtr is_selected