Compute Library
 19.08
CLComplexPixelWiseMultiplication Class Reference

Basic function to run CLComplexPixelWiseMultiplicationKernel. More...

#include <CLPixelWiseMultiplication.h>

Collaboration diagram for CLComplexPixelWiseMultiplication:
[legend]

Public Member Functions

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

Detailed Description

Basic function to run CLComplexPixelWiseMultiplicationKernel.

Definition at line 70 of file CLPixelWiseMultiplication.h.

Member Function Documentation

◆ configure()

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

Initialise the kernel's inputs, output.

Parameters
[in,out]input1An input tensor. Data types supported: F32. Number of channels supported: 2. 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 supported: same as input1.

Definition at line 58 of file CLPixelWiseMultiplication.cpp.

59 {
60  auto k = arm_compute::support::cpp14::make_unique<CLComplexPixelWiseMultiplicationKernel>();
61  k->configure(input1, input2, output);
62  _kernel = std::move(k);
63 
64  if(output->info()->dimension(0) > 1)
65  {
66  ICLTensor *broadcasted_info = (input1->info()->dimension(0) == 1) ? input1 : input2;
67 
68  if(broadcasted_info->info()->dimension(0) == 1)
69  {
70  _border_handler.configure(broadcasted_info, _kernel->border_size(), BorderMode::REPLICATE);
71  }
72  }
73 }
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 CLFFTConvolutionLayer::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 CLComplexPixelWiseMultiplication.

Parameters
[in]input1An input tensor info. Data types supported: F32. Number of channels supported: 2.
[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 75 of file CLPixelWiseMultiplication.cpp.

76 {
77  return CLComplexPixelWiseMultiplicationKernel::validate(input1, input2, output);
78 }
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 CLComplexPixelWiseMultip...

References CLComplexPixelWiseMultiplicationKernel::validate().


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