ae2f_docs
Mlp.core.h File Reference
#include <ae2f/Ann/Mlp.h>
#include "./Slp.core.h"
#include <ae2f/Cast.h>
#include <ae2f/errGlob.h>
#include <vulkan/vulkan.h>
#include <ae2f/Pack/Beg.h>
#include <ae2f/Pack/End.h>

Go to the source code of this file.

Macros

#define __ae2fVK_AnnMlpMdlSz(i_depth, ...)
#define __ae2fVK_AnnMlpMdlOff(...)
#define __ae2fVK_AnnMlpOutStreamSz(i_depth, i_outc)
#define __ae2fVK_AnnMlpOutStreamOff(i_depth, i_outc)
#define __ae2fVK_AnnMlpWeightSz(i_depth, i_outc)
#define __ae2fVK_AnnMlpWeightOff(i_depth, i_outc)
#define __ae2fVK_AnnMlpBiasSz(i_depth, i_outc)
#define __ae2fVK_AnnMlpBiasOff(i_depth, i_outc)
#define __ae2fVK_AnnMlpDeltaStreamSz(i_depth, i_outc)
#define __ae2fVK_AnnMlpDeltaStreamOff(i_depth, i_outc)
#define __ae2fVK_AnnMlpGoalSz(i_depth, i_outc)
#define __ae2fVK_AnnMlpGoalOff(i_depth, i_outc)
#define __ae2fVK_AnnMlpGlobMemSz(i_depth, i_outc)
#define __ae2fVK_AnnMlpDescPoolMk_imp   __ae2fVK_AnnSlpDescPoolMk_imp
#define __ae2fVK_AnnMlpDescPoolClean_imp   __ae2fVK_AnnSlpDescPoolClean_imp
#define __ae2fVK_AnnMlpDescPoolCmdMk_imp   __ae2fVK_AnnSlpDescPoolCmdMk_imp
#define __ae2fVK_AnnMlpDescPoolCmdClean_imp   __ae2fVK_AnnSlpDescPoolCmdClean_imp
#define __ae2fVK_AnnMlpMapRangedGeneric_imp   __ae2fVK_AnnSlpMapRangedGeneric_imp
#define __ae2fVK_AnnMlpUnMapRanged_imp   __ae2fVK_AnnSlpUnMapRanged_imp

Typedefs

typedef ae2fVK_AnnSlpUnMap_t ae2fVK_AnnMlpUnMap_t
typedef VkMappedMemoryRange ae2fVK_AnnMlpMapRangedGeneric_t
typedef ae2fVK_AnnSlpDescPoolCmdMk_t ae2fVK_AnnMlpDescPoolCmdMk_t

Functions

 ae2f_enumdef (ae2fVK_eAnnMlpDescLayouts, { ae2fVK_eAnnMlpDescLayouts_ONLY, ae2fVK_eAnnMlpDescLayouts_LEN })
 ae2f_enumdef (ae2fVK_eAnnMlpPipeLayouts, { ae2fVK_eAnnMlpPipeLayouts_kPredict, ae2fVK_eAnnMlpPipeLayouts_kTrain, ae2fVK_eAnnMlpPipeLayouts_LEN })
 ae2f_enumdef (ae2fVK_eAnnMlpPipes, { ae2fVK_eAnnMlpPipes_kPredict, ae2fVK_eAnnMlpPipes_kPredictStream, ae2fVK_eAnnMlpPipes_kFollow, ae2fVK_eAnnMlpPipes_kTrainAuto, ae2fVK_eAnnMlpPipes_LEN })
 ae2f_enumdef (ae2fVK_eAnnMlpDescPools, { ae2fVK_eAnnMlpDescPools_ONLY, ae2fVK_eAnnMlpDescPools_LEN })
 ae2f_structdef (struct, ae2fVK_AnnMlp)
 ae2f_structdef (struct, ae2fVK_AnnMlpMkU0Swap_t)
 ae2f_structdef (union, ae2fVK_AnnMlpMkU0_t)
 ae2f_structdef (union, ae2fVK_AnnMlpMkU1_t)
 ae2f_structdef (union, ae2fVK_AnnMlpMkU2_t)
 ae2f_structdef (union, ae2fVK_AnnMlpMkU3_t)
 ae2f_structdef (struct, ae2fVK_AnnMlpMkU4_t)
 ae2f_structdef (struct, ae2fVK_AnnMlpMkRet_t)
 ae2f_structdef (struct, ae2fVK_AnnMlpMk_t)

Macro Definition Documentation

◆ __ae2fVK_AnnMlpBiasOff

#define __ae2fVK_AnnMlpBiasOff ( i_depth,
i_outc )
Value:
(__ae2fVK_AnnMlpWeightOff(i_depth, i_outc) + __ae2fVK_AnnMlpWeightSz(i_depth, i_outc))
#define __ae2fVK_AnnMlpWeightOff(i_depth, i_outc)
Definition Mlp.core.h:136
#define __ae2fVK_AnnMlpWeightSz(i_depth, i_outc)
Definition Mlp.core.h:133

Definition at line 142 of file Mlp.core.h.

◆ __ae2fVK_AnnMlpBiasSz

#define __ae2fVK_AnnMlpBiasSz ( i_depth,
i_outc )
Value:
(sizeof(ae2f_float_t)) * ((i_depth) - 1) * (i_outc)
ae2f_float ae2f_float_t
Definition Float.h:38

Definition at line 139 of file Mlp.core.h.

◆ __ae2fVK_AnnMlpDeltaStreamOff

#define __ae2fVK_AnnMlpDeltaStreamOff ( i_depth,
i_outc )
Value:
(__ae2fVK_AnnMlpBiasSz(i_depth, i_outc) + __ae2fVK_AnnMlpBiasOff(i_depth, i_outc))
#define __ae2fVK_AnnMlpBiasOff(i_depth, i_outc)
Definition Mlp.core.h:142
#define __ae2fVK_AnnMlpBiasSz(i_depth, i_outc)
Definition Mlp.core.h:139

Definition at line 148 of file Mlp.core.h.

◆ __ae2fVK_AnnMlpDeltaStreamSz

#define __ae2fVK_AnnMlpDeltaStreamSz ( i_depth,
i_outc )
Value:
(((sizeof(ae2f_float_t)) * ((i_depth) - 1) * (i_outc)))

Definition at line 145 of file Mlp.core.h.

◆ __ae2fVK_AnnMlpDescPoolClean_imp

#define __ae2fVK_AnnMlpDescPoolClean_imp   __ae2fVK_AnnSlpDescPoolClean_imp

Definition at line 162 of file Mlp.core.h.

◆ __ae2fVK_AnnMlpDescPoolCmdClean_imp

#define __ae2fVK_AnnMlpDescPoolCmdClean_imp   __ae2fVK_AnnSlpDescPoolCmdClean_imp

Definition at line 165 of file Mlp.core.h.

◆ __ae2fVK_AnnMlpDescPoolCmdMk_imp

#define __ae2fVK_AnnMlpDescPoolCmdMk_imp   __ae2fVK_AnnSlpDescPoolCmdMk_imp

Definition at line 164 of file Mlp.core.h.

◆ __ae2fVK_AnnMlpDescPoolMk_imp

#define __ae2fVK_AnnMlpDescPoolMk_imp   __ae2fVK_AnnSlpDescPoolMk_imp

Definition at line 161 of file Mlp.core.h.

◆ __ae2fVK_AnnMlpGlobMemSz

#define __ae2fVK_AnnMlpGlobMemSz ( i_depth,
i_outc )
Value:
(__ae2fVK_AnnMlpGoalOff(i_depth, i_outc) + __ae2fVK_AnnMlpGoalSz(i_depth, i_outc))
#define __ae2fVK_AnnMlpGoalSz(i_depth, i_outc)
Definition Mlp.core.h:151
#define __ae2fVK_AnnMlpGoalOff(i_depth, i_outc)
Definition Mlp.core.h:154

Definition at line 157 of file Mlp.core.h.

◆ __ae2fVK_AnnMlpGoalOff

#define __ae2fVK_AnnMlpGoalOff ( i_depth,
i_outc )
Value:
(__ae2fVK_AnnMlpDeltaStreamSz(i_depth, i_outc) + __ae2fVK_AnnMlpDeltaStreamOff(i_depth, i_outc))
#define __ae2fVK_AnnMlpDeltaStreamSz(i_depth, i_outc)
Definition Mlp.core.h:145
#define __ae2fVK_AnnMlpDeltaStreamOff(i_depth, i_outc)
Definition Mlp.core.h:148

Definition at line 154 of file Mlp.core.h.

◆ __ae2fVK_AnnMlpGoalSz

#define __ae2fVK_AnnMlpGoalSz ( i_depth,
i_outc )
Value:
(sizeof(ae2f_float_t)) * (i_outc)

Definition at line 151 of file Mlp.core.h.

◆ __ae2fVK_AnnMlpMapRangedGeneric_imp

#define __ae2fVK_AnnMlpMapRangedGeneric_imp   __ae2fVK_AnnSlpMapRangedGeneric_imp

Definition at line 167 of file Mlp.core.h.

◆ __ae2fVK_AnnMlpMdlOff

#define __ae2fVK_AnnMlpMdlOff ( ...)
Value:
0

Definition at line 125 of file Mlp.core.h.

◆ __ae2fVK_AnnMlpMdlSz

#define __ae2fVK_AnnMlpMdlSz ( i_depth,
... )
Value:
((sizeof(uint32_t) * (i_depth)))
#define uint32_t

Definition at line 122 of file Mlp.core.h.

◆ __ae2fVK_AnnMlpOutStreamOff

#define __ae2fVK_AnnMlpOutStreamOff ( i_depth,
i_outc )
Value:
(__ae2fVK_AnnMlpMdlOff(i_depth, i_outc) + __ae2fVK_AnnMlpMdlSz(i_depth, i_outc))
#define __ae2fVK_AnnMlpMdlOff(...)
Definition Mlp.core.h:125
#define __ae2fVK_AnnMlpMdlSz(i_depth,...)
Definition Mlp.core.h:122

Definition at line 130 of file Mlp.core.h.

◆ __ae2fVK_AnnMlpOutStreamSz

#define __ae2fVK_AnnMlpOutStreamSz ( i_depth,
i_outc )
Value:
((sizeof(ae2f_float_t)) * (i_depth) * (i_outc))

Definition at line 127 of file Mlp.core.h.

◆ __ae2fVK_AnnMlpUnMapRanged_imp

#define __ae2fVK_AnnMlpUnMapRanged_imp   __ae2fVK_AnnSlpUnMapRanged_imp

Definition at line 168 of file Mlp.core.h.

◆ __ae2fVK_AnnMlpWeightOff

#define __ae2fVK_AnnMlpWeightOff ( i_depth,
i_outc )
Value:
(__ae2fVK_AnnMlpOutStreamOff(i_depth, i_outc) + __ae2fVK_AnnMlpOutStreamSz(i_depth, i_outc))
#define __ae2fVK_AnnMlpOutStreamSz(i_depth, i_outc)
Definition Mlp.core.h:127
#define __ae2fVK_AnnMlpOutStreamOff(i_depth, i_outc)
Definition Mlp.core.h:130

Definition at line 136 of file Mlp.core.h.

◆ __ae2fVK_AnnMlpWeightSz

#define __ae2fVK_AnnMlpWeightSz ( i_depth,
i_outc )
Value:
((sizeof(ae2f_float_t)) * ((i_depth) - 1) * (i_outc) * (i_outc))

Definition at line 133 of file Mlp.core.h.

Typedef Documentation

◆ ae2fVK_AnnMlpDescPoolCmdMk_t

typedef ae2fVK_AnnSlpDescPoolCmdMk_t ae2fVK_AnnMlpDescPoolCmdMk_t

Definition at line 119 of file Mlp.core.h.

◆ ae2fVK_AnnMlpMapRangedGeneric_t

typedef VkMappedMemoryRange ae2fVK_AnnMlpMapRangedGeneric_t

Definition at line 118 of file Mlp.core.h.

◆ ae2fVK_AnnMlpUnMap_t

typedef VkMappedMemoryRange ae2fVK_AnnMlpUnMap_t

Definition at line 117 of file Mlp.core.h.

Function Documentation

◆ ae2f_enumdef() [1/4]

ae2f_enumdef ( ae2fVK_eAnnMlpDescLayouts ,
{ ae2fVK_eAnnMlpDescLayouts_ONLY, ae2fVK_eAnnMlpDescLayouts_LEN }  )

◆ ae2f_enumdef() [2/4]

ae2f_enumdef ( ae2fVK_eAnnMlpDescPools ,
{ ae2fVK_eAnnMlpDescPools_ONLY, ae2fVK_eAnnMlpDescPools_LEN }  )

◆ ae2f_enumdef() [3/4]

ae2f_enumdef ( ae2fVK_eAnnMlpPipeLayouts ,
{ ae2fVK_eAnnMlpPipeLayouts_kPredict, ae2fVK_eAnnMlpPipeLayouts_kTrain, ae2fVK_eAnnMlpPipeLayouts_LEN }  )

◆ ae2f_enumdef() [4/4]

ae2f_enumdef ( ae2fVK_eAnnMlpPipes ,
{ ae2fVK_eAnnMlpPipes_kPredict, ae2fVK_eAnnMlpPipes_kPredictStream, ae2fVK_eAnnMlpPipes_kFollow, ae2fVK_eAnnMlpPipes_kTrainAuto, ae2fVK_eAnnMlpPipes_LEN }  )

◆ ae2f_structdef() [1/9]

ae2f_structdef ( struct ,
ae2fVK_AnnMlp  )

Definition at line 11 of file Mlp.h.

◆ ae2f_structdef() [2/9]

ae2f_structdef ( struct ,
ae2fVK_AnnMlpMk_t  )

Definition at line 106 of file Mlp.core.h.

◆ ae2f_structdef() [3/9]

ae2f_structdef ( struct ,
ae2fVK_AnnMlpMkRet_t  )

Definition at line 103 of file Mlp.core.h.

◆ ae2f_structdef() [4/9]

ae2f_structdef ( struct ,
ae2fVK_AnnMlpMkU0Swap_t  )

Maximum output count among all layers.

Loop counter.

Union for pointer manipulation during creation.

Base pointer to the created MLP.

Definition at line 40 of file Mlp.core.h.

◆ ae2f_structdef() [5/9]

ae2f_structdef ( struct ,
ae2fVK_AnnMlpMkU4_t  )

Definition at line 99 of file Mlp.core.h.

◆ ae2f_structdef() [6/9]

ae2f_structdef ( union ,
ae2fVK_AnnMlpMkU0_t  )

END OF DEFINITION

Definition at line 63 of file Mlp.core.h.

◆ ae2f_structdef() [7/9]

ae2f_structdef ( union ,
ae2fVK_AnnMlpMkU1_t  )

Definition at line 69 of file Mlp.core.h.

◆ ae2f_structdef() [8/9]

ae2f_structdef ( union ,
ae2fVK_AnnMlpMkU2_t  )

Definition at line 84 of file Mlp.core.h.

◆ ae2f_structdef() [9/9]

ae2f_structdef ( union ,
ae2fVK_AnnMlpMkU3_t  )

Definition at line 92 of file Mlp.core.h.