24.02.1
|
Basic function to run arithmetic subtraction. More...
#include <ClSub.h>
Public Member Functions | |
void | configure (const ClCompileContext &compile_context, ITensorInfo *src1, ITensorInfo *src2, ITensorInfo *dst, ConvertPolicy policy, const ActivationLayerInfo &act_info=ActivationLayerInfo()) |
Configure function for a given list of arguments. 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 *src1, const ITensorInfo *src2, const ITensorInfo *dst, ConvertPolicy policy, const ActivationLayerInfo &act_info=ActivationLayerInfo()) |
Static function to check if given info will lead to a valid configuration. More... | |
Basic function to run arithmetic subtraction.
void configure | ( | const ClCompileContext & | compile_context, |
ITensorInfo * | src1, | ||
ITensorInfo * | src2, | ||
ITensorInfo * | dst, | ||
ConvertPolicy | policy, | ||
const ActivationLayerInfo & | act_info = ActivationLayerInfo() |
||
) |
Configure function for a given list of arguments.
Valid configurations (src1,src2) -> dst :
[in] | compile_context | The compile context to be used. |
[in,out] | src1 | First source tensor info. Data types supported: U8/QASYMM8/QASYMM8_SIGNED/S16/QSYMM16/S32/F16/F32. The source tensor is [in, out] because its TensorInfo might be modified inside the kernel in case of broadcasting of dimension 0. |
[in,out] | src2 | Second source tensor info. Data types supported: U8/QASYMM8/QASYMM8_SIGNED/S16/QSYMM16/S32/F16/F32. The source tensor is [in, out] because its TensorInfo might be modified inside the kernel in case of broadcasting of dimension 0. |
[out] | dst | Destination tensor info. Data types supported: U8/QASYMM8/QASYMM8_SIGNED/S16/QSYMM16/S32/F16/F32. |
[in] | policy | Policy to use to handle overflow. |
[in] | act_info | (Optional) Activation layer information in case of a fused activation. |
Definition at line 34 of file ClSub.cpp.
References arm_compute::test::validation::act_info, ARM_COMPUTE_LOG_PARAMS, arm_compute::test::validation::dst, and arm_compute::SUB.
|
static |
Static function to check if given info will lead to a valid configuration.
Similar to ClSub::configure()
Definition at line 47 of file ClSub.cpp.
References arm_compute::test::validation::act_info, arm_compute::test::validation::dst, arm_compute::SUB, and ClSaturatedArithmeticKernel::validate().
Referenced by CLArithmeticSubtraction::validate().