19.11

Basic function to run CLPixelWiseMultiplicationKernel. More...
#include <CLPixelWiseMultiplication.h>
Public Member Functions  
void  configure (ICLTensor *input1, ICLTensor *input2, ICLTensor *output, float scale, ConvertPolicy overflow_policy, RoundingPolicy rounding_policy) 
Initialise the kernel's inputs, output and convertion policy. More...  
Public Member Functions inherited from ICLSimpleFunction  
ICLSimpleFunction (CLRuntimeContext *ctx=nullptr)  
Constructor. More...  
ICLSimpleFunction (const ICLSimpleFunction &)=delete  
Prevent instances of this class from being copied (As this class contains pointers) More...  
ICLSimpleFunction (ICLSimpleFunction &&)=default  
Default move constructor. More...  
ICLSimpleFunction &  operator= (const ICLSimpleFunction &)=delete 
Prevent instances of this class from being copied (As this class contains pointers) More...  
ICLSimpleFunction &  operator= (ICLSimpleFunction &&)=default 
Default move assignment operator. 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, float scale, ConvertPolicy overflow_policy, RoundingPolicy rounding_policy) 
Static function to check if given info will lead to a valid configuration of CLPixelWiseMultiplication. More...  
Basic function to run CLPixelWiseMultiplicationKernel.
Definition at line 36 of file CLPixelWiseMultiplication.h.
void configure  (  ICLTensor *  input1, 
ICLTensor *  input2,  
ICLTensor *  output,  
float  scale,  
ConvertPolicy  overflow_policy,  
RoundingPolicy  rounding_policy  
) 
Initialise the kernel's inputs, output and convertion policy.
[in,out]  input1  An input tensor. Data types supported: U8/QASYMM8/S16/QSYMM16/F16/F32. 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 . 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 . Note: U8 requires both inputs to be U8. 
[in]  scale  Scale to apply after multiplication. Scale must be positive and its value must be either 1/255 or 1/2^n where n is between 0 and 15. 
[in]  overflow_policy  Overflow policy. Supported overflow policies: Wrap, Saturate 
[in]  rounding_policy  Rounding policy. Supported rounding modes: to zero, to nearest even. 
Definition at line 34 of file CLPixelWiseMultiplication.cpp.
References ITensorInfo::dimension(), ITensor::info(), arm_compute::REPLICATE, arm_compute::test::validation::rounding_policy, and arm_compute::test::validation::scale.
Referenced by CLLSTMLayerQuantized::configure().

static 
Static function to check if given info will lead to a valid configuration of CLPixelWiseMultiplication.
[in]  input1  An input tensor info. Data types supported: U8/QASYMM8/S16/QSYMM16/F16/F32. 
[in]  input2  An input tensor info. Data types supported: same as input1 . 
[in]  output  The output tensor info, Data types supported: same as input1 . Note: U8 requires both inputs to be U8. 
[in]  scale  Scale to apply after multiplication. Scale must be positive and its value must be either 1/255 or 1/2^n where n is between 0 and 15. 
[in]  overflow_policy  Overflow policy. Supported overflow policies: Wrap, Saturate 
[in]  rounding_policy  Rounding policy. Supported rounding modes: to zero, to nearest even. 
Definition at line 52 of file CLPixelWiseMultiplication.cpp.
References arm_compute::test::validation::rounding_policy, arm_compute::test::validation::scale, and CLPixelWiseMultiplicationKernel::validate().
Referenced by CLLSTMLayerQuantized::validate().