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_DIM1 ((int32_t) 1) 120 #define TIDLRT_DIM_DIM2 ((int32_t) 2) 121 #define TIDLRT_DIM_NUMCH ((int32_t) 3) 122 #define TIDLRT_DIM_HEIGHT ((int32_t) 4) 123 #define TIDLRT_DIM_WIDTH ((int32_t) 5) 124 #define TIDLRT_DIM_MAX (TIDLRT_DIM_WIDTH+1) 135 #define TIDLRT_ROI_PITCH ((uint32_t) 0) 136 #define TIDLRT_DIM1_PITCH ((uint32_t) 1) 137 #define TIDLRT_DIM2_PITCH ((uint32_t) 2) 138 #define TIDLRT_CHANNEL_PITCH ((uint32_t) 3) 139 #define TIDLRT_LINE_PITCH ((uint32_t) 4) 140 #define TIDLRT_PITCH_MAX ((uint32_t) (TIDLRT_DIM_MAX - 1)) 151 #define TIDLRT_MEM_USER_SPACE ((uint32_t) 0) 152 #define TIDLRT_MEM_SHARED ((uint32_t) 1) 153 #define TIDLRT_MEM_NATIVE ((uint32_t) 2) 154 #define TIDLRT_MEM_MAX (TIDLRT_MEM_NATIVE+1) 167 #define TIDLRT_LT_NCHW ((uint32_t) 0) 168 #define TIDLRT_LT_NHWC ((uint32_t) 1) 169 #define TIDLRT_LT_MAX (TIDLRT_LT_NHWC+1) 235 int32_t(*TIDLVprintf)(
const char * format, va_list arg);
237 int32_t(*TIDLWriteBinToFile)(
const char * fileName,
void * addr, int32_t size, int32_t count);
239 int32_t(*TIDLReadBinFromFile)(
const char * fileName,
void * addr, int32_t size, int32_t count);
float maxPreEmptDelay
Definition: itidl_rt.h:233
int32_t traceLogLevel
Definition: itidl_rt.h:223
uint64_t proc_time_start
Definition: itidl_rt.h:205
uint64_t cpOut_time_start
Definition: itidl_rt.h:207
void * ioBufDescPtr
Definition: itidl_rt.h:215
#define TIDLRT_DIM_MAX
Definition: itidl_rt.h:124
#define TIDLRT_PAD_DIM_MAX
Definition: itidl_rt.h:88
uint32_t layout
Definition: itidl_rt.h:193
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:179
Definition: itidl_rt.h:172
uint32_t coreNum
Definition: itidl_rt.h:245
int32_t flowCtrl
Definition: itidl_rt.h:221
void * ptr
Definition: itidl_rt.h:189
float quantRangeUpdateFactor
Definition: itidl_rt.h:231
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:206
sTIDLRT_PerfStats_t * stats
Definition: itidl_rt.h:241
int32_t io_capacity
Definition: itidl_rt.h:219
int32_t dataOffset
Definition: itidl_rt.h:191
uint64_t cpIn_time_start
Definition: itidl_rt.h:203
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:204
int targetPriority
Definition: itidl_rt.h:243
void * netPtr
Definition: itidl_rt.h:213
Definition: itidl_rt.h:211
int32_t traceWriteLevel
Definition: itidl_rt.h:225
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:199
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:208
int32_t TIDLRT_delete(void *handle)
Function to delete an instance of TIDL runtime.
int32_t zeroPoint
Definition: itidl_rt.h:195
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:181
#define TIDLRT_STRING_SIZE
Definition: itidl_rt.h:87
float quantRangeExpansionFactor
Definition: itidl_rt.h:229
float scale
Definition: itidl_rt.h:197
int32_t net_capacity
Definition: itidl_rt.h:217
int32_t coreStartIdx
Definition: itidl_rt.h:247
Definition: itidl_rt.h:202