TI Deep Learning Product User Guide
|
This structure contains all the parameters which TI DL library at create time.
Data Fields | |
IVISION_Params | visionParams |
int32_t | currLayersGroupId |
int32_t | isInbufsPaded |
int32_t | optimiseExtMem |
float32_tidl | quantRangeExpansionFactor |
float32_tidl | quantRangeUpdateFactor |
int32_t | traceLogLevel |
int32_t | traceWriteLevel |
int32_t | reservedCtrl |
int32_t | flowCtrl |
float32_tidl | maxPreEmptDelay |
void * | traceBaseName |
void * | udmaDrvObj |
sTIDL_Network_t * | net |
TIDL_Lock_t | pFxnLock |
TIDL_Unlock_t | pFxnUnLock |
int32_t(* | TIDLVprintf )(const char *format, va_list arg) |
void * | tracePtr |
int32_t(* | TIDLWriteBinToFile )(const char *fileName, void *addr, int32_t size, void *tracePtr) |
int32_t(* | TIDLReadBinFromFile )(const char *fileName, void *addr, int32_t size) |
int32_t(* | TIDL_CustomLayerProcess )(void *tidlHandle, sTIDL_Layer_t *tidlLayer, void *inPtrs[], void *outPtrs[], void *params, void *dmaUtilsContext, const sTIDL_sysMemHandle_t sysMems[TIDL_SYSMEM_MAX], int32_t execMode) |
Custom Layer Process API. More... | |
IVISION_Params TIDL_CreateParams::visionParams |
Common parameters for all ivision based modules
int32_t TIDL_CreateParams::currLayersGroupId |
Group ID of the each layer
int32_t TIDL_CreateParams::isInbufsPaded |
Indicates Whether the input buffers are padded or Not.
int32_t TIDL_CreateParams::optimiseExtMem |
Optimization level for External memory used bu TIDL
float32_tidl TIDL_CreateParams::quantRangeExpansionFactor |
Expansion factor used for range of activation while quantization
float32_tidl TIDL_CreateParams::quantRangeUpdateFactor |
Update factor used for range of activation while quantization
int32_t TIDL_CreateParams::traceLogLevel |
Level for debug messages
int32_t TIDL_CreateParams::traceWriteLevel |
Level for debug trace dumps of tensors and other data buffers
int32_t TIDL_CreateParams::reservedCtrl |
Reserved control for debug
int32_t TIDL_CreateParams::flowCtrl |
control for selecting different flows. Applicable only for advanced user
float32_tidl TIDL_CreateParams::maxPreEmptDelay |
Maximum Tolerated delay for TIDL pre-emption in milliSecond, The delay is assuming C7x processor frequency as 1GHz. If the clocked frequency is different then this variable should be scaled up/down appropriately. Example : to achieve pre-emption within 3 ms (wall clock delay): CPU clocked frequency: 1000 MHz, then maxPreEmptDelay = 3 CPU clocked frequency: 2000 MHz, then maxPreEmptDelay = 6 CPU clocked frequency: 500 MHz, then maxPreEmptDelay = 1.5
void* TIDL_CreateParams::traceBaseName |
trace files base Name
void* TIDL_CreateParams::udmaDrvObj |
UDMA driver object pointer . Note : All the addresses given to TIDL are assumed to be virtual addresses. If udma driver is initialized with virtual to physical function pointer initPrms.virtToPhyFxn then the same function will be used for this conversion in TIDL whereever it is needed.
sTIDL_Network_t* TIDL_CreateParams::net |
Pointer to TILD Model/Network
TIDL_Lock_t TIDL_CreateParams::pFxnLock |
Call back Function pointer to lock critical section/interrupts
TIDL_Unlock_t TIDL_CreateParams::pFxnUnLock |
Call back Function pointer to unlock critical section/interrupts
int32_t(* TIDL_CreateParams::TIDLVprintf) (const char *format, va_list arg) |
Call back Function pointer to Write Log
void* TIDL_CreateParams::tracePtr |
Trace buffer pointer to write trace buffers when TIDL running in multiple instances
int32_t(* TIDL_CreateParams::TIDLWriteBinToFile) (const char *fileName, void *addr, int32_t size, void *tracePtr) |
Call back Function pointer to Write Binary data to a file
int32_t(* TIDL_CreateParams::TIDLReadBinFromFile) (const char *fileName, void *addr, int32_t size) |
Call back Function pointer to read data from a binary file
int32_t(* TIDL_CreateParams::TIDL_CustomLayerProcess) (void *tidlHandle, sTIDL_Layer_t *tidlLayer, void *inPtrs[], void *outPtrs[], void *params, void *dmaUtilsContext, const sTIDL_sysMemHandle_t sysMems[TIDL_SYSMEM_MAX], int32_t execMode) |
Custom Layer Process API.
tidlHandle | Pointer to the tidlHandle. |
tidlLayer | TIDL layer parameters. Refer sTIDL_Layer_t for details. |
inPtrs | Input buffers to custom layer. |
outPtrs | Output buffers from custom layer. |
params | Custom layer parameters. |
dmaUtilsContext | Pointer to DMA Utils Handle. Current TIDL initializes 12 DMA channels and same can be used by custom layer |
sysMems | System Memory Handle. |
execMode | Execution mode of custom layer process API. Refer eTIDL_CustomLayerExecMode for details. |