24.02.1
|
Go to the documentation of this file.
24 #ifndef ARM_COMPUTE_CPPTOPKVERNEL_H
25 #define ARM_COMPUTE_CPPTOPKVERNEL_H
37 const char *
name()
const override
39 return "CPPTopKVKernel";
89 unsigned int _batch_size;
90 unsigned int _num_classes;
~CPPTopKVKernel()=default
Default destructor.
void run(const Window &window, const ThreadInfo &info) override
Execute the kernel on the passed window.
CPPTopKVKernel & operator=(const CPPTopKVKernel &)=delete
Prevent instances of this class from being copied (As this class contains pointers)
Interface for CPU tensor.
static Status validate(const ITensorInfo *predictions, const ITensorInfo *targets, ITensorInfo *output, const unsigned int k)
Static function to check if given info will lead to a valid configuration of CPPTopKVKernel.
Common interface for all kernels implemented in C++.
void configure(const ITensor *predictions, const ITensor *targets, ITensor *output, const unsigned int k)
Set the input and output of the kernel.
const char * name() const override
Name of the kernel.
bool is_parallelisable() const override
Indicates whether or not the kernel is parallelisable.
const Window & window() const
The maximum window the kernel can be executed on.
Information about executing thread and CPU.
Describe a multidimensional execution window.
CPPTopKVKernel()
Default constructor.
Copyright (c) 2017-2024 Arm Limited.
Store the tensor's metadata.
ScaleKernelInfo info(interpolation_policy, default_border_mode, PixelValue(), sampling_policy, false)
CPP kernel to perform tensor TopKV operation.