Basic function to run CLArithmeticSubtractionKernel.
More...
#include <CLArithmeticSubtraction.h>
Basic function to run CLArithmeticSubtractionKernel.
- Note
- The tensor data type for the inputs must be U8/QS8/QS16/S16/F16/F32.
-
The function performs an arithmetic subtraction between two tensors.
Definition at line 40 of file CLArithmeticSubtraction.h.
Initialise the kernel's inputs, output and convertion policy.
- Parameters
-
[in] | input1 | First tensor input. Data types supported: U8/QS8/QS16/S16/F16/F32. |
[in] | input2 | Second tensor input. Data types supported: U8/QS8 (only if input1 is QS8), QS16 (only if input1 is QS16), S16/F16/F32. |
[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 function to check if given info will lead to a valid configuration of CLArithmeticSubtraction.
- Parameters
-
[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. |
- Returns
- a status
The documentation for this class was generated from the following file: