87 #define TIDLRT_STRING_SIZE ((int32_t) 512) 88 #define TIDLRT_PAD_DIM_MAX ((uint32_t) 4) 98 #define TIDLRT_Uint8 ((int32_t) 0) 99 #define TIDLRT_Int8 ((int32_t) 1) 100 #define TIDLRT_Uint16 ((int32_t) 2) 101 #define TIDLRT_Int16 ((int32_t) 3) 102 #define TIDLRT_Uint32 ((int32_t) 4) 103 #define TIDLRT_Int32 ((int32_t) 5) 104 #define TIDLRT_Float32 ((int32_t) 6) 105 #define TIDLRT_Uint64 ((int32_t) 7) 106 #define TIDLRT_Int64 ((int32_t) 8) 118 #define TIDLRT_DIM_BATCH ((int32_t) 0) 119 #define TIDLRT_DIM_NUMCH ((int32_t) 1) 120 #define TIDLRT_DIM_HEIGHT ((int32_t) 2) 121 #define TIDLRT_DIM_WIDTH ((int32_t) 3) 122 #define TIDLRT_DIM_MAX (TIDLRT_DIM_WIDTH+1) 133 #define TIDLRT_ROI_PITCH ((uint32_t) 0) 134 #define TIDLRT_CHANNEL_PITCH ((uint32_t) 1) 135 #define TIDLRT_LINE_PITCH ((uint32_t) 2) 136 #define TIDLRT_PITCH_MAX ((uint32_t) (TIDLRT_DIM_MAX - 1)) 147 #define TIDLRT_MEM_USER_SPACE ((uint32_t) 0) 148 #define TIDLRT_MEM_SHARED ((uint32_t) 1) 149 #define TIDLRT_MEM_NATIVE ((uint32_t) 2) 150 #define TIDLRT_MEM_MAX (TIDLRT_MEM_NATIVE+1) 163 #define TIDLRT_LT_NCHW ((uint32_t) 0) 164 #define TIDLRT_LT_NHWC ((uint32_t) 1) 165 #define TIDLRT_LT_MAX (TIDLRT_LT_NHWC+1) 231 int32_t(*TIDLVprintf)(
const char * format, va_list arg);
233 int32_t(*TIDLWriteBinToFile)(
const char * fileName,
void * addr, int32_t size,
void *tracePtr);
235 int32_t(*TIDLReadBinFromFile)(
const char * fileName,
void * addr, int32_t size);
float maxPreEmptDelay
Definition: itidl_rt.h:229
int32_t traceLogLevel
Definition: itidl_rt.h:219
uint64_t proc_time_start
Definition: itidl_rt.h:201
uint64_t cpOut_time_start
Definition: itidl_rt.h:203
void * ioBufDescPtr
Definition: itidl_rt.h:211
#define TIDLRT_DIM_MAX
Definition: itidl_rt.h:122
#define TIDLRT_PAD_DIM_MAX
Definition: itidl_rt.h:88
uint32_t layout
Definition: itidl_rt.h:189
int32_t TIDLRT_setParamsDefault(sTIDLRT_Params_t *prms)
Function to set default values for parameters defined in sTIDLRT_Params_t.
void TIDLRT_freeSharedMem(void *ptr)
Function to free the memory allocated using TIDLRT_allocSharedMem.
int32_t elementType
Definition: itidl_rt.h:175
Definition: itidl_rt.h:168
uint32_t coreNum
Definition: itidl_rt.h:241
int32_t flowCtrl
Definition: itidl_rt.h:217
void * ptr
Definition: itidl_rt.h:185
float quantRangeUpdateFactor
Definition: itidl_rt.h:227
int32_t TIDLRT_isSharedMem(void *ptr)
Function to check whether The memory pointed by input pointer is part of shared heap section or NOT...
uint64_t proc_time_end
Definition: itidl_rt.h:202
sTIDLRT_PerfStats_t * stats
Definition: itidl_rt.h:237
int32_t io_capacity
Definition: itidl_rt.h:215
int32_t dataOffset
Definition: itidl_rt.h:187
uint64_t cpIn_time_start
Definition: itidl_rt.h:199
int32_t TIDLRT_setTensorDefault(sTIDLRT_Tensor_t *tensor)
Function to set default values of parameters defined in sTIDLRT_Tensor_t.
uint64_t cpIn_time_end
Definition: itidl_rt.h:200
int targetPriority
Definition: itidl_rt.h:239
void * netPtr
Definition: itidl_rt.h:209
Definition: itidl_rt.h:207
int32_t traceWriteLevel
Definition: itidl_rt.h:221
int32_t TIDLRT_invoke(void *handle, sTIDLRT_Tensor_t *in[], sTIDLRT_Tensor_t *out[])
Function to run inference on input using a TIDL RT instance handle.
uint32_t memType
Definition: itidl_rt.h:195
int32_t TIDLRT_create(sTIDLRT_Params_t *prms, void **handle)
Function to create an instance of TIDL runtime.
void * TIDLRT_allocSharedMem(int32_t alignment, int32_t size)
Function to allocate memory in the shared heap memory section between the Host core and DL accelerato...
uint64_t cpOut_time_end
Definition: itidl_rt.h:204
int32_t TIDLRT_delete(void *handle)
Function to delete an instance of TIDL runtime.
int32_t zeroPoint
Definition: itidl_rt.h:191
int32_t TIDLRT_getDdrStats(uint64_t *read_bytes, uint64_t *write_bytes)
Function to get the number of bytes read and written during the last inference call TIDLRT_invoke...
int32_t TIDLRT_deactivate(void *handle)
Function to deactivate a instance of TIDL runtime. Activate will be done by the invoke if the handle ...
int32_t numDim
Definition: itidl_rt.h:177
#define TIDLRT_STRING_SIZE
Definition: itidl_rt.h:87
float quantRangeExpansionFactor
Definition: itidl_rt.h:225
float scale
Definition: itidl_rt.h:193
int32_t net_capacity
Definition: itidl_rt.h:213
void * traceBaseName
Definition: itidl_rt.h:223
Definition: itidl_rt.h:198