Compute Library
18.05
|
Assembly kernel glue. More...
#include <AssemblyHelper.h>
Public Types | |
using | TypeOperator = TypeInput |
Operator type. More... | |
using | TypeResult = TypeOutput |
Result type. More... | |
using | AssemblyGemm = arm_gemm::GemmCommon< TypeInput, TypeOutput > |
Assembly Gemm. More... | |
Public Member Functions | |
AssemblyKernelGlue () | |
Default constructor. More... | |
const AssemblyKernelGlue< TypeInput, TypeOutput > & | operator= (const AssemblyKernelGlue< TypeInput, TypeOutput > &)=delete |
Prevent instances of this class from being copy constructed. More... | |
AssemblyKernelGlue (const AssemblyKernelGlue< TypeInput, TypeOutput > &)=delete | |
Prevent instances of this class from being copied. More... | |
void | run () |
Configures the arrays pointers and strides in the assembly kernel and executes the assembly kernel. More... | |
Data Fields | |
std::unique_ptr< AssemblyGemm > | _gemm_kernel_asm |
Assembly Gemm kernel. More... | |
std::unique_ptr< INEKernel > | _optimised_kernel |
Optimised NEON kernel. More... | |
const ITensor * | _a |
Input A. More... | |
const ITensor * | _b |
Input B. More... | |
ITensor * | _d |
Output. More... | |
ITensor * | _pretranspose |
Pre-transpose tensor. More... | |
Assembly kernel glue.
Definition at line 45 of file AssemblyHelper.h.
using AssemblyGemm = arm_gemm::GemmCommon<TypeInput, TypeOutput> |
Assembly Gemm.
Definition at line 58 of file AssemblyHelper.h.
using TypeOperator = TypeInput |
Operator type.
Definition at line 49 of file AssemblyHelper.h.
using TypeResult = TypeOutput |
Result type.
Definition at line 51 of file AssemblyHelper.h.
|
inline |
Default constructor.
Definition at line 53 of file AssemblyHelper.h.
|
delete |
Prevent instances of this class from being copied.
|
delete |
Prevent instances of this class from being copy constructed.
|
inline |
Configures the arrays pointers and strides in the assembly kernel and executes the assembly kernel.
The call to set_arrays is needed to deal with the input sizes containing batches (dims > 2)
Definition at line 81 of file AssemblyHelper.h.
const ITensor* _a |
Input A.
Definition at line 70 of file AssemblyHelper.h.
const ITensor* _b |
Input B.
Definition at line 72 of file AssemblyHelper.h.
ITensor* _d |
Output.
Definition at line 74 of file AssemblyHelper.h.
std::unique_ptr<AssemblyGemm> _gemm_kernel_asm |
Assembly Gemm kernel.
Definition at line 66 of file AssemblyHelper.h.
std::unique_ptr<INEKernel> _optimised_kernel |
Optimised NEON kernel.
Definition at line 68 of file AssemblyHelper.h.
ITensor* _pretranspose |
Pre-transpose tensor.
Definition at line 76 of file AssemblyHelper.h.