24.02.1
|
Go to the documentation of this file.
24 #ifndef ARM_COMPUTE_CPU_ADD_KERNEL_H
25 #define ARM_COMPUTE_CPU_ADD_KERNEL_H
40 using AddKernelPtr = std::add_pointer<void(
83 const char *
name()
const override;
92 size_t get_mws(
const CPUInfo &platform,
size_t thread_count)
const override;
98 return _split_dimension;
103 AddKernelPtr _run_method{
nullptr};
decltype(strategy::transforms) typedef type
ARM_COMPUTE_DISALLOW_COPY_ALLOW_MOVE(CpuAddKernel)
Interface for CPU tensor.
static const std::vector< AddKernel > & get_available_kernels()
const CpuAddKernelDataTypeISASelectorDataPtr is_selected
void run_op(ITensorPack &tensors, const Window &window, const ThreadInfo &info) override
Execute the kernel on the passed window.
size_t get_mws(const CPUInfo &platform, size_t thread_count) const override
Return minimum workload size of the relevant kernel.
const char * name() const override
Name of the kernel.
static constexpr size_t DimY
Alias for dimension 1 also known as Y dimension.
const Window & window() const
The maximum window the kernel can be executed on.
Information about executing thread and CPU.
Describe a multidimensional execution window.
void configure(const ITensorInfo *src0, const ITensorInfo *src1, ITensorInfo *dst, ConvertPolicy policy)
Initialise the kernel's input, dst and border mode.
Copyright (c) 2017-2024 Arm Limited.
ConvertPolicy
Policy to handle integer overflow.
static Status validate(const ITensorInfo *src0, const ITensorInfo *src1, const ITensorInfo *dst, ConvertPolicy policy)
Static function to check if given info will lead to a valid configuration.
size_t get_split_dimension() const
Store the tensor's metadata.
std::add_pointer< bool(const CpuAddKernelDataTypeISASelectorData &data)>::type CpuAddKernelDataTypeISASelectorDataPtr
ScaleKernelInfo info(interpolation_policy, default_border_mode, PixelValue(), sampling_policy, false)
Interface for the kernel to perform addition between two tensors.