24.04
|
Basic function to run the following operators: More...
#include <NEMatMul.h>
Public Member Functions | |
NEMatMul () | |
Constructor. More... | |
~NEMatMul () | |
Destructor. More... | |
NEMatMul (const NEMatMul &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEMatMul (NEMatMul &&)=default | |
Default move constructor. More... | |
NEMatMul & | operator= (const NEMatMul &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEMatMul & | operator= (NEMatMul &&)=default |
Default move assignment operator. More... | |
void | configure (ITensor *lhs, ITensor *rhs, ITensor *dst, const MatMulInfo &info, const CpuMatMulSettings &settings, const ActivationLayerInfo &act_info=ActivationLayerInfo()) |
Initialize. More... | |
void | run () override |
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 *lhs, const ITensorInfo *rhs, const ITensorInfo *dst, const MatMulInfo &info, const CpuMatMulSettings &settings, const ActivationLayerInfo &act_info=ActivationLayerInfo()) |
Static function to check if given info will lead to a valid configuration of NEMatMul. More... | |
Basic function to run the following operators:
Definition at line 77 of file NEMatMul.h.
NEMatMul | ( | ) |
Constructor.
Definition at line 46 of file NEMatMul.cpp.
|
default |
Destructor.
Prevent instances of this class from being copied (As this class contains pointers)
void configure | ( | ITensor * | lhs, |
ITensor * | rhs, | ||
ITensor * | dst, | ||
const MatMulInfo & | info, | ||
const CpuMatMulSettings & | settings, | ||
const ActivationLayerInfo & | act_info = ActivationLayerInfo() |
||
) |
Initialize.
Valid data layouts:
Valid data type configurations:
lhs | rhs | dst |
---|---|---|
F32 | F32 | F32 |
F16 | F16 | F16 |
BFLOAT16 | BFLOAT16 | BFLOAT16 |
QASYMM8_SIGNED | QASYMM8_SIGNED | QASYMM8_SIGNED |
QASYMM8 | QASYMM8 | QASYMM8 |
[in] | lhs | Left-hand side tensor info. Data types supported: F16/F32/QASYMM8_SIGNED/QASYMM8. |
[in] | rhs | Right-hand side tensor info. Data types supported: same as lhs . |
[out] | dst | Output tensor to store the result of the batched matrix multiplication. Data types supported: same as lhs / rhs . |
[in] | info | Contains MatMul operation information described in MatMulInfo. |
[in] | settings | Contains flags for function level settings i.e fast math |
[in] | act_info | (Optional) Contains activation function and lower and upper bound values for bounded activation functions. |
Definition at line 52 of file NEMatMul.cpp.
References arm_compute::ACL_DST, arm_compute::ACL_SRC_0, arm_compute::ACL_SRC_1, arm_compute::test::validation::act_info, ARM_COMPUTE_ERROR_ON_NULLPTR, ITensor::info(), and arm_compute::test::validation::info.
Prevent instances of this class from being copied (As this class contains pointers)
|
overridevirtual |
Run the kernels contained in the function.
For CPU kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 80 of file NEMatMul.cpp.
|
static |
Static function to check if given info will lead to a valid configuration of NEMatMul.
[in] | lhs | Left-hand side tensor info. Data types supported: F16/F32/QASYMM8_SIGNED/QASYMM8. |
[in] | rhs | Right-hand side tensor info. Data types supported: same as lhs . |
[out] | dst | Output tensor info to store the result of the batched matrix multiplication. Data types supported: same as lhs / rhs . |
[in] | info | Contains MatMul operation information described in MatMulInfo. |
[in] | settings | Contains flags for function level settings i.e fast math |
[in] | act_info | (Optional) Contains activation function and lower and upper bound values for bounded activation functions. |
Definition at line 70 of file NEMatMul.cpp.
References arm_compute::test::validation::act_info, arm_compute::test::validation::info, and CpuMatMul::validate().