Compute Library
 21.02
NEPhase Class Reference

Basic function to run NEMagnitudePhaseKernel. More...

#include <NEPhase.h>

Collaboration diagram for NEPhase:
[legend]

Public Member Functions

void configure (const ITensor *input1, const ITensor *input2, ITensor *output, PhaseType phase_type=PhaseType::SIGNED)
 Initialise the kernel's inputs, output. 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 40 of file NEPhase.h.

Member Function Documentation

◆ configure()

void configure ( const ITensor input1,
const ITensor input2,
ITensor output,
PhaseType  phase_type = PhaseType::SIGNED 
)

Initialise the kernel's inputs, output.

Parameters
[in]input1First tensor input. Data type supported: S16.
[in]input2Second tensor input. Data type supported: S16.
[out]outputOutput tensor. Data type supported: U8.
[in]phase_type(Optional) Phase calculation type. Default: SIGNED.

Definition at line 32 of file NEPhase.cpp.

References arm_compute::UNSIGNED.

33 {
34  if(phase_type == PhaseType::UNSIGNED)
35  {
36  auto k = std::make_unique<NEMagnitudePhaseKernel<MagnitudeType::L2NORM, PhaseType::UNSIGNED>>();
37  k->configure(input1, input2, nullptr, output);
38  _kernel = std::move(k);
39  }
40  else
41  {
42  auto k = std::make_unique<NEMagnitudePhaseKernel<MagnitudeType::L2NORM, PhaseType::SIGNED>>();
43  k->configure(input1, input2, nullptr, output);
44  _kernel = std::move(k);
45  }
46 }
Angle range: [0, 180].

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