Compute Library
 21.02
NEAccumulateSquared Class Reference

Basic function to run NEAccumulateSquaredKernel. More...

#include <NEAccumulate.h>

Collaboration diagram for NEAccumulateSquared:
[legend]

Public Member Functions

 NEAccumulateSquared ()=default
 Default constructor. More...
 
 NEAccumulateSquared (const NEAccumulateSquared &)=delete
 Prevent instances of this class from being copied (As this class contains pointers) More...
 
NEAccumulateSquaredoperator= (const NEAccumulateSquared &)=delete
 Prevent instances of this class from being copied (As this class contains pointers) More...
 
 NEAccumulateSquared (NEAccumulateSquared &&)=delete
 Prevent instances of this class from being moved (As this class contains non movable objects) More...
 
NEAccumulateSquaredoperator= (NEAccumulateSquared &&)=delete
 Prevent instances of this class from being moved (As this class contains non movable objects) More...
 
 ~NEAccumulateSquared ()
 Default destructor. More...
 
void configure (const ITensor *input, uint32_t shift, ITensor *output)
 Set the input and accumulation tensors and the shift value. More...
 
- Public Member Functions inherited from INESimpleFunctionNoBorder
 INESimpleFunctionNoBorder (IRuntimeContext *ctx=nullptr)
 Constructor. More...
 
 INESimpleFunctionNoBorder (const INESimpleFunctionNoBorder &)=delete
 Prevent instances of this class from being copied (As this class contains pointers) More...
 
 INESimpleFunctionNoBorder (INESimpleFunctionNoBorder &&)=default
 Default move constructor. More...
 
INESimpleFunctionNoBorderoperator= (const INESimpleFunctionNoBorder &)=delete
 Prevent instances of this class from being copied (As this class contains pointers) More...
 
INESimpleFunctionNoBorderoperator= (INESimpleFunctionNoBorder &&)=default
 Default move assignment operator. More...
 
 ~INESimpleFunctionNoBorder ()
 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 NEAccumulateSquaredKernel.

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

Definition at line 98 of file NEAccumulate.h.

Constructor & Destructor Documentation

◆ NEAccumulateSquared() [1/3]

NEAccumulateSquared ( )
default

Default constructor.

◆ NEAccumulateSquared() [2/3]

Prevent instances of this class from being copied (As this class contains pointers)

◆ NEAccumulateSquared() [3/3]

Prevent instances of this class from being moved (As this class contains non movable objects)

◆ ~NEAccumulateSquared()

~NEAccumulateSquared ( )
default

Default destructor.

Referenced by NEAccumulateWeighted::configure().

Member Function Documentation

◆ configure()

void configure ( const ITensor input,
uint32_t  shift,
ITensor output 
)

Set the input and accumulation tensors and the shift value.

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

Definition at line 61 of file NEAccumulate.cpp.

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

◆ operator=() [1/2]

NEAccumulateSquared& operator= ( const NEAccumulateSquared )
delete

Prevent instances of this class from being copied (As this class contains pointers)

◆ operator=() [2/2]

NEAccumulateSquared& operator= ( NEAccumulateSquared &&  )
delete

Prevent instances of this class from being moved (As this class contains non movable objects)


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