24.02
|
Go to the documentation of this file.
35 const ITensor *
src{
nullptr};
36 ITensor *
dst{
nullptr};
37 std::unique_ptr<cpu::CpuCast> op{
nullptr};
54 _impl->op = std::make_unique<cpu::CpuCast>();
55 _impl->op->configure(_impl->src->info(), _impl->dst->info(), policy);
SimpleTensor< float > src
Basic function to run cpu::kernels::CpuCastKernel.
Interface for CPU tensor.
#define ARM_COMPUTE_ERROR_ON_NULLPTR(...)
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 NECast.
static Status validate(const ITensorInfo *src, const ITensorInfo *dst, ConvertPolicy policy)
Static function to check if given info will lead to a valid configuration.
void run() override
Run the kernels contained in the function.
Copyright (c) 2017-2024 Arm Limited.
ConvertPolicy
Policy to handle integer overflow.
Store the tensor's metadata.
#define ARM_COMPUTE_LOG_PARAMS(...)
NECast & operator=(const NECast &)=delete
Prevent instances of this class from being copied (As this class contains pointers)
void configure(ITensor *input, ITensor *output, ConvertPolicy policy)
Initialize the function's source, destination.