21.02
|
Basic function to run CLComplexPixelWiseMultiplicationKernel. More...
#include <CLPixelWiseMultiplication.h>
Public Member Functions | |
CLComplexPixelWiseMultiplication () | |
Default Constructor. More... | |
void | configure (const CLCompileContext &compile_context, ITensorInfo *input1, ITensorInfo *input2, ITensorInfo *output, const ActivationLayerInfo &act_info=ActivationLayerInfo()) |
Initialise the kernel's inputs, output. More... | |
void | run (ITensorPack &tensors) override |
Run the kernels contained in the function. More... | |
Public Member Functions inherited from ICLOperator | |
ICLOperator (IRuntimeContext *ctx=nullptr) | |
Constructor. More... | |
ICLOperator (const ICLOperator &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
ICLOperator (ICLOperator &&)=default | |
Default move constructor. More... | |
ICLOperator & | operator= (const ICLOperator &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
ICLOperator & | operator= (ICLOperator &&)=default |
Default move assignment operator. More... | |
void | run (ITensorPack &tensors) override |
Run the kernels contained in the function. More... | |
void | prepare (ITensorPack &constants) override |
Prepare the function for executing. More... | |
MemoryRequirements | workspace () const override |
Return the memory requirements required by the workspace. More... | |
Public Member Functions inherited from IOperator | |
virtual | ~IOperator ()=default |
Destructor. More... | |
Static Public Member Functions | |
static Status | validate (const ITensorInfo *input1, const ITensorInfo *input2, const ITensorInfo *output, const ActivationLayerInfo &act_info=ActivationLayerInfo()) |
Static function to check if given info will lead to a valid configuration of CLComplexPixelWiseMultiplication. More... | |
Basic function to run CLComplexPixelWiseMultiplicationKernel.
Definition at line 115 of file CLPixelWiseMultiplication.h.
Default Constructor.
Definition at line 93 of file CLPixelWiseMultiplication.cpp.
void configure | ( | const CLCompileContext & | compile_context, |
ITensorInfo * | input1, | ||
ITensorInfo * | input2, | ||
ITensorInfo * | output, | ||
const ActivationLayerInfo & | act_info = ActivationLayerInfo() |
||
) |
Initialise the kernel's inputs, output.
[in] | compile_context | The compile context to be used. |
[in,out] | input1 | An input tensor. Data types supported: F16/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] | input2 | An 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] | output | The output tensor, Data types supported: same as input1 . Number of channels supported: same as input1 . |
[in] | act_info | (Optional) Activation layer information in case of a fused activation. |
Definition at line 98 of file CLPixelWiseMultiplication.cpp.
References ITensorInfo::dimension(), and arm_compute::REPLICATE.
|
overridevirtual |
Run the kernels contained in the function.
[in] | tensors | Vector that contains the tensors to operate on. |
Implements IOperator.
Definition at line 120 of file CLPixelWiseMultiplication.cpp.
References arm_compute::test::validation::dst, CLScheduler::enqueue_op(), CLScheduler::get(), and ICLOperator::run().
|
static |
Static function to check if given info will lead to a valid configuration of CLComplexPixelWiseMultiplication.
[in] | input1 | An input tensor info. Data types supported: F16/F32. Number of channels supported: 2. |
[in] | input2 | An input tensor info. Data types supported: same as input1 . Number of channels supported: same as input1 . |
[in] | output | The output tensor info, Data types supported: same as input1 . Number of channels supported: same as input1 . |
[in] | act_info | (Optional) Activation layer information in case of a fused activation. |
Definition at line 115 of file CLPixelWiseMultiplication.cpp.
References CLComplexPixelWiseMultiplicationKernel::validate().
Referenced by CLComplexPixelWiseMultiplication::validate().