Compute Library
18.05
|
Basic function to run CLArithmeticAdditionKernel. More...
#include <CLArithmeticAddition.h>
Public Member Functions | |
void | configure (ICLTensor *input1, ICLTensor *input2, ICLTensor *output, ConvertPolicy policy) |
Initialise the kernel's inputs, output and convertion policy. More... | |
Public Member Functions inherited from ICLSimpleFunction | |
ICLSimpleFunction () | |
Default constructor. More... | |
void | run () overridefinal |
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, ConvertPolicy policy) |
Static function to check if given info will lead to a valid configuration of CLArithmeticAddition. More... | |
Basic function to run CLArithmeticAdditionKernel.
Definition at line 39 of file CLArithmeticAddition.h.
void configure | ( | ICLTensor * | input1, |
ICLTensor * | input2, | ||
ICLTensor * | output, | ||
ConvertPolicy | policy | ||
) |
Initialise the kernel's inputs, output and convertion policy.
[in,out] | input1 | First tensor input. Data types supported: U8/QS8/QS16/S16/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 | Second tensor input. Data types supported: U8, QS8 (only if input1 is QS8), QS16 (only if input1 is QS16), S16/F16/F32. The input tensor is [in, out] because its TensorInfo might be modified inside the kernel in case of broadcasting of dimension 0. |
[out] | output | Output tensor. Data types supported: U8 (Only if both inputs are U8), QS8 (only if both inputs are QS8), QS16 (only if both inputs are QS16), S16/F16/F32. |
[in] | policy | Policy to use to handle overflow. |
|
static |
Static function to check if given info will lead to a valid configuration of CLArithmeticAddition.
[in] | input1 | First tensor input info. Data types supported: U8/QS8/QS16/S16/F16/F32. |
[in] | input2 | Second tensor input info. Data types supported: U8/QS8 (only if input1 is QS8), QS16 (only if input1 is QS16), S16/F16/F32. |
[in] | output | Output tensor info. Data types supported: U8 (Only if both inputs are U8), QS8 (only if both inputs are QS8), QS16 (only if both inputs are QS16), S16/F16/F32. |
[in] | policy | Policy to use to handle overflow. |
Referenced by arm_compute::test::validation::DATA_TEST_CASE().