Compute Library
 21.02
NEMagnitude Class Reference

Basic function to run NEMagnitudePhaseKernel. More...

#include <NEMagnitude.h>

Collaboration diagram for NEMagnitude:
[legend]

Public Member Functions

 NEMagnitude ()=default
 Constructor. More...
 
 NEMagnitude (const NEMagnitude &)=delete
 Prevent instances of this class from being copied (As this class contains pointers) More...
 
NEMagnitudeoperator= (const NEMagnitude &)=delete
 Prevent instances of this class from being copied (As this class contains pointers) More...
 
 NEMagnitude (NEMagnitude &&)=delete
 Prevent instances of this class from being moved (As this class contains non movable objects) More...
 
NEMagnitudeoperator= (NEMagnitude &&)=delete
 Prevent instances of this class from being moved (As this class contains non movable objects) More...
 
 ~NEMagnitude ()
 Default destructor. More...
 
void configure (const ITensor *input1, const ITensor *input2, ITensor *output, MagnitudeType mag_type=MagnitudeType::L2NORM)
 Initialise the kernel's inputs. 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 NEMagnitudePhaseKernel.

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

Definition at line 39 of file NEMagnitude.h.

Constructor & Destructor Documentation

◆ NEMagnitude() [1/3]

NEMagnitude ( )
default

Constructor.

◆ NEMagnitude() [2/3]

NEMagnitude ( const NEMagnitude )
delete

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

◆ NEMagnitude() [3/3]

NEMagnitude ( NEMagnitude &&  )
delete

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

◆ ~NEMagnitude()

~NEMagnitude ( )
default

Default destructor.

Member Function Documentation

◆ configure()

void configure ( const ITensor input1,
const ITensor input2,
ITensor output,
MagnitudeType  mag_type = MagnitudeType::L2NORM 
)

Initialise the kernel's inputs.

Parameters
[in]input1First tensor input. Data type supported: S16.
[in]input2Second tensor input. Data type supported: S16.
[out]outputOutput tensor. Data type supported: S16.
[in]mag_type(Optional) Magnitude calculation type. Default: L2NORM.

Definition at line 35 of file NEMagnitude.cpp.

References arm_compute::L1NORM.

36 {
37  if(mag_type == MagnitudeType::L1NORM)
38  {
39  auto k = std::make_unique<NEMagnitudePhaseKernel<MagnitudeType::L1NORM, PhaseType::SIGNED>>();
40  k->configure(input1, input2, output, nullptr);
41  _kernel = std::move(k);
42  }
43  else
44  {
45  auto k = std::make_unique<NEMagnitudePhaseKernel<MagnitudeType::L2NORM, PhaseType::SIGNED>>();
46  k->configure(input1, input2, output, nullptr);
47  _kernel = std::move(k);
48  }
49 }
L1 normalization type.

◆ operator=() [1/2]

NEMagnitude& operator= ( const NEMagnitude )
delete

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

◆ operator=() [2/2]

NEMagnitude& operator= ( NEMagnitude &&  )
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: