Compute Library
 19.08
NEComplexPixelWiseMultiplication Class Reference

Basic function to run NEComplexPixelWiseMultiplicationKernel. More...

#include <NEPixelWiseMultiplication.h>

Collaboration diagram for NEComplexPixelWiseMultiplication:
[legend]

Public Member Functions

void configure (ITensor *input1, ITensor *input2, ITensor *output)
 Initialise the kernel's inputs, output. More...
 
- Public Member Functions inherited from INESimpleFunction
 INESimpleFunction ()
 Constructor. 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...
 

Static Public Member Functions

static Status validate (const ITensorInfo *input1, const ITensorInfo *input2, const ITensorInfo *output)
 Static function to check if given info will lead to a valid configuration of NEComplexPixelWiseMultiplication. More...
 

Detailed Description

Basic function to run NEComplexPixelWiseMultiplicationKernel.

Definition at line 73 of file NEPixelWiseMultiplication.h.

Member Function Documentation

◆ configure()

void configure ( ITensor input1,
ITensor input2,
ITensor output 
)

Initialise the kernel's inputs, output.

Parameters
[in,out]input1An input tensor. Data types supported: F32. Number of channels supported: 2 (complex tensor). The input tensor is [in, out] because its TensorInfo might be modified inside the kernel in case of broadcasting of dimension 0.
[in,out]input2An input tensor. Data types supported: same as input1. Number of channels supported: same as input1. The input tensor is [in, out] because its TensorInfo might be modified inside the kernel in case of broadcasting of dimension 0.
[out]outputThe output tensor. Data types supported: same as input1. Number of channels: same as input1.

Definition at line 55 of file NEPixelWiseMultiplication.cpp.

56 {
57  auto k = arm_compute::support::cpp14::make_unique<NEComplexPixelWiseMultiplicationKernel>();
58  k->configure(input1, input2, output);
59  _kernel = std::move(k);
60 
61  if(output->info()->dimension(0) > 1)
62  {
63  ITensor *broadcasted_info = (input1->info()->dimension(0) == 1) ? input1 : input2;
64 
65  if(broadcasted_info->info()->dimension(0) == 1)
66  {
67  _border_handler.configure(broadcasted_info, _kernel->border_size(), BorderMode::REPLICATE);
68  }
69  }
70 }
Pixels outside the image are assumed to have the same value as the closest image pixel.

References ITensorInfo::dimension(), ITensor::info(), and arm_compute::REPLICATE.

Referenced by NEFFTConvolutionLayer::configure().

◆ validate()

Status validate ( const ITensorInfo input1,
const ITensorInfo input2,
const ITensorInfo output 
)
static

Static function to check if given info will lead to a valid configuration of NEComplexPixelWiseMultiplication.

Parameters
[in]input1An input tensor info. Data types supported: F32. Number of channels supported: 2 (complex tensor).
[in]input2An input tensor info. Data types supported: same as input1. Number of channels supported: same as input1.
[in]outputThe output tensor info. Data types supported: same as input1. Number of channels supported: same as input1.

Definition at line 72 of file NEPixelWiseMultiplication.cpp.

73 {
74  return NEComplexPixelWiseMultiplicationKernel::validate(input1, input2, output);
75 }
static Status validate(const ITensorInfo *input1, const ITensorInfo *input2, const ITensorInfo *output)
Static function to check if given info will lead to a valid configuration of NEComplexPixelWiseMultip...

References NEComplexPixelWiseMultiplicationKernel::validate().


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