|
void | LibKernelTemplate (char *TemplateName, CKernel_Arg_T **CArgs) |
| Adds a new basic kernel type template. More...
|
|
CKernel_Arg_T ** | KerTypeTemplate (char *TemplateName) |
| Returns Template type for TemplateName. More...
|
|
void | LibKernel (char *KernelName, KernelCallTypeT CallType, CKernel_Arg_T **CArgs, char *ParArgTypeName, CNN_LayerOp_T *CNN_Match) |
| Adds a new basic kernel template. More...
|
|
KernelLib_T * | KerLibMatch (KernelOper_T KerOper1, KernelOper_T KerOper2, int ParallelFeatures, int I1_Type, int I2_Type, int I3_Type, int I4_Type, int O_Type, int Fx, int Fy, int Dx, int Dy, int Sx, int Sy) |
| Find best mapping for the group KerOper1,KerOper2 in the existing Kernel library. More...
|
|
Functions in this group should be used to add basic kernels templates
KernelLib_T* KerLibMatch |
( |
KernelOper_T |
KerOper1, |
|
|
KernelOper_T |
KerOper2, |
|
|
int |
ParallelFeatures, |
|
|
int |
I1_Type, |
|
|
int |
I2_Type, |
|
|
int |
I3_Type, |
|
|
int |
I4_Type, |
|
|
int |
O_Type, |
|
|
int |
Fx, |
|
|
int |
Fy, |
|
|
int |
Dx, |
|
|
int |
Dy, |
|
|
int |
Sx, |
|
|
int |
Sy |
|
) |
| |
Find best mapping for the group KerOper1,KerOper2 in the existing Kernel library
- Parameters
-
KerOper1 | Symbolic operation |
KerOper2 | Optional symbolic operation grouped with KerOper1 |
ParallelFeatures | If 0 one feature is evaluated by several cores, if not each core evaluates a different feature |
I1_Type | Input1 data size in bytes or 0 if to be ignored |
I2_Type | Input2 data size in bytes or 0 if to be ignored |
I3_Type | Input3 data size in bytes or 0 if to be ignored |
I4_Type | Input4 data size in bytes or 0 if to be ignored |
O_Type | Output data size in bytes or 0 if to be ignored |
Fx | Filter X dimension |
Fy | Filter Y dimension |
Dx | Filter dilation in X dimension |
Dy | Filter dilation in Y dimension |
Sx | Filter stride in X dimension |
Sy | Filter stride in Y dimension |
Returns Template type for TemplateName
- Parameters
-
TemplateName | The template name |
Adds a new basic kernel template
- Parameters
-
KernelName | The basic kernel name |
CallType | Sequential or Parallel |
CArgs | List of C typed arguments provided by CArgs() |
ParArgTypeName | struct typedef name to group arguments in a single struct for parallel calls |
CNN_Match | Matching CNN kernels |
void LibKernelTemplate |
( |
char * |
TemplateName, |
|
|
CKernel_Arg_T ** |
CArgs |
|
) |
| |
Adds a new basic kernel template
- Parameters
-
TemplateName | The template name |
CArgs | List of C typed arguments provided by CArgs() |