24 #ifndef ARM_COMPUTE_CPPTOPKVERNEL_H 25 #define ARM_COMPUTE_CPPTOPKVERNEL_H 37 const char *
name()
const override 39 return "CPPTopKVKernel";
88 unsigned int _batch_size;
89 unsigned int _num_classes;
CPPTopKVKernel()
Default constructor.
const Window & window() const
The maximum window the kernel can be executed on.
Common interface for all kernels implemented in C++.
Store the tensor's metadata.
Interface for Neon tensor.
Copyright (c) 2017-2021 Arm Limited.
bool is_parallelisable() const override
Indicates whether or not the kernel is parallelisable.
~CPPTopKVKernel()=default
Default destructor.
CPP kernel to perform tensor TopKV operation.
ScaleKernelInfo info(interpolation_policy, default_border_mode, PixelValue(), sampling_policy, false)
Information about executing thread and CPU.
void configure(const ITensor *predictions, const ITensor *targets, ITensor *output, const unsigned int k)
Set the input and output of the kernel.
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.
const char * name() const override
Name of the kernel.
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) ...
Describe a multidimensional execution window.