Compute Library
 21.02
CLAccumulateSquared Class Reference

Basic function to run CLAccumulateSquaredKernel. More...

#include <CLAccumulate.h>

Collaboration diagram for CLAccumulateSquared:
[legend]

Public Member Functions

void configure (const ICLTensor *input, uint32_t shift, ICLTensor *accum)
 Set the input and accumulation tensors and the shift value. More...
 
void configure (const CLCompileContext &compile_context, const ICLTensor *input, uint32_t shift, ICLTensor *accum)
 Set the input and accumulation tensors and the shift value. More...
 
- Public Member Functions inherited from ICLSimpleFunction
 ICLSimpleFunction (CLRuntimeContext *ctx=nullptr)
 Constructor. More...
 
 ICLSimpleFunction (const ICLSimpleFunction &)=delete
 Prevent instances of this class from being copied (As this class contains pointers) More...
 
 ICLSimpleFunction (ICLSimpleFunction &&)=default
 Default move constructor. More...
 
ICLSimpleFunctionoperator= (const ICLSimpleFunction &)=delete
 Prevent instances of this class from being copied (As this class contains pointers) More...
 
ICLSimpleFunctionoperator= (ICLSimpleFunction &&)=default
 Default move assignment operator. More...
 
 ~ICLSimpleFunction ()
 Default destructor. More...
 
void run () override final
 Run the kernels contained in the function. More...
 
- Public Member Functions inherited from IFunction
virtual ~IFunction ()=default
 Destructor. More...
 
virtual void prepare ()
 Prepare the function for executing. More...
 

Detailed Description

Basic function to run CLAccumulateSquaredKernel.

Deprecated:
This function is deprecated and is intended to be removed in 21.05 release

Definition at line 89 of file CLAccumulate.h.

Member Function Documentation

◆ configure() [1/2]

void configure ( const ICLTensor input,
uint32_t  shift,
ICLTensor accum 
)

Set the input and accumulation tensors and the shift value.

Parameters
[in]inputSource tensor. Data types supported: U8.
[in]shiftThe input with a value input the range of [0, 15]. Data types supported: U32.
[in,out]accumAccumulated tensor. Data types supported: S16.

Definition at line 56 of file CLAccumulate.cpp.

References CLAccumulate::configure(), and CLKernelLibrary::get().

57 {
58  configure(CLKernelLibrary::get().get_compile_context(), input, shift, accum);
59 }
static CLKernelLibrary & get()
Access the KernelLibrary singleton.
void configure(const ICLTensor *input, uint32_t shift, ICLTensor *accum)
Set the input and accumulation tensors and the shift value.

◆ configure() [2/2]

void configure ( const CLCompileContext compile_context,
const ICLTensor input,
uint32_t  shift,
ICLTensor accum 
)

Set the input and accumulation tensors and the shift value.

Parameters
[in]compile_contextThe compile context to be used.
[in]inputSource tensor. Data types supported: U8.
[in]shiftThe input with a value input the range of [0, 15]. Data types supported: U32.
[in,out]accumAccumulated tensor. Data types supported: S16.

Definition at line 61 of file CLAccumulate.cpp.

62 {
63  auto k = std::make_unique<CLAccumulateSquaredKernel>();
64  k->configure(compile_context, input, shift, accum);
65  _kernel = std::move(k);
66 }

The documentation for this class was generated from the following files: