TI Deep Learning Product User Guide
itidl_ti.h
Go to the documentation of this file.
1 /*
2 *
3 * Copyright (c) {2015 - 2020} Texas Instruments Incorporated
4 *
5 * All rights reserved not granted herein.
6 *
7 * Limited License.
8 *
9 * Texas Instruments Incorporated grants a world-wide, royalty-free, non-exclusive
10 * license under copyrights and patents it now or hereafter owns or controls to make,
11 * have made, use, import, offer to sell and sell ("Utilize") this software subject to the
12 * terms herein. With respect to the foregoing patent license, such license is granted
13 * solely to the extent that any such patent is necessary to Utilize the software alone.
14 * The patent license shall not apply to any combinations which include this software,
15 * other than combinations with devices manufactured by or for TI ("TI Devices").
16 * No hardware patent is licensed hereunder.
17 *
18 * Redistributions must preserve existing copyright notices and reproduce this license
19 * (including the above copyright notice and the disclaimer and (if applicable) source
20 * code license limitations below) in the documentation and/or other materials provided
21 * with the distribution
22 *
23 * Redistribution and use in binary form, without modification, are permitted provided
24 * that the following conditions are met:
25 *
26 * * No reverse engineering, decompilation, or disassembly of this software is
27 * permitted with respect to any software provided in binary form.
28 *
29 * * any redistribution and use are licensed by TI for use only with TI Devices.
30 *
31 * * Nothing shall obligate TI to provide you with source code for the software
32 * licensed and provided to you in object code.
33 *
34 * If software source code is provided to you, modification and redistribution of the
35 * source code are permitted provided that the following conditions are met:
36 *
37 * * any redistribution and use of the source code, including any resulting derivative
38 * works, are licensed by TI for use only with TI Devices.
39 *
40 * * any redistribution and use of any object code compiled from the source code
41 * and any resulting derivative works, are licensed by TI for use only with TI Devices.
42 *
43 * Neither the name of Texas Instruments Incorporated nor the names of its suppliers
44 *
45 * may be used to endorse or promote products derived from this software without
46 * specific prior written permission.
47 *
48 * DISCLAIMER.
49 *
50 * THIS SOFTWARE IS PROVIDED BY TI AND TI'S LICENSORS "AS IS" AND ANY EXPRESS
51 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
52 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
53 * IN NO EVENT SHALL TI AND TI'S LICENSORS BE LIABLE FOR ANY DIRECT, INDIRECT,
54 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
55 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
56 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
57 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
58 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
59 * OF THE POSSIBILITY OF SUCH DAMAGE.
60 *
61 */
62 
63 
76 #ifndef ITIDL_H_
77 #define ITIDL_H_
78 
79 #define USE_IVISION (1)
80 
81 #include <stdint.h>
82 #include <stdarg.h>
83 #include <stdlib.h>
84 #include <float.h>
85 
86 #ifdef TIDL_IMPORT_TOOL
87 #define USE_IVISION (0)
88 #endif
89 
90 #if USE_IVISION
91 #include <ivision.h>
92 
93 
94 
98 extern const IVISION_Fxns TIDL_VISION_FXNS;
99 
100 
101 #endif
102 #ifdef __cplusplus
103 extern "C" {
104 #endif
105 
106 #define TIDL_NUM_MAX_LAYERS ((int32_t) 1024)
107 #define TIDL_NUM_IN_BUFS ((int32_t) 24)
108 #define TIDL_NUM_OUT_BUFS ((int32_t) 16)
109 #define TIDL_STRING_SIZE ((int32_t) 512)
110 #define TIDL_MAX_DATA_BUFS ((int32_t) 1024)
111 #define TIDL_MAX_ALG_IN_BUFS ((int32_t) 32)
112 #define TIDL_MAX_ALG_OUT_BUFS ((int32_t) 32)
113 #define TIDL_MAX_NUM_GROUPS ((int32_t) 64)
114 
115 #define TIDL_MAX_PRIORITY_LEVEL ((int32_t) 8)
116 #define TIDL_MAX_OBJECTS_PER_LEVEL ((int32_t) 16)
117 
118 /* Typedef for 32 bit float */
119 typedef float float32_tidl;
120 /* Typedef for 64 bit float */
121 typedef double float64_tidl;
122 
128 typedef int32_t (*TIDL_Lock_t) (void) ;
136 typedef void (*TIDL_Unlock_t) (int32_t);
137 
146 #define TIDL_DataLayer ((int32_t) 0)
147 #define TIDL_ConvolutionLayer ((int32_t) 1)
148 #define TIDL_PoolingLayer ((int32_t) 2)
149 #define TIDL_ReLULayer ((int32_t) 3)
150 #define TIDL_PReLULayer ((int32_t) 4)
151 #define TIDL_EltWiseLayer ((int32_t) 5)
152 #define TIDL_InnerProductLayer ((int32_t) 6)
153 #define TIDL_SoftMaxLayer ((int32_t) 7)
154 #define TIDL_BatchNormLayer ((int32_t) 8)
155 #define TIDL_BiasLayer ((int32_t) 9)
156 #define TIDL_ScaleLayer ((int32_t) 10)
157 #define TIDL_Deconv2DLayer ((int32_t) 11)
158 #define TIDL_ConcatLayer ((int32_t) 12)
159 #define TIDL_SplitLayer ((int32_t) 13)
160 #define TIDL_SliceLayer ((int32_t) 14)
161 #define TIDL_CropLayer ((int32_t) 15)
162 #define TIDL_FlattenLayer ((int32_t) 16)
163 #define TIDL_DropOutLayer ((int32_t) 17)
164 #define TIDL_ArgMaxLayer ((int32_t) 18)
165 #define TIDL_DetectionOutputLayer ((int32_t) 19)
166 #define TIDL_ShuffleChannelLayer ((int32_t) 20)
167 #define TIDL_ResizeLayer ((int32_t) 21)
168 #define TIDL_RoiPoolingLayer ((int32_t) 22)
169 #define TIDL_OdPostProcessingLayer ((int32_t) 23)
170 #define TIDL_DepthToSpaceLayer ((int32_t) 24)
171 #define TIDL_SigmoidLayer ((int32_t) 25)
172 #define TIDL_PadLayer ((int32_t) 26)
173 #define TIDL_ColorConversionLayer ((int32_t) 27)
174 #define TIDL_OdOutputReformatLayer ((int32_t) 28)
175 #define TIDL_DataConvertLayer ((int32_t) 29)
176 #define TIDL_CustomLayer ((int32_t) 30)
177 #define TIDL_BatchReshapeLayer ((int32_t) 31)
178 #define TIDL_ReduceLayer ((int32_t) 32)
179 #define TIDL_ScatterElementsLayer ((int32_t) 33)
180 #define TIDL_SqueezeLayer ((int32_t) 34)
181 #define TIDL_TanhLayer ((int32_t) 35)
182 #define TIDL_HardSigmoidLayer ((int32_t) 36)
183 #define TIDL_ELULayer ((int32_t) 37)
184 #define TIDL_ReshapeLayer ((int32_t) 38)
185 #define TIDL_ConstDataLayer ((int32_t) 39)
186 #define TIDL_UnsupportedLayer ((int32_t) 40)
187 /* @} */
188 
197 #define TIDL_UnsignedChar ((int32_t) 0)
198 #define TIDL_SignedChar ((int32_t) 1)
199 #define TIDL_UnsignedShort ((int32_t) 2)
200 #define TIDL_SignedShort ((int32_t) 3)
201 #define TIDL_UnsignedWord ((int32_t) 4)
202 #define TIDL_SignedWord ((int32_t) 5)
203 #define TIDL_SinglePrecFloat ((int32_t) 6)
204 #define TIDL_UnsignedDoubleWord ((int32_t) 7)
205 #define TIDL_SignedDoubleWord ((int32_t) 8)
206 /* @} */
207 
218 #define TIDL_LT_NCHW ((uint32_t) 0)
219 #define TIDL_LT_NHWC ((uint32_t) 1)
220 #define TIDL_LT_MAX (TIDLRT_LT_NHWC+1)
221 /* @} */
222 
223 
232 #define TIDL_DC_TYPE_INPUT ((uint32_t) 0)
233 #define TIDL_DC_TYPE_OUTPUT ((uint32_t) 1)
234 #define TIDL_DC_TYPE_INTERMEDIATE ((uint32_t) 2)
235 #define TIDL_DC_TYPE_MAX (TIDL_DC_TYPE_INTERMEDIATE+1)
236 /* @} */
237 
238 
249 #define TIDL_QuantStyleFixed ((int32_t) 0)
250 
252 #define TIDL_QuantStyleDynamic ((int32_t) 1)
253 
255 #define TIDL_QuantStyleNP2Fixed ((int32_t) 2)
256 
258 #define TIDL_QuantStyleP2Dynamic ((int32_t) 3)
259 
261 #define TIDL_QuantStyleNonP2
262 
264 #define TIDL_QuantStyleAsymNP2_TFL ((int32_t) 5)
265 
266 #define TIDL_QuantStyleCustom ((int32_t) 10)
267 /* @} */
268 
281 #define TIDL_CalibOptionActivationRange ((int32_t) 1)
282 
286 #define TIDL_CalibOptionWeightRange ((int32_t) 2)
287 
288 #define TIDL_CalibOptionBiasCalibration ((int32_t) 4)
289 
292 #define TIDL_CalibOptionPerChannelWeightQuantization ((int32_t) 8)
293 
298 #define TIDL_CalibOptionMixedPrecisionDepthwise ((int32_t) 16)
299 
301 #define TIDL_CalibOptionMixedPrecisionInput ((int32_t) 32)
302 
304 #define TIDL_CalibOptionBiasRange ((int32_t) 64)
305 
306 /* @} */
307 
319 #define TIDL_ActivationRangeMethodHistogram ((int32_t) 0)
320 
325 #define TIDL_ActivationRangeMethodGlobalHistogram ((int32_t) 1)
326 
327 
328 /* @} */
329 
340 #define TIDL_WeightRangeMethodHistogram ((int32_t) 0)
341 
343 #define TIDL_WeightRangeMethodMedian ((int32_t) 1)
344 /* @} */
345 
346 
358 #define TIDL_OptimiseExtMemL0 ((int32_t) 0)
359 
362 #define TIDL_OptimiseExtMemL1 ((int32_t) 1)
363 
366 #define TIDL_OptimiseExtMemL2 ((int32_t) 2)
367 /* @} */
368 
378 #define TIDL_Sparse ((int32_t) 0)
379 
380 #define TIDL_Dense ((int32_t) 1)
381 /* @} */
382 
392 #define TIDL_StrideOffsetTopLeft ((int32_t) 0)
393 #define TIDL_StrideOffsetCenter ((int32_t) 1)
394 #define TIDL_StrideOffsetMax ((int32_t) 2)
395 /* @} */
396 
405 #define TIDL_MaxPooling ((int32_t) 0)
406 #define TIDL_AveragePooling ((int32_t) 1)
407 /* @} */
408 
409 
418 #define TIDL_NoAct ((int32_t) 0)
419 #define TIDL_RelU ((int32_t) 1)
420 #define TIDL_PRelU ((int32_t) 2)
421 #define TIDL_RelU6 ((int32_t) 3)
422 #define TIDL_Clip ((int32_t) 4)
423 #define TIDL_Sigmoid ((int32_t) 5)
424 #define TIDL_Tanh ((int32_t) 6)
425 #define TIDL_HardSigmoid ((int32_t) 7)
426 #define TIDL_ELU ((int32_t) 8)
427 /* @} */
428 
437 #define TIDL_EltWiseProduct ((int32_t) 0)
438 #define TIDL_EltWiseSum ((int32_t) 1)
439 #define TIDL_EltWiseMax ((int32_t) 2)
440 /* @} */
441 
450 #define TIDL_DIM_BATCH ((int32_t) 0)
451 #define TIDL_DIM_NUMCH ((int32_t) 1)
452 #define TIDL_DIM_HEIGHT ((int32_t) 2)
453 #define TIDL_DIM_WIDTH ((int32_t) 3)
454 #define TIDL_DIM_MAX ((int32_t) 4)
455 /* @} */
456 
465 #define TIDL_ROI_PITCH ((uint32_t) 0)
466 #define TIDL_CHANNEL_PITCH ((uint32_t) 1)
467 #define TIDL_LINE_PITCH ((uint32_t) 2)
468 #define TIDL_PITCH_MAX ((uint32_t) (TIDL_DIM_MAX - 1))
469 /* @} */
470 
480 /* Convolution layer error types */
481 #define TIDL_E_CONVOLUTION ((int32_t) -1000)
482 #define TIDL_E_CONV_INVALID_INPUT_WIDTH ((int32_t) (TIDL_E_CONVOLUTION - 0))
483 #define TIDL_E_CONV_INVALID_INPUT_HEIGHT ((int32_t) (TIDL_E_CONVOLUTION - 1))
484 #define TIDL_E_CONV_INVALID_OUTPUT_WIDTH ((int32_t) (TIDL_E_CONVOLUTION - 2))
485 #define TIDL_E_CONV_INVALID_OUTPUT_HEIGHT ((int32_t) (TIDL_E_CONVOLUTION - 3))
486 #define TIDL_E_CONV_INVALID_NUM_IN_CHANNELS ((int32_t) (TIDL_E_CONVOLUTION - 4))
487 #define TIDL_E_CONV_INVALID_NUM_OUT_CHANNELS ((int32_t) (TIDL_E_CONVOLUTION - 5))
488 #define TIDL_E_CONV_INVALID_KER_WIDTH ((int32_t) (TIDL_E_CONVOLUTION - 6))
489 #define TIDL_E_CONV_INVALID_KER_HEIGHT ((int32_t) (TIDL_E_CONVOLUTION - 7))
490 #define TIDL_E_CONV_INVALID_KER_TYPE ((int32_t) (TIDL_E_CONVOLUTION - 8))
491 #define TIDL_E_CONV_INVALID_STRIDE_WIDTH ((int32_t) (TIDL_E_CONVOLUTION - 9))
492 #define TIDL_E_CONV_INVALID_STRIDE_HEIGHT ((int32_t) (TIDL_E_CONVOLUTION - 10))
493 #define TIDL_E_CONV_NEGATIVE_OUTPUT_SHIFT ((int32_t) (TIDL_E_CONVOLUTION - 11))
494 /* Convolution pooling error types */
495 #define TIDL_E_CONV_POOL_INVALID_POOL_TYPE ((int32_t) (TIDL_E_CONVOLUTION - 12))
496 #define TIDL_E_CONV_POOL_INVALID_KER_WIDTH ((int32_t) (TIDL_E_CONVOLUTION - 13))
497 #define TIDL_E_CONV_POOL_INVALID_KER_HEIGHT ((int32_t) (TIDL_E_CONVOLUTION - 14))
498 #define TIDL_E_CONV_POOL_INVALID_STRIDE_WIDTH ((int32_t) (TIDL_E_CONVOLUTION - 15))
499 #define TIDL_E_CONV_POOL_INVALID_STRIDE_HEIGHT ((int32_t) (TIDL_E_CONVOLUTION - 16))
500 /* EltWise layer error types */
501 #define TIDL_E_ELTWISE ((int32_t) -1020)
502 #define TIDL_E_ELTWISE_INVALID_INPUT_WIDTH ((int32_t) (TIDL_E_ELTWISE - 0))
503 #define TIDL_E_ELTWISE_INVALID_INPUT_HEIGHT ((int32_t) (TIDL_E_ELTWISE - 1))
504 #define TIDL_E_ELTWISE_INVALID_OUTPUT_WIDTH ((int32_t) (TIDL_E_ELTWISE - 2))
505 #define TIDL_E_ELTWISE_INVALID_OUTPUT_HEIGHT ((int32_t) (TIDL_E_ELTWISE - 3))
506 #define TIDL_E_ELTWISE_INVALID_ELTWISE_TYPE ((int32_t) (TIDL_E_ELTWISE - 4))
507 #define TIDL_E_ELTWISE_INVALID_NUM_CHANNELS ((int32_t) (TIDL_E_ELTWISE - 5))
508 /* Pooling error types */
509 #define TIDL_E_POOLING ((int32_t) -1030)
510 #define TIDL_E_POOL_INVALID_INPUT_WIDTH ((int32_t) (TIDL_E_POOLING - 0))
511 #define TIDL_E_POOL_INVALID_INPUT_HEIGHT ((int32_t) (TIDL_E_POOLING - 1))
512 #define TIDL_E_POOL_INVALID_OUTPUT_WIDTH ((int32_t) (TIDL_E_POOLING - 2))
513 #define TIDL_E_POOL_INVALID_OUTPUT_HEIGHT ((int32_t) (TIDL_E_POOLING - 3))
514 #define TIDL_E_POOL_INVALID_POOL_TYPE ((int32_t) (TIDL_E_POOLING - 4))
515 #define TIDL_E_POOL_INVALID_NUM_CHANNELS ((int32_t) (TIDL_E_POOLING - 5))
516 #define TIDL_E_POOL_INVALID_KER_WIDTH ((int32_t) (TIDL_E_POOLING - 6))
517 #define TIDL_E_POOL_INVALID_KER_HEIGHT ((int32_t) (TIDL_E_POOLING - 7))
518 #define TIDL_E_POOL_INVALID_STRIDE_WIDTH ((int32_t) (TIDL_E_POOLING - 8))
519 #define TIDL_E_POOL_INVALID_STRIDE_HEIGHT ((int32_t) (TIDL_E_POOLING - 9))
520 /* Inner product error types */
521 #define TIDL_E_INNER_PRODUCT ((int32_t) -1040)
522 #define TIDL_E_IP_INVALID_NUM_IN_NODES ((int32_t) (TIDL_E_INNER_PRODUCT - 0))
523 #define TIDL_E_IP_INVALID_NUM_OUT_NODES ((int32_t) (TIDL_E_INNER_PRODUCT - 1))
524 #define TIDL_E_IP_NEGATIVE_OUTPUT_SHIFT ((int32_t) (TIDL_E_INNER_PRODUCT - 2))
525 /* Argmax error types */
526 #define TIDL_E_ARGMAX ((int32_t) -1050)
527 #define TIDL_E_ARGMAX_INVALID_NUM_CHANNELS ((int32_t) (TIDL_E_ARGMAX - 0))
528 /* Bias error types */
529 #define TIDL_E_BN ((int32_t) -1060)
530 #define TIDL_E_BN_INVALID_INPUT_WIDTH ((int32_t) (TIDL_E_BN - 0))
531 #define TIDL_E_BN_INVALID_INPUT_HEIGHT ((int32_t) (TIDL_E_BN - 1))
532 #define TIDL_E_BN_INVALID_OUTPUT_WIDTH ((int32_t) (TIDL_E_BN - 2))
533 #define TIDL_E_BN_INVALID_OUTPUT_HEIGHT ((int32_t) (TIDL_E_BN - 3))
534 #define TIDL_E_BN_INVALID_NUM_CHANNELS ((int32_t) (TIDL_E_BN - 4))
535 #define TIDL_E_BN_INVALID_ENABLE_RELU ((int32_t) (TIDL_E_BN - 5))
536 #define TIDL_E_BN_NEGATIVE_OUTPUT_SHIFT ((int32_t) (TIDL_E_BN - 6))
537 /* Crop layer error types */
538 #define TIDL_E_CROP ((int32_t) -1070)
539 #define TIDL_E_CROP_INVALID_INPUT_WIDTH ((int32_t) (TIDL_E_CROP - 0))
540 #define TIDL_E_CROP_INVALID_INPUT_HEIGHT ((int32_t) (TIDL_E_CROP - 1))
541 #define TIDL_E_CROP_INVALID_OUTPUT_WIDTH ((int32_t) (TIDL_E_CROP - 2))
542 #define TIDL_E_CROP_INVALID_OUTPUT_HEIGHT ((int32_t) (TIDL_E_CROP - 3))
543 #define TIDL_E_CROP_INVALID_NUM_CHANNELS ((int32_t) (TIDL_E_CROP - 4))
544 #define TIDL_E_CROP_INVALID_OFFSET_WIDTH ((int32_t) (TIDL_E_CROP - 5))
545 #define TIDL_E_CROP_INVALID_OFFSET_HEIGHT ((int32_t) (TIDL_E_CROP - 6))
546 /* Flatten layer error types */
547 #define TIDL_E_FLATTEN ((int32_t) -1080)
548 #define TIDL_E_FLATTEN_INVALID_INPUT_WIDTH ((int32_t) (TIDL_E_FLATTEN - 0))
549 #define TIDL_E_FLATTEN_INVALID_INPUT_HEIGHT ((int32_t) (TIDL_E_FLATTEN - 1))
550 #define TIDL_E_FLATTEN_INVALID_OUTPUT_WIDTH ((int32_t) (TIDL_E_FLATTEN - 2))
551 #define TIDL_E_FLATTEN_INVALID_OUTPUT_HEIGHT ((int32_t) (TIDL_E_FLATTEN - 3))
552 /* SoftMax error types */
553 #define TIDL_E_SOFTMAX ((int32_t) -1090)
554 #define TIDL_E_SOFTMAX_INVALID_NUM_CHANNELS ((int32_t) (TIDL_E_SOFTMAX - 0))
555 /* ShuffleChanel error types */
556 #define TIDL_E_SHUFFLECHANNEL ((int32_t) -1100)
557 #define TIDL_E_SHUFFLECHANNEL_INVALID_INPUT_WIDTH ((int32_t) (TIDL_E_SHUFFLECHANNEL - 0))
558 #define TIDL_E_SHUFFLECHANNEL_INVALID_INPUT_HEIGHT ((int32_t) (TIDL_E_SHUFFLECHANNEL - 1))
559 #define TIDL_E_SHUFFLECHANNEL_INVALID_OUTPUT_WIDTH ((int32_t) (TIDL_E_SHUFFLECHANNEL - 2))
560 #define TIDL_E_SHUFFLECHANNEL_INVALID_OUTPUT_HEIGHT ((int32_t) (TIDL_E_SHUFFLECHANNEL - 3))
561 #define TIDL_E_SHUFFLECHANNEL_INVALID_NUM_GROUPS ((int32_t) (TIDL_E_SHUFFLECHANNEL - 4))
562 /* Error types common to layers */
563 #define TIDL_E_COMMON ((int32_t) -1110)
564 #define TIDL_E_UNSUPPORTED_LAYER ((int32_t) (TIDL_E_COMMON - 0))
565 #define TIDL_E_DATAFLOW_INFO_NULL ((int32_t) (TIDL_E_COMMON - 1))
566 #define TIDL_E_INVALID_DEBUG_TRACE_PRM ((int32_t) (TIDL_E_COMMON - 2))
567 #define TIDL_E_INVALID_NET_VERSION ((int32_t) (TIDL_E_COMMON - 3))
568 #define TIDL_E_INVALID_IO_LINE_PITCH ((int32_t) (TIDL_E_COMMON - 4))
569 #define TIDL_E_QUANT_STATS_NOT_AVAILABALE ((int32_t) (TIDL_E_COMMON - 5))
570 #define TIDL_E_INVALID_DDR_INFO_FROM_GC ((int32_t) (TIDL_E_COMMON - 6))
571 #define TIDL_E_EXCEED_PREEMPTION_LEVEL ((int32_t) (TIDL_E_COMMON - 7))
572 #define TIDL_E_EXCEED_OBJECTS_PER_LEVEL ((int32_t) (TIDL_E_COMMON - 8))
573 
574 /*Device specific error codes*/
575 #define TIDL_E_DEV_ERROR ((int32_t) -1120)
576 #define TIDL_E_OTF_ERROR ((int32_t) (TIDL_E_DEV_ERROR - 0))
577 #define TIDL_E_ASYM_ERROR ((int32_t) (TIDL_E_DEV_ERROR - 1))
578 /* @} */
579 
588 #define TIDL_SYSMEM_L1_SCRATCH ((uint32_t) 0)
589 #define TIDL_SYSMEM_L2_SCRATCH ((uint32_t) 1)
590 #define TIDL_SYSMEM_L3_SCRATCH ((uint32_t) 2)
591 #define TIDL_SYSMEM_DDR_SCRATCH ((uint32_t) 3)
592 #define TIDL_SYSMEM_MAX ((uint32_t) 4)
593 /* @} */
594 
605 #define TIDL_EXEC_MODE_STATS_COLLECTION ((int32_t) 0)
606 
607 #define TIDL_EXEC_MODE_INFER_PROCESS ((int32_t) 2)
608 #define TIDL_EXEC_MODE_INFER_PROCESS_REF ((int32_t) 3)
609 
610 
619 #define TIDL_PROFILE_LAYER ((int32_t) 0)
620 #define TIDL_PROFILE_KERNEL_ONLY ((int32_t) 1)
621 #define TIDL_PROFILE_CORE_LOOP ((int32_t) 2)
622 #define TIDL_PROFILE_LAYER_SETUP ((int32_t) 3)
623 #define TIDL_PROFILE_PREFETCH ((int32_t) 4)
624 #define TIDL_PROFILE_DMA_PIPEUP ((int32_t) 5)
625 #define TIDL_PROFILE_LAYER_WITHOUT_PADDING ((int32_t) 6)
626 #define TIDL_PROFILE_LAYER_PADDING_TRIGGER ((int32_t) 7)
627 #define TIDL_PROFILE_LAYER_PADDING_WAIT ((int32_t) 8)
628 #define TIDL_PROFILE_KERNEL_COPY ((int32_t) 9)
629 #define TIDL_PROFILE_LAYER_SETUP_HANDLE_COPY ((int32_t) 10)
630 #define TIDL_PROFILE_LAYER_DEINIT ((int32_t) 11)
631 #define TIDL_PROFILE_LAST_BLOCK_CYCLES ((int32_t) 12)
632 #define TIDL_PROFILE_DMA_PIPEDOWN ((int32_t) 13)
633 #define TIDL_PROFILE_BACKUP ((int32_t) 14)
634 #define TIDL_PROFILE_RESTORE ((int32_t) 15)
635 #define TIDL_PROFILE_MAX ((int32_t) 16)
636 
637 /* @} */
638 
650 typedef struct
651 {
652  void* ptr;
653  int32_t bufSize;
654  int32_t offset;
655  int32_t reserved[1];
656 }sBuffer_t;
657 
676 typedef struct
677 {
678  void *base;
679  int32_t size;
680  int32_t offset;
682 
684 
690 typedef struct {
692  int32_t dataId;
694  int32_t elementType;
696  int32_t numDim;
698  int32_t dataQ;
700  int32_t minValue;
702  int32_t maxValue;
704  float32_tidl minTensorValue;
706  float32_tidl maxTensorValue;
708  float32_tidl tensorScale;
712  int32_t padW;
714  int32_t padH;
716  int32_t batchPadW;
718  int32_t batchPadH;
720  int32_t numBatchW;
722  int32_t numBatchH;
724  int32_t roundBits;
726  int32_t pitch[TIDL_DIM_MAX-1];
728  int32_t dimValues[TIDL_DIM_MAX];
730 
731 
732 
738 typedef struct {
740  int32_t numChannels;
742  int32_t dataQ;
744 
745 
751 typedef struct {
753  int32_t numGroups;
755  int32_t resvd;
757 
763 typedef struct {
765  int32_t blockSize;
767 
773 typedef struct {
775  int32_t padT;
777  int32_t padB;
779  int32_t padL;
781  int32_t padR;
783  int32_t padConstValue;
785  int32_t padType;
792 
798 typedef struct {
800  int32_t layerType;
804 
810 typedef enum
811 {
816 
822 typedef struct {
824  int32_t mode;
826  float32_tidl resizeRatio[TIDL_DIM_MAX];
828 
834 typedef enum
835 {
839 
845 typedef enum
846 {
851 
857 typedef enum
858 {
872 
878 typedef struct {
880  int32_t poolingType;
882  int32_t imWidth;
884  int32_t imHeight;
886 
887 
893 typedef struct {
895  int32_t slicePoints[TIDL_NUM_OUT_BUFS+1];
897  int32_t axis;
899  int32_t stride;
901 
907 typedef struct {
909  int32_t slope;
911  float32_tidl slopeScale;
913  float32_tidl clipMin;
914  //** maximum value for clip */
915  float32_tidl clipMax;
917  int32_t actType;
919 
925 typedef struct {
955  float32_tidl biasCalibrationFactor;
961 
962 
968 typedef struct {
970  int32_t numChannels;
972  int32_t inDataQ;
974  int32_t outDataQ;
976 
982 typedef struct {
984  int32_t numChannels;
986  int32_t poolingType;
988  int32_t kernelW;
990  int32_t kernelH;
992  int32_t strideW;
994  int32_t strideH;
996  int32_t padW;
998  int32_t padH;
1000  int32_t inDataQ;
1002  int32_t outDataQ;
1004  int32_t useCeil;
1006 
1011 typedef struct {
1016  int32_t padW;
1019  int32_t padH;
1031  int32_t forceInPlace ;
1069 
1075 typedef struct {
1077  int32_t weights;
1079  int32_t bias;
1081  int32_t weightScales;
1085  int32_t biasScales;
1094  int32_t numInChannels;
1098  int32_t numGroups;
1100  int32_t kernelW;
1102  int32_t kernelH;
1104  int32_t strideW;
1106  int32_t strideH;
1108  int32_t dilationW;
1110  int32_t dilationH;
1112  int32_t padW;
1114  int32_t padH;
1116  int32_t padL;
1118  int32_t padR;
1120  int32_t padT;
1122  int32_t padB;
1124  float32_tidl weightScale;
1126  float32_tidl biasScale;
1128  int32_t weightsQ;
1132  int32_t biasB;
1134  int32_t biasQ;
1136  int32_t inDataQ;
1138  int32_t outDataQ;
1140  int32_t interDataQ;
1142  int32_t enableBias;
1144  int32_t enablePooling;
1146  int32_t enableEltWise;
1148  int32_t enableEWRelU;
1150  int32_t kernelType;
1155  int32_t upscaleFactor;
1159  int32_t minPSAT;
1161  int32_t maxPSAT;
1165 
1170 typedef enum
1171 {
1182 
1187 typedef enum
1188 {
1193 
1198 typedef enum
1199 {
1204 
1210 typedef struct
1211 {
1213  float32_tidl fX;
1215  float32_tidl fY;
1217  float32_tidl pX;
1219  float32_tidl pY;
1220 
1222 
1228 /* CHECK_MISRA("-18.4") -> Disable rule 18.4 */
1229 
1230 typedef union {
1233 
1234 
1241 typedef struct {
1245  int32_t priorBox;
1247  int32_t priorBoxSize;
1249  int32_t numClasses;
1253  int32_t codeType;
1256  float32_tidl confThreshold;
1259  float32_tidl nmsThreshold;
1261  float32_tidl eta;
1263  int32_t topK;
1267  int32_t keepTopK;
1270  int32_t shareLocation;
1275  int32_t numKeypoints;
1279  int32_t subCodeType;
1282 
1284  int32_t numHeads;
1285 
1289  int32_t numSubHeads;
1290 
1292  int32_t imWidth;
1293 
1295  int32_t imHeight;
1296 
1298  float32_tidl point3dRange[3][2];
1299 
1301  float32_tidl voxelSize[3];
1302 
1305 
1306  /*0 -> IDENTITY, 1 -> SIGMOID, 2 -> SOFTMAX*/
1308 
1310  int32_t metaArchType;
1311 
1312  /* 0 -> All the Data from given Anchor Box are together,
1313  1 -> Data from all Anchor Box are interleaved */
1314  int32_t dataLayout;
1315 
1316 }sTIDL_DetectOutputParams_t; //Layer Params
1317 
1318 
1324 typedef enum
1325 {
1326  TIDL_Invalid = 0, //sTIDL_DetectOutputParams_t.subCodeParams are not populated and used.
1327  TIDL_ObjectPose = 1, //sTIDL_DetectOutputParams_t.subCodeParams are used for objectPose processing.
1329 
1330 
1331 #define TIDL_OD_MAX_KEYPOINTS (16)
1332 #define TIDL_OD_MAX_ANCHORS_PER_HEAD (16)
1333 
1340 typedef struct {
1341 
1343  int32_t numAnchors;
1345  int32_t numKeyPoints;
1347  int32_t headWidth;
1349  int32_t headHeight;
1351  float32_tidl strideW;
1353  float32_tidl strideH;
1355  float32_tidl strideL;
1357  float32_tidl offsetW;
1359  float32_tidl offsetH;
1361  float32_tidl offsetL;
1363  float32_tidl offsetDir;
1365  float32_tidl boxScales[4];
1367  float32_tidl kpScales[TIDL_OD_MAX_KEYPOINTS];
1369  float32_tidl boxLength[TIDL_OD_MAX_ANCHORS_PER_HEAD];
1371  float32_tidl boxWidth[TIDL_OD_MAX_ANCHORS_PER_HEAD];
1373  float32_tidl boxHeight[TIDL_OD_MAX_ANCHORS_PER_HEAD];
1375  float32_tidl boxAngle[TIDL_OD_MAX_ANCHORS_PER_HEAD];
1376 
1377  float32_tidl * anchorInputs;
1378 
1380 
1386 typedef struct {
1388  int32_t axis;
1390  int32_t outDataQ;
1392 
1393 
1400 typedef struct {
1402  int32_t weights;
1404  int32_t bias;
1406  int32_t numChannels;
1408  int32_t biasQ;
1410  int32_t inDataQ;
1412  int32_t outDataQ;
1414  int32_t weightsQ;
1416  float32_tidl weightScale;
1418  float32_tidl biasScale;
1422 
1428 typedef struct {
1430  int32_t bias;
1432  int32_t numChannels;
1434  int32_t biasQ;
1436  int32_t inDataQ;
1438  int32_t outDataQ;
1440 
1446 typedef struct {
1448  int32_t weights;
1450  int32_t bias;
1454  int32_t numInNodes;
1456  int32_t numOutNodes;
1458  int32_t weightsQ;
1460  float32_tidl weightScale;
1462  float32_tidl biasScale;
1466  int32_t biasQ;
1468  int32_t inDataQ;
1470  int32_t outDataQ;
1472  int32_t interDataQ;
1474  int32_t biasB;
1476 
1482 typedef struct {
1484  int32_t bias;
1486  int32_t numChannels;
1488  int32_t eltWiseType;
1490  int32_t numInData;
1492  int32_t biasQ;
1494  int32_t inDataQ[TIDL_NUM_IN_BUFS];
1496  int32_t outDataQ;
1497  /*Asymmetric Parameters*/
1498  uint8_t mmaScale;
1499  uint8_t mmaShift;
1500  int32_t biasTerm;
1502 
1508 typedef struct {
1510  int32_t numChannels;
1512  int32_t inDataQ;
1514  int32_t outDataQ;
1516 
1522 typedef struct {
1524  int32_t numChannels;
1526  int32_t inDataQ;
1528  int32_t outDataQ;
1530  int32_t offsetW;
1532  int32_t offsetH;
1534 
1535 
1541 typedef struct {
1543  int32_t type;
1544  int32_t layout;
1545  int32_t inZeroPoint;
1546  int32_t outZeroPoint;
1548 
1554 typedef struct {
1556  int32_t axis;
1557  /*keep the dimension or squeeze the dimension*/
1558  int32_t keepDims;
1559  /*which operation to happen as per @ref eTIDL_inReduceOp*/
1560  int32_t ops;
1562 
1568 typedef struct {
1570  int32_t axis;
1572  int8_t dataTensorName[TIDL_STRING_SIZE];
1574  int8_t indicesTensorName[TIDL_STRING_SIZE];
1576  int8_t updateTensorName[TIDL_STRING_SIZE];
1578 
1584 typedef struct {
1585  /*Offset for data parameter*/
1586  int32_t offset;
1588  float32_tidl weightScale;
1590 
1596 /* CHECK_MISRA("-18.4") -> Disable rule 18.4 */
1597 typedef union {
1623 /*RESET_MISRA("18.4") -> Reset rule 18.4 */
1624 
1630 typedef struct {
1635  int32_t layerType;
1637  int32_t numInBufs;
1639  int32_t numOutBufs;
1641  int32_t inData[TIDL_NUM_IN_BUFS];
1647  int32_t coreID;
1650  int32_t layersGroupId;
1655 }sTIDL_Layer_t;
1656 
1671 #define TIDL_NET_STRUCTURE_BUF ((uint32_t) 0)
1672 #define TIDL_NET_PARAMS_BUF ((uint32_t) 1)
1673 #define TIDL_NET_COMPILER_BUF ((uint32_t) 2)
1674 #define TIDL_NET_TOTAL_BUF ((uint32_t) 3)
1675 /* @} */
1676 
1677 /* Based on last Updated Date */
1678 #define TIDL_NET_VERSION (0x20230208)
1679 
1684 typedef struct {
1686  int32_t netVersion;
1688  int32_t deviceName;
1690  int32_t numLayers;
1715  int32_t dataFlowInfo;
1721  int32_t reserved;
1723  int32_t modelGroupId;
1727  sTIDL_NetBuffer_t netBufInfo[TIDL_NET_TOTAL_BUF];
1728 
1732 
1737 typedef enum
1738 {
1743 
1748 typedef enum
1749 {
1755 
1760 typedef enum
1761 {
1766 
1771 typedef enum
1772 {
1776 
1782 typedef struct
1783 {
1785  int32_t numInputBuf;
1787  int32_t numOutputBuf;
1789  int32_t inDataFormat[TIDL_MAX_ALG_IN_BUFS];
1791  int32_t inResizeType[TIDL_MAX_ALG_IN_BUFS];
1793  int32_t resizeWidth[TIDL_MAX_ALG_IN_BUFS];
1795  int32_t resizeHeight[TIDL_MAX_ALG_IN_BUFS];
1797  int32_t inWidth[TIDL_MAX_ALG_IN_BUFS];
1799  int32_t inHeight[TIDL_MAX_ALG_IN_BUFS];
1801  int32_t inNumChannels[TIDL_MAX_ALG_IN_BUFS];
1803  int32_t inChannelPitch[TIDL_MAX_ALG_IN_BUFS];
1805  int32_t inNumBatches[TIDL_MAX_ALG_IN_BUFS];
1807  int32_t inPadL[TIDL_MAX_ALG_IN_BUFS];
1809  int32_t inPadT[TIDL_MAX_ALG_IN_BUFS];
1811  int32_t inPadR[TIDL_MAX_ALG_IN_BUFS];
1813  int32_t inPadB[TIDL_MAX_ALG_IN_BUFS];
1815  int32_t inPadCh[TIDL_MAX_ALG_IN_BUFS];
1817  int32_t rawDataInElementType[TIDL_MAX_ALG_IN_BUFS];
1819  int32_t inElementType[TIDL_MAX_ALG_IN_BUFS];
1821  int32_t inZeroPoint[TIDL_MAX_ALG_IN_BUFS];
1823  int32_t inLayout[TIDL_MAX_ALG_IN_BUFS];
1825  int32_t inDataId[TIDL_MAX_ALG_IN_BUFS];
1827  float32_tidl inTensorScale[TIDL_MAX_ALG_IN_BUFS];
1831  int32_t outWidth[TIDL_MAX_ALG_OUT_BUFS];
1833  int32_t outHeight[TIDL_MAX_ALG_OUT_BUFS];
1835  int32_t outNumChannels[TIDL_MAX_ALG_OUT_BUFS];
1837  int32_t outChannelPitch[TIDL_MAX_ALG_OUT_BUFS];
1839  int32_t outNumBatches[TIDL_MAX_ALG_OUT_BUFS];
1841  int32_t outPadL[TIDL_MAX_ALG_OUT_BUFS];
1843  int32_t outPadT[TIDL_MAX_ALG_OUT_BUFS];
1845  int32_t outPadR[TIDL_MAX_ALG_OUT_BUFS];
1847  int32_t outPadB[TIDL_MAX_ALG_OUT_BUFS];
1849  int32_t outPadCh[TIDL_MAX_ALG_OUT_BUFS];
1851  int32_t outElementType[TIDL_MAX_ALG_OUT_BUFS];
1853  int32_t outDataId[TIDL_MAX_ALG_OUT_BUFS];
1857  float32_tidl outTensorScale[TIDL_MAX_ALG_OUT_BUFS];
1859  int32_t outZeroPoint[TIDL_MAX_ALG_OUT_BUFS];
1861  int32_t outLayout[TIDL_MAX_ALG_OUT_BUFS];
1862 
1864 
1865 
1871 typedef enum
1872 {
1873  TIDL_Detect2DBox = 0, //Bit position in TIDL_ODLayerHeaderInfo.odObjectType for 2Dbox
1874  TIDL_Detect3DBox = 1, //Bit position in TIDL_ODLayerHeaderInfo.odObjectType for 3Dbox
1875  TIDL_DetectKeyPoints = 2, //Bit position in TIDL_ODLayerHeaderInfo.odObjectType for keypoints
1876  TIDL_DetectObjectPose = 3, //Bit position in TIDL_ODLayerHeaderInfo.odObjectType for objectPose
1878 
1879 static inline int32_t TIDL_SetObjDetectionFormat( int32_t* odObjectType,
1880  int32_t odObjectFormat){
1881  *odObjectType = *odObjectType | ( 1 << odObjectFormat) ;
1882  return *odObjectType;
1883  }
1884 static inline int32_t TIDL_GetObjDetectionFormatState(int32_t odObjectType,
1885  int32_t odObjectFormat){
1886  int32_t odObjectFormatState;
1887  odObjectFormatState = odObjectType & ( 1 << odObjectFormat) ;
1888  return odObjectFormatState;
1889  }
1890 
1930 typedef struct
1931 {
1933  float32_tidl numDetObjects;
1935  float32_tidl objInfoSize;
1937  float32_tidl odNumKeyPoints;
1939  float32_tidl objInfoOffset;
1942  int32_t odObjectType;
1943 
1945 
1946 typedef struct
1947 {
1949  float32_tidl x;
1951  float32_tidl y;
1953  float32_tidl kpt_confidence;
1954 
1956 
1957 #define TIDL_OD_MAX_KEY_POINTS (32)
1958 
1959 
1965 typedef struct
1966 {
1968  float32_tidl r11;
1970  float32_tidl r21;
1972  float32_tidl r31;
1974  float32_tidl r12;
1976  float32_tidl r22;
1978  float32_tidl r32;
1980  float32_tidl tx;
1982  float32_tidl ty;
1984  float32_tidl tz;
1985 
1987 
1993 typedef struct
1994 {
1996  float32_tidl ObjId;
1998  float32_tidl label;
2000  float32_tidl score;
2002  float32_tidl xmin;
2004  float32_tidl ymin;
2006  float32_tidl xmax;
2008  float32_tidl ymax;
2010 
2012 
2018 typedef struct
2019 {
2021  float32_tidl ObjId;
2023  float32_tidl label;
2025  float32_tidl score;
2027  float32_tidl x;
2029  float32_tidl y;
2031  float32_tidl z;
2033  float32_tidl w;
2035  float32_tidl l;
2037  float32_tidl h;
2039  float32_tidl yaw;
2041 
2042 #if USE_IVISION
2043 
2049 typedef struct
2050 {
2052  IVISION_Params visionParams;
2056  int32_t isInbufsPaded;
2061 
2065  int32_t traceLogLevel;
2069  int32_t reservedCtrl;
2071  int32_t flowCtrl;
2080  float32_tidl maxPreEmptDelay;
2087  void * udmaDrvObj;
2090 
2093  uint32_t targetPriority ;
2094 
2100  int32_t(*TIDLVprintf)(const char * format, va_list arg);
2102  void *tracePtr;
2104  int32_t(*TIDLWriteBinToFile)(const char * fileName, void * addr, int32_t size, void *tracePtr);
2106  int32_t(*TIDLReadBinFromFile)(const char * fileName, void * addr, int32_t size);
2123  int32_t (*TIDL_CustomLayerProcess)(void * tidlHandle,
2124  sTIDL_Layer_t *tidlLayer,
2125  void *inPtrs[],
2126  void *outPtrs[],
2127  void *params,
2128  void *dmaUtilsContext,
2129  const sTIDL_sysMemHandle_t sysMems[TIDL_SYSMEM_MAX],
2130  int32_t execMode);
2131 }
2133 
2140 typedef struct
2141 {
2143  IVISION_InArgs iVisionInArgs;
2145  int32_t numInBufs;
2147  float32_tidl scale[TIDL_NUM_IN_BUFS];
2150 } TIDL_InArgs;
2151 
2167 typedef struct {
2168  int32_t totalOps;
2169  int32_t actualOps;
2170  int32_t layerExecId;
2171  uint64_t profilePoint[TIDL_PROFILE_MAX];
2173 
2180 typedef struct
2181 {
2183  IVISION_OutArgs iVisionOutArgs;
2185  int32_t numOutBufs;
2187  float32_tidl scale[TIDL_NUM_OUT_BUFS];
2188  int32_t numLayers ;
2189  /* Private arguments - For debug and internal use */
2190  void *privArgs ;
2192 
2193 } TIDL_outArgs;
2194 
2201 static inline float32_tidl TIDL_getWorstcaseDelayForPreemption(sTIDL_Network_t * net)
2202 {
2203  return net->preEmptWorstCaseDelay;
2204 }
2205 
2206 static inline int TIDL_createParamsInit(TIDL_CreateParams * params)
2207 {
2208  params->net = NULL;
2209  params->udmaDrvObj = NULL;
2210  params->currLayersGroupId = 1;
2211  params->isInbufsPaded = 0;
2213  params->quantRangeExpansionFactor = 1.0;
2214  params->quantRangeUpdateFactor = -1.0;
2215  params->maxPreEmptDelay = FLT_MAX;
2216  params->visionParams.algParams.size = sizeof(TIDL_CreateParams);
2217  params->visionParams.cacheWriteBack = NULL;
2218  params->TIDLWriteBinToFile = NULL;
2219  params->TIDLReadBinFromFile = NULL;
2220  params->TIDLVprintf = NULL;
2221  params->pFxnLock = NULL;
2222  params->pFxnUnLock = NULL;
2223  params->traceLogLevel = 0;
2224  params->traceWriteLevel = 0;
2225  params->traceBaseName = NULL;
2226  params->tracePtr = NULL;
2227  params->reservedCtrl = 0;
2228 #if defined(x86_64) || defined(HOST_EMULATION)
2229  params->flowCtrl = 1;
2230 #else
2231  params->flowCtrl = 0;
2232 #endif
2233  params->targetPriority = 0;
2234  return IALG_EOK;
2235 }
2236 
2237 #endif
2238 
2239 #ifdef __cplusplus
2240 }
2241 #endif
2242 
2244 /* iTI_DL */
2245 
2246 #endif /*ITIDL_H_ */
2247 /*==========================================================================*/
2248 /* END of the FILE */
2249 /*==========================================================================*/
int32_t enableEltWise
Definition: itidl_ti.h:1146
This structure define the parameters Soft max layer in TIDL.
Definition: itidl_ti.h:1508
float32_tidl maxTensorValue
Definition: itidl_ti.h:706
int32_t weights
Definition: itidl_ti.h:1448
Definition: itidl_ti.h:1753
sTIDL_odOutputReformatLayerParams_t odOutputReformatLayerParams
Definition: itidl_ti.h:1616
float32_tidl xmin
Definition: itidl_ti.h:2002
int32_t biasQ
Definition: itidl_ti.h:1408
Definition: itidl_ti.h:866
sTIDL_SliceLayerParams_t sliceParams
Definition: itidl_ti.h:1611
int32_t padType
Definition: itidl_ti.h:785
float32_tidl quantRangeUpdateFactor
Definition: itidl_ti.h:2063
int32_t numSubHeads
Definition: itidl_ti.h:1289
int32_t strideW
Definition: itidl_ti.h:992
float32_tidl r22
Definition: itidl_ti.h:1976
sTIDL_ShuffleLayerParams_t shuffleLayerParams
Definition: itidl_ti.h:1610
This structure define the parameters ScatterElements layer in TIDL.
Definition: itidl_ti.h:1568
int32_t offset
Definition: itidl_ti.h:680
sTIDL_ConstDataParams_t constDataParams
Definition: itidl_ti.h:1621
Definition: itidl_ti.h:1326
float32_tidl clipMin
Definition: itidl_ti.h:913
IVISION_InArgs iVisionInArgs
Definition: itidl_ti.h:2143
int32_t strideOffsetMethod
Definition: itidl_ti.h:1654
int32_t upscaleFactor
Definition: itidl_ti.h:1155
Definition: itidl_ti.h:1178
float32_tidl ObjId
Definition: itidl_ti.h:2021
float32_tidl biasScale
Definition: itidl_ti.h:1418
int32_t traceWriteLevel
Definition: itidl_ti.h:2067
int32_t numGroups
Definition: itidl_ti.h:1098
float32_tidl y
Definition: itidl_ti.h:1951
int32_t inHeightOdNetwork
Definition: itidl_ti.h:802
Definition: itidl_ti.h:1751
int32_t perChannelPadConstTensorOffset
Definition: itidl_ti.h:788
sTIDL_DetectionLayerSubCodeParams_t subCodeParams
Definition: itidl_ti.h:1281
sTIDL_ReduceParams_t reduceParams
Definition: itidl_ti.h:1619
int32_t kernelType
Definition: itidl_ti.h:1150
int32_t numInData
Definition: itidl_ti.h:1490
int32_t padR
Definition: itidl_ti.h:781
int32_t actualOps
Definition: itidl_ti.h:2169
This structure contains meta data for TIDL output IMP*** this structure content may change b/w releas...
Definition: itidl_ti.h:2167
int32_t layersGroupId
Definition: itidl_ti.h:1650
float32_tidl kpt_confidence
Definition: itidl_ti.h:1953
eTIDL_inReduceOp
This enumerator defines the different indata formats.
Definition: itidl_ti.h:1771
float32_tidl clipMax
Definition: itidl_ti.h:915
This union define the layer specific parameters of all the supported layers in TIDL.
Definition: itidl_ti.h:1597
void * traceBaseName
Definition: itidl_ti.h:2082
int32_t padW
Definition: itidl_ti.h:1112
Definition: itidl_ti.h:1202
int32_t isInbufsPaded
Definition: itidl_ti.h:2056
int32_t roundBits
Definition: itidl_ti.h:724
int32_t numInNodes
Definition: itidl_ti.h:1454
float32_tidl percentileActRangeShrink
Definition: itidl_ti.h:945
int32_t resvd
Definition: itidl_ti.h:755
int32_t quantizationStyle
Definition: itidl_ti.h:1702
This structure define the parameters Dat Convert layer in TIDL.
Definition: itidl_ti.h:1541
int32_t(* TIDLReadBinFromFile)(const char *fileName, void *addr, int32_t size)
Definition: itidl_ti.h:2106
int32_t biasQ
Definition: itidl_ti.h:1434
int32_t poolingType
Definition: itidl_ti.h:986
int32_t kernelW
Definition: itidl_ti.h:988
#define TIDL_NUM_MAX_LAYERS
Definition: itidl_ti.h:106
Definition: itidl_ti.h:863
sTIDL_ScatterElementsParams_t scatterElementsParams
Definition: itidl_ti.h:1620
void * udmaDrvObj
Definition: itidl_ti.h:2087
This structure contains all the parameters which TI DL library at create time.
Definition: itidl_ti.h:2049
Definition: itidl_ti.h:1741
int32_t processingType
Definition: itidl_ti.h:1243
float32_tidl ymin
Definition: itidl_ti.h:2004
int32_t inDataQ
Definition: itidl_ti.h:1136
This structure defines the Input and output buffer descriptors required for a given Layer group...
Definition: itidl_ti.h:1782
This structure contains the 6D object pose information of BBox detected by OD layer.
Definition: itidl_ti.h:1965
int32_t inDataQ
Definition: itidl_ti.h:1410
sTIDL_BiasParams_t biasParams
Definition: itidl_ti.h:1608
This structure define the parameters of ROI Pooling layer in TIDL.
Definition: itidl_ti.h:878
static float32_tidl TIDL_getWorstcaseDelayForPreemption(sTIDL_Network_t *net)
Definition: itidl_ti.h:2201
Definition: itidl_ti.h:813
static int32_t TIDL_SetObjDetectionFormat(int32_t *odObjectType, int32_t odObjectFormat)
Definition: itidl_ti.h:1879
Definition: itidl_ti.h:1200
int32_t codeType
Definition: itidl_ti.h:1253
Definition: itidl_ti.h:1180
int32_t numKeyPoints
Definition: itidl_ti.h:1345
#define TIDL_SYSMEM_MAX
Definition: itidl_ti.h:592
int32_t blockSize
Definition: itidl_ti.h:765
sTIDL_ResizeLayerParams_t resizeParams
Definition: itidl_ti.h:1612
sTIDL_Network_t * net
Definition: itidl_ti.h:2089
Definition: itidl_ti.h:1179
int32_t numChannels
Definition: itidl_ti.h:970
sTIDL_RoiPoolingLayerParams_t roiPoolingParams
Definition: itidl_ti.h:1613
int32_t layerType
Definition: itidl_ti.h:800
sTIDL_ActParams_t actParams
Definition: itidl_ti.h:1633
eTIDL_DetectionOutputFormat
This enumerator defines the differnt types of OD format indicated by TIDL_ODLayerHeaderInfo::odObject...
Definition: itidl_ti.h:1871
int32_t offsetH
Definition: itidl_ti.h:1532
float32_tidl strideH
Definition: itidl_ti.h:1353
int32_t enableLayerPerfTraces
Definition: itidl_ti.h:2149
int32_t inWidthOdNetwork
Definition: itidl_ti.h:801
float32_tidl yaw
Definition: itidl_ti.h:2039
int32_t kernelW
Definition: itidl_ti.h:1100
int32_t numLayers
Definition: itidl_ti.h:1690
int32_t dataId
Definition: itidl_ti.h:692
int32_t zeroWeightValue
Definition: itidl_ti.h:1420
This structure defines the system memory handles in TIDL There are total four handles: 0: L1...
Definition: itidl_ti.h:676
Definition: itidl_ti.h:814
int32_t netVersion
Definition: itidl_ti.h:1686
int32_t outDataQ
Definition: itidl_ti.h:1528
Definition: itidl_ti.h:862
sTIDL_CalibParams_t calibrationParams
Definition: itidl_ti.h:1713
float32_tidl biasCalibrationFactor
Definition: itidl_ti.h:955
float32_tidl score
Definition: itidl_ti.h:2025
void * base
Definition: itidl_ti.h:678
int32_t rsvdPassThrough
Definition: itidl_ti.h:1065
int32_t biasB
Definition: itidl_ti.h:1474
static int TIDL_createParamsInit(TIDL_CreateParams *params)
Definition: itidl_ti.h:2206
Definition: itidl_ti.h:1173
This structure define the parameters of Pad layer in TIDL.
Definition: itidl_ti.h:773
int32_t numInBufs
Definition: itidl_ti.h:2145
int32_t imHeight
Definition: itidl_ti.h:884
int32_t enablePooling
Definition: itidl_ti.h:1144
Definition: itidl_ti.h:1174
int32_t coreID
Definition: itidl_ti.h:1647
sTIDL_SoftMaxParams_t softMaxParams
Definition: itidl_ti.h:1604
float32_tidl pX
Definition: itidl_ti.h:1217
#define TIDL_MAX_ALG_IN_BUFS
Definition: itidl_ti.h:111
eTIDL_inResizeType
This enumerator defines the different indata formats.
Definition: itidl_ti.h:1760
int32_t axis
Definition: itidl_ti.h:897
int32_t imWidth
Definition: itidl_ti.h:882
int32_t outZeroPoint
Definition: itidl_ti.h:1546
int32_t enableEWRelU
Definition: itidl_ti.h:1148
sTIDL_CameraIntrinsicsParams_t cameraParams
Definition: itidl_ti.h:1231
sTIDL_CropParams_t cropParams
Definition: itidl_ti.h:1605
This structure define the parameters spatial Pooling layer in TIDL.
Definition: itidl_ti.h:982
Definition: itidl_ti.h:1230
int32_t outDataQ
Definition: itidl_ti.h:1002
void * tracePtr
Definition: itidl_ti.h:2102
int32_t stride
Definition: itidl_ti.h:899
int32_t padT
Definition: itidl_ti.h:775
int32_t dilationW
Definition: itidl_ti.h:1108
int32_t flowCtrl
Definition: itidl_ti.h:2071
int32_t elementType
Definition: itidl_ti.h:694
int32_t outDataQ
Definition: itidl_ti.h:1514
int32_t minValue
Definition: itidl_ti.h:700
int32_t keepDims
Definition: itidl_ti.h:1558
#define TIDL_DIM_MAX
Definition: itidl_ti.h:454
int32_t dilationH
Definition: itidl_ti.h:1110
Definition: itidl_ti.h:893
float float32_tidl
Definition: itidl_ti.h:119
int32_t biasQ
Definition: itidl_ti.h:1492
float32_tidl weightScale
Definition: itidl_ti.h:1460
Definition: itidl_ti.h:1764
int32_t numInChannels
Definition: itidl_ti.h:1094
int32_t padH
Definition: itidl_ti.h:714
float32_tidl biasScale
Definition: itidl_ti.h:1462
This structure define the parameters Arg max layer in TIDL.
Definition: itidl_ti.h:968
int32_t poolingType
Definition: itidl_ti.h:880
sTIDL_PoolingParams_t poolParams
Definition: itidl_ti.h:1157
int32_t biasScales
Definition: itidl_ti.h:1085
float32_tidl offsetH
Definition: itidl_ti.h:1359
Definition: itidl_ti.h:847
int32_t numChannels
Definition: itidl_ti.h:1524
int32_t padT
Definition: itidl_ti.h:1120
This structure define the parameters of Bias layer in TIDL.
Definition: itidl_ti.h:1428
int32_t outDataQ
Definition: itidl_ti.h:1138
This structure contains the each object&#39;s information detected by Objection detection layer...
Definition: itidl_ti.h:1993
float32_tidl x
Definition: itidl_ti.h:1949
Definition: itidl_ti.h:1762
int32_t doesLayerFillOutXPadding
Definition: itidl_ti.h:1063
float32_tidl z
Definition: itidl_ti.h:2031
int32_t zeroWeightValue
Definition: itidl_ti.h:1130
int32_t slope
Definition: itidl_ti.h:909
sTIDL_sysMemHandle_t sTIDL_NetBuffer_t
Definition: itidl_ti.h:683
float32_tidl nmsThreshold
Definition: itidl_ti.h:1259
sTIDL_ConvParams_t convParams
Definition: itidl_ti.h:1598
int32_t padB
Definition: itidl_ti.h:1122
int32_t outDataQ
Definition: itidl_ti.h:1438
This structure define the parameters of Detection Output Layer in TIDL.
Definition: itidl_ti.h:1241
float32_tidl objInfoSize
Definition: itidl_ti.h:1935
Definition: itidl_ti.h:1739
float32_tidl quantRangeExpansionFactor
Definition: itidl_ti.h:2060
eTIDL_PadLayerPadType
This enumerator defines the different types of padding supported by TIDL library. ...
Definition: itidl_ti.h:845
This structure define the parameters of ReLU activation layer in TIDL.
Definition: itidl_ti.h:925
int32_t tensorZeroPoint
Definition: itidl_ti.h:710
int32_t offset
Definition: itidl_ti.h:654
This structure define the parameters of Data layer in TIDL.
Definition: itidl_ti.h:738
int32_t outDataQ
Definition: itidl_ti.h:974
#define TIDL_OD_MAX_KEY_POINTS
Definition: itidl_ti.h:1957
int32_t numOutNodes
Definition: itidl_ti.h:1456
int32_t numOutBufs
Definition: itidl_ti.h:1639
int32_t varianceEncoded
Definition: itidl_ti.h:1273
int32_t outDataQ
Definition: itidl_ti.h:1470
float32_tidl biasScale
Definition: itidl_ti.h:1126
int32_t padB
Definition: itidl_ti.h:777
int32_t outDataQ
Definition: itidl_ti.h:1496
int32_t biasZeroPoints
Definition: itidl_ti.h:1087
int32_t kernelH
Definition: itidl_ti.h:1102
float32_tidl fY
Definition: itidl_ti.h:1215
int32_t activationType
Definition: itidl_ti.h:1452
Definition: itidl_ti.h:1191
float32_tidl ObjId
Definition: itidl_ti.h:1996
int32_t weightsQ
Definition: itidl_ti.h:1414
float32_tidl offsetL
Definition: itidl_ti.h:1361
int32_t bias
Definition: itidl_ti.h:1484
#define TIDL_NUM_OUT_BUFS
Definition: itidl_ti.h:108
Definition: itidl_ti.h:1875
This structure define common parameters ReduceMax/ReduceMin layer in TIDL.
Definition: itidl_ti.h:1554
int32_t(* TIDL_Lock_t)(void)
Call back function pointer to lock interrupts.
Definition: itidl_ti.h:128
eTIDL_SubCodeType
This enumerator defines the differnt types of subCodeParams indicated by sTIDL_DetectOutputParams_t::...
Definition: itidl_ti.h:1324
TIDL_Lock_t pFxnLock
Definition: itidl_ti.h:2096
int32_t padW
Definition: itidl_ti.h:712
int32_t interDataQ
Definition: itidl_ti.h:1140
int32_t odObjectType
Definition: itidl_ti.h:1942
float32_tidl weightScale
Definition: itidl_ti.h:1416
int32_t quantizationStyle
Definition: itidl_ti.h:1163
float32_tidl score
Definition: itidl_ti.h:2000
int32_t outDataQ
Definition: itidl_ti.h:1412
float32_tidl weightScale
Definition: itidl_ti.h:1124
float32_tidl percentileWtRangeShrink
Definition: itidl_ti.h:952
int32_t numOutputBuf
Definition: itidl_ti.h:1787
uint8_t mmaScale
Definition: itidl_ti.h:1498
float32_tidl tensorScale
Definition: itidl_ti.h:708
This structure define the parameters Convolution Layer in TIDL.
Definition: itidl_ti.h:1075
int32_t offsetW
Definition: itidl_ti.h:1530
Definition: itidl_ti.h:1172
int32_t numBatchW
Definition: itidl_ti.h:720
int32_t maxPointsPerVoxel
Definition: itidl_ti.h:1304
int32_t offset
Definition: itidl_ti.h:1586
void * ptr
Definition: itidl_ti.h:652
Definition: itidl_ti.h:859
int32_t inDataQ
Definition: itidl_ti.h:972
float32_tidl l
Definition: itidl_ti.h:2035
float32_tidl offsetDir
Definition: itidl_ti.h:1363
This structure define the parameters of Batch Norm layer in TIDL.
Definition: itidl_ti.h:1400
This structure define the parameters of the OD output reformatting layer in TIDL. ...
Definition: itidl_ti.h:798
int32_t keepTopK
Definition: itidl_ti.h:1267
This structure define the parameters of Shuffle layer in TIDL.
Definition: itidl_ti.h:751
Definition: itidl_ti.h:1190
#define TIDL_NET_TOTAL_BUF
Definition: itidl_ti.h:1674
int32_t actType
Definition: itidl_ti.h:917
sTIDL_PadLayerParams_t padLayerParams
Definition: itidl_ti.h:1615
eTIDL_odOutputReformatType
This enumerator defines the different types of output types for the OD output reformatting layer...
Definition: itidl_ti.h:857
int32_t enableBias
Definition: itidl_ti.h:1142
#define TIDL_PROFILE_MAX
Definition: itidl_ti.h:635
int32_t dataElementSize
Definition: itidl_ti.h:1698
int32_t biasQ
Definition: itidl_ti.h:1466
This structure define the common layer parameters in TIDL.
Definition: itidl_ti.h:1630
int32_t scoreConverter
Definition: itidl_ti.h:1307
uint8_t mmaShift
Definition: itidl_ti.h:1499
int32_t inDataQ
Definition: itidl_ti.h:1468
void * privArgs
Definition: itidl_ti.h:2190
eTIDL_metaArchType
This enumerator defines the different Meta Arch types.
Definition: itidl_ti.h:1170
int32_t padH
Definition: itidl_ti.h:1019
Definition: itidl_ti.h:868
int32_t subCodeType
Definition: itidl_ti.h:1279
eTIDL_RoiPoolingType
This enumerator defines the different types of ROI pooling supported by TIDL library.
Definition: itidl_ti.h:834
int32_t convolutionType
Definition: itidl_ti.h:1092
int32_t batchPadW
Definition: itidl_ti.h:716
This structure define the parameters of data or kernel buffer used by TIDL layers (In...
Definition: itidl_ti.h:690
sTIDL_LayerParams_t layerParams
Definition: itidl_ti.h:1631
int32_t weights
Definition: itidl_ti.h:1402
int32_t biasB
Definition: itidl_ti.h:1132
float32_tidl objInfoOffset
Definition: itidl_ti.h:1939
Definition: itidl_ti.h:812
int32_t traceLogLevel
Definition: itidl_ti.h:2065
int32_t axis
Definition: itidl_ti.h:1556
This structure define the parameters of ReLU activation layer in TIDL.
Definition: itidl_ti.h:907
This structure define the parameters CNN/Deep learning net in TIDL.
Definition: itidl_ti.h:1684
int32_t biasCalibrationIterations
Definition: itidl_ti.h:959
int32_t strideH
Definition: itidl_ti.h:1106
int32_t strideH
Definition: itidl_ti.h:994
int32_t headWidth
Definition: itidl_ti.h:1347
float32_tidl preEmptWorstCaseDelay
Definition: itidl_ti.h:1719
sTIDL_EltWiseParams_t eltWiseParams
Definition: itidl_ti.h:1599
float32_tidl numDetObjects
Definition: itidl_ti.h:1933
#define TIDL_MAX_ALG_OUT_BUFS
Definition: itidl_ti.h:112
int32_t eltWiseType
Definition: itidl_ti.h:1488
sTIDL_ConcatParams_t concatParams
Definition: itidl_ti.h:1606
int32_t totalOps
Definition: itidl_ti.h:2168
int32_t inZeroPoint
Definition: itidl_ti.h:1545
int32_t bias
Definition: itidl_ti.h:1450
int32_t numAnchors
Definition: itidl_ti.h:1343
int32_t numKeypoints
Definition: itidl_ti.h:1275
int32_t priorBox
Definition: itidl_ti.h:1245
float32_tidl h
Definition: itidl_ti.h:2037
int32_t doesLayerChangePadding
Definition: itidl_ti.h:1037
float32_tidl eta
Definition: itidl_ti.h:1261
int32_t useCeil
Definition: itidl_ti.h:1004
int32_t padConstValue
Definition: itidl_ti.h:783
int32_t topK
Definition: itidl_ti.h:1263
int32_t numChannels
Definition: itidl_ti.h:1510
int32_t padH
Definition: itidl_ti.h:998
float32_tidl y
Definition: itidl_ti.h:2029
int32_t padH
Definition: itidl_ti.h:1114
int32_t numLayers
Definition: itidl_ti.h:2188
int32_t modelGroupId
Definition: itidl_ti.h:1723
int32_t optimiseExtMem
Definition: itidl_ti.h:2058
Definition: itidl_ti.h:1774
uint32_t targetPriority
Definition: itidl_ti.h:2093
int32_t inDataQ
Definition: itidl_ti.h:1526
const IVISION_Fxns TIDL_VISION_FXNS
The unique const function table for the TI deep learning algorithm.
double float64_tidl
Definition: itidl_ti.h:121
int32_t interElementSize
Definition: itidl_ti.h:1700
float32_tidl tx
Definition: itidl_ti.h:1980
This structure contains the header information of Objection detection layer.
Definition: itidl_ti.h:1930
float32_tidl label
Definition: itidl_ti.h:1998
int32_t size
Definition: itidl_ti.h:679
int32_t forceInPlace
Definition: itidl_ti.h:1031
Definition: itidl_ti.h:865
float32_tidl r21
Definition: itidl_ti.h:1970
int32_t slopeElementSize
Definition: itidl_ti.h:1694
sTIDL_BatchNormParams_t batchNormParams
Definition: itidl_ti.h:1609
int32_t dataFlowInfo
Definition: itidl_ti.h:1715
Definition: itidl_ti.h:1874
Definition: itidl_ti.h:870
Definition: itidl_ti.h:836
Definition: itidl_ti.h:1210
eTIDL_inYuvFormat
This enumerator defines the different YUV formats.
Definition: itidl_ti.h:1748
sTIDL_dataConvertParams_t dataConvertParams
Definition: itidl_ti.h:1617
IVISION_Params visionParams
Definition: itidl_ti.h:2052
int32_t layerExecId
Definition: itidl_ti.h:2170
Definition: itidl_ti.h:860
int32_t keypointConfidence
Definition: itidl_ti.h:1277
This structure define the parameters of Element wise layer in TIDL.
Definition: itidl_ti.h:1482
int32_t numChannels
Definition: itidl_ti.h:740
float32_tidl r32
Definition: itidl_ti.h:1978
Definition: itidl_ti.h:848
sTIDL_InnerProductParams_t innerProductParams
Definition: itidl_ti.h:1601
This structure defines the parameters for custom layer in TIDL.
Definition: itidl_ti.h:1011
int32_t biasElementSize
Definition: itidl_ti.h:1696
This structure define the parameters of AnchorBox used by Detection Output Layer in TIDL...
Definition: itidl_ti.h:1340
int32_t maxPSAT
Definition: itidl_ti.h:1161
sTIDL_PoolingParams_t poolParams
Definition: itidl_ti.h:1600
int32_t padL
Definition: itidl_ti.h:1116
Definition: itidl_ti.h:1189
#define TIDL_OptimiseExtMemL1
In this case, output buffer will re-use memory from previous layers when they have same width and hei...
Definition: itidl_ti.h:362
int32_t perChannelPadConstTensorSize
Definition: itidl_ti.h:790
sTIDL_ArgMaxParams_t argMaxParams
Definition: itidl_ti.h:1603
int32_t numOutChannels
Definition: itidl_ti.h:1096
Definition: itidl_ti.h:837
int32_t biasTerm
Definition: itidl_ti.h:1500
int32_t numGroups
Definition: itidl_ti.h:753
int32_t shareLocation
Definition: itidl_ti.h:1270
int32_t backgroundLabelId
Definition: itidl_ti.h:1251
This structure define the parameters of Inner Product (Fully connected) layer in TIDL.
Definition: itidl_ti.h:1446
Definition: itidl_ti.h:1773
eTIDL_inDataFormat
This enumerator defines the different indata formats.
Definition: itidl_ti.h:1737
int32_t weightRangeMethod
Definition: itidl_ti.h:937
int32_t inDataQ
Definition: itidl_ti.h:1000
int32_t outDataQ
Definition: itidl_ti.h:1390
int32_t imHeight
Definition: itidl_ti.h:1295
sTIDL_DataParams_t * inDataPtr
Definition: itidl_ti.h:1645
float32_tidl label
Definition: itidl_ti.h:2023
int32_t priorBoxSize
Definition: itidl_ti.h:1247
TIDL_Unlock_t pFxnUnLock
Definition: itidl_ti.h:2098
Definition: itidl_ti.h:864
int32_t weightScales
Definition: itidl_ti.h:1081
IVISION_OutArgs iVisionOutArgs
Definition: itidl_ti.h:2183
int32_t calibrationOption
Definition: itidl_ti.h:1709
int32_t inDataQ
Definition: itidl_ti.h:1512
int32_t numBatchH
Definition: itidl_ti.h:722
int32_t dataQ
Definition: itidl_ti.h:698
int32_t reserved
Definition: itidl_ti.h:1721
int32_t strideW
Definition: itidl_ti.h:1104
int32_t type
Definition: itidl_ti.h:1543
#define TIDL_STRING_SIZE
Definition: itidl_ti.h:109
int32_t numInputBuf
Definition: itidl_ti.h:1785
sTIDL_DataParams_t outData
Definition: itidl_ti.h:1643
float32_tidl pY
Definition: itidl_ti.h:1219
int32_t weightsElementSizeInBits
Definition: itidl_ti.h:1652
sTIDL_DepthToSpaceParams_t depthToSpaceParams
Definition: itidl_ti.h:1614
float32_tidl xmax
Definition: itidl_ti.h:2006
int32_t rsvdPassThroughSize
Definition: itidl_ti.h:1067
This structure contains the key points information of BBox detected by OD layer.
Definition: itidl_ti.h:1946
int32_t topKAllClasses
Definition: itidl_ti.h:1265
float32_tidl ty
Definition: itidl_ti.h:1982
Definition: itidl_ti.h:1763
float32_tidl x
Definition: itidl_ti.h:2027
int32_t numChannels
Definition: itidl_ti.h:1406
sTIDL_DataLayerParams_t dataLayerParams
Definition: itidl_ti.h:1602
int32_t numClasses
Definition: itidl_ti.h:1249
float32_tidl weightScale
Definition: itidl_ti.h:1588
float32_tidl slopeScale
Definition: itidl_ti.h:911
int32_t currLayersGroupId
Definition: itidl_ti.h:2054
Definition: itidl_ti.h:867
This structure define the parameters of data or kernel buffer memory in TIDL.
Definition: itidl_ti.h:650
int32_t(* TIDLWriteBinToFile)(const char *fileName, void *addr, int32_t size, void *tracePtr)
Definition: itidl_ti.h:2104
float32_tidl r12
Definition: itidl_ti.h:1974
int32_t padR
Definition: itidl_ti.h:1118
float32_tidl confThreshold
Definition: itidl_ti.h:1256
Definition: itidl_ti.h:1201
int32_t deviceName
Definition: itidl_ti.h:1688
int32_t inDataQ
Definition: itidl_ti.h:1436
int32_t numChannels
Definition: itidl_ti.h:1486
float32_tidl r31
Definition: itidl_ti.h:1972
int32_t weightsQ
Definition: itidl_ti.h:1458
int32_t bias
Definition: itidl_ti.h:1079
int32_t biasQ
Definition: itidl_ti.h:1134
This structure contains all the parameters which controls the applet at create time.
Definition: itidl_ti.h:2140
int32_t activationRangeMethod
Definition: itidl_ti.h:930
int32_t bias
Definition: itidl_ti.h:1404
float32_tidl maxPreEmptDelay
Definition: itidl_ti.h:2080
int32_t zeroWeightValue
Definition: itidl_ti.h:1464
This structure contains the each object&#39;s information detected by 3D Objection detection layer...
Definition: itidl_ti.h:2018
int32_t enableDepthToSpace
Definition: itidl_ti.h:1152
This structure contains all the parameters which controls the applet at create time.
Definition: itidl_ti.h:2180
int32_t interDataQ
Definition: itidl_ti.h:1472
void(* TIDL_Unlock_t)(int32_t)
Call back function pointer to unlock interrupts.
Definition: itidl_ti.h:136
int32_t padW
Definition: itidl_ti.h:996
float32_tidl strideL
Definition: itidl_ti.h:1355
Definition: itidl_ti.h:1177
Definition: itidl_ti.h:1176
int32_t axis
Definition: itidl_ti.h:1570
int32_t(* TIDLVprintf)(const char *format, va_list arg)
Definition: itidl_ti.h:2100
int32_t weightsQ
Definition: itidl_ti.h:1128
This structure define the parameters of PriorBox layer in TIDL.
Definition: itidl_ti.h:1386
Definition: itidl_ti.h:849
int32_t layout
Definition: itidl_ti.h:1544
int32_t dataLayout
Definition: itidl_ti.h:1314
int32_t weights
Definition: itidl_ti.h:1077
eTIDL_processingType
This enumerator defines the different Meta Arch types.
Definition: itidl_ti.h:1187
int32_t batchPadH
Definition: itidl_ti.h:718
int32_t numInBufs
Definition: itidl_ti.h:1637
Definition: itidl_ti.h:1873
float32_tidl r11
Definition: itidl_ti.h:1968
int32_t ops
Definition: itidl_ti.h:1560
int32_t dataQ
Definition: itidl_ti.h:742
int32_t imWidth
Definition: itidl_ti.h:1292
int32_t kernelH
Definition: itidl_ti.h:990
int32_t bias
Definition: itidl_ti.h:1430
int32_t weightZeroPoints
Definition: itidl_ti.h:1083
#define TIDL_OD_MAX_ANCHORS_PER_HEAD
Definition: itidl_ti.h:1332
int32_t isQuantStatsAvailable
Definition: itidl_ti.h:1717
int32_t numOutBufs
Definition: itidl_ti.h:2185
int32_t metaArchType
Definition: itidl_ti.h:1310
float32_tidl offsetW
Definition: itidl_ti.h:1357
int32_t numChannels
Definition: itidl_ti.h:1432
float32_tidl * anchorInputs
Definition: itidl_ti.h:1377
float32_tidl odNumKeyPoints
Definition: itidl_ti.h:1937
This structure define the parameters Crop layer in TIDL.
Definition: itidl_ti.h:1522
Definition: itidl_ti.h:1750
#define TIDL_NUM_IN_BUFS
Definition: itidl_ti.h:107
sTIDL_CustomParams_t customParams
Definition: itidl_ti.h:1618
int32_t reservedCtrl
Definition: itidl_ti.h:2069
int32_t weightsElementSize
Definition: itidl_ti.h:1692
int32_t bufSize
Definition: itidl_ti.h:653
static int32_t TIDL_GetObjDetectionFormatState(int32_t odObjectType, int32_t odObjectFormat)
Definition: itidl_ti.h:1884
Definition: itidl_ti.h:1175
float32_tidl tz
Definition: itidl_ti.h:1984
int32_t padW
Definition: itidl_ti.h:1016
int32_t perChannelWeightScaleOffset
Definition: itidl_ti.h:1090
int32_t numChannels
Definition: itidl_ti.h:984
This structure define the parameters of Depth To Space layer in TIDL.
Definition: itidl_ti.h:763
This structure define the parameters of Resize layer in TIDL.
Definition: itidl_ti.h:822
int32_t memOverlapType
Definition: itidl_ti.h:1025
Definition: itidl_ti.h:861
Definition: itidl_ti.h:1327
#define TIDL_OD_MAX_KEYPOINTS
Definition: itidl_ti.h:1331
Definition: itidl_ti.h:1876
float32_tidl fX
Definition: itidl_ti.h:1213
int32_t headHeight
Definition: itidl_ti.h:1349
int32_t layerType
Definition: itidl_ti.h:1635
int32_t axis
Definition: itidl_ti.h:1388
This structure define the parameters ConstData layer in TIDL.
Definition: itidl_ti.h:1584
eTIDL_scoreConverterType
This enumerator defines the different Meta Arch types.
Definition: itidl_ti.h:1198
int32_t minPSAT
Definition: itidl_ti.h:1159
float32_tidl minTensorValue
Definition: itidl_ti.h:704
int32_t padL
Definition: itidl_ti.h:779
float32_tidl w
Definition: itidl_ti.h:2033
int32_t maxValue
Definition: itidl_ti.h:702
int32_t mode
Definition: itidl_ti.h:824
int32_t numDim
Definition: itidl_ti.h:696
Definition: itidl_ti.h:1740
Definition: itidl_ti.h:1752
float32_tidl strideW
Definition: itidl_ti.h:1351
sTIDL_DetectOutputParams_t detectOutParams
Definition: itidl_ti.h:1607
float32_tidl ymax
Definition: itidl_ti.h:2008
int32_t customLayerType
Definition: itidl_ti.h:1013
int32_t numHeads
Definition: itidl_ti.h:1284
eTIDL_ResizeType
This enumerator defines the different types of element type used by TIDL library. ...
Definition: itidl_ti.h:810