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 #define TIDL_MAX_PRIORITY_LEVEL ((int32_t) 8)
115 #define TIDL_MAX_OBJECTS_PER_LEVEL ((int32_t) 16)
116 
117 #if defined (SOC_J784S4)
118 #define TIDL_MAX_NUM_CORES (4)
119 #else
120 #define TIDL_MAX_NUM_CORES (1)
121 #endif
122 
123 /* Typedef for 32 bit float */
124 typedef float float32_tidl;
125 /* Typedef for 64 bit float */
126 typedef double float64_tidl;
127 
133 typedef int32_t (*TIDL_Lock_t) (void) ;
141 typedef void (*TIDL_Unlock_t) (int32_t);
142 
151 #define TIDL_DataLayer ((int32_t) 0)
152 #define TIDL_ConvolutionLayer ((int32_t) 1)
153 #define TIDL_PoolingLayer ((int32_t) 2)
154 #define TIDL_ReLULayer ((int32_t) 3)
155 #define TIDL_PReLULayer ((int32_t) 4)
156 #define TIDL_EltWiseLayer ((int32_t) 5)
157 #define TIDL_InnerProductLayer ((int32_t) 6)
158 #define TIDL_SoftMaxLayer ((int32_t) 7)
159 #define TIDL_BatchNormLayer ((int32_t) 8)
160 #define TIDL_BiasLayer ((int32_t) 9)
161 #define TIDL_ScaleLayer ((int32_t) 10)
162 #define TIDL_Deconv2DLayer ((int32_t) 11)
163 #define TIDL_ConcatLayer ((int32_t) 12)
164 #define TIDL_SplitLayer ((int32_t) 13)
165 #define TIDL_SliceLayer ((int32_t) 14)
166 #define TIDL_CropLayer ((int32_t) 15)
167 #define TIDL_FlattenLayer ((int32_t) 16)
168 #define TIDL_DropOutLayer ((int32_t) 17)
169 #define TIDL_ArgMaxLayer ((int32_t) 18)
170 #define TIDL_DetectionOutputLayer ((int32_t) 19)
171 #define TIDL_ShuffleChannelLayer ((int32_t) 20)
172 #define TIDL_ResizeLayer ((int32_t) 21)
173 #define TIDL_RoiPoolingLayer ((int32_t) 22)
174 #define TIDL_OdPostProcessingLayer ((int32_t) 23)
175 #define TIDL_DepthToSpaceLayer ((int32_t) 24)
176 #define TIDL_SigmoidLayer ((int32_t) 25)
177 #define TIDL_PadLayer ((int32_t) 26)
178 #define TIDL_ColorConversionLayer ((int32_t) 27)
179 #define TIDL_OdOutputReformatLayer ((int32_t) 28)
180 #define TIDL_DataConvertLayer ((int32_t) 29)
181 #define TIDL_CustomLayer ((int32_t) 30)
182 #define TIDL_BatchReshapeLayer ((int32_t) 31)
183 #define TIDL_ReduceLayer ((int32_t) 32)
184 #define TIDL_ScatterElementsLayer ((int32_t) 33)
185 #define TIDL_SqueezeLayer ((int32_t) 34)
186 #define TIDL_TanhLayer ((int32_t) 35)
187 #define TIDL_HardSigmoidLayer ((int32_t) 36)
188 #define TIDL_ELULayer ((int32_t) 37)
189 #define TIDL_ReshapeLayer ((int32_t) 38)
190 #define TIDL_ConstDataLayer ((int32_t) 39)
191 #define TIDL_GatherLayer ((int32_t) 40)
192 #define TIDL_TransposeLayer ((int32_t) 41)
193 #define TIDL_LayerNormLayer ((int32_t) 42)
194 #define TIDL_UnsupportedLayer ((int32_t) 43)
195 /* @} */
196 
205 #define TIDL_HighPrecisionKernel ((int32_t) 0)
206 #define TIDL_HighThroughputKernel ((int32_t) 1)
207 /* @} */
208 
217 #define TIDL_UnsignedChar ((int32_t) 0)
218 #define TIDL_SignedChar ((int32_t) 1)
219 #define TIDL_UnsignedShort ((int32_t) 2)
220 #define TIDL_SignedShort ((int32_t) 3)
221 #define TIDL_UnsignedWord ((int32_t) 4)
222 #define TIDL_SignedWord ((int32_t) 5)
223 #define TIDL_SinglePrecFloat ((int32_t) 6)
224 #define TIDL_UnsignedDoubleWord ((int32_t) 7)
225 #define TIDL_SignedDoubleWord ((int32_t) 8)
226 /* @} */
227 
238 #define TIDL_LT_NCHW ((uint32_t) 0)
239 #define TIDL_LT_NHWC ((uint32_t) 1)
240 #define TIDL_LT_MAX (TIDLRT_LT_NHWC+1)
241 /* @} */
242 
243 
252 #define TIDL_DC_TYPE_INPUT ((uint32_t) 0)
253 #define TIDL_DC_TYPE_OUTPUT ((uint32_t) 1)
254 #define TIDL_DC_TYPE_INTERMEDIATE ((uint32_t) 2)
255 #define TIDL_DC_TYPE_MAX (TIDL_DC_TYPE_INTERMEDIATE+1)
256 /* @} */
257 
258 
269 #define TIDL_QuantStyleFixed ((int32_t) 0)
270 
272 #define TIDL_QuantStyleDynamic ((int32_t) 1)
273 
275 #define TIDL_QuantStyleNP2Fixed ((int32_t) 2)
276 
278 #define TIDL_QuantStyleP2Dynamic ((int32_t) 3)
279 
281 #define TIDL_QuantStyleNonP2
282 
284 #define TIDL_QuantStyleAsymNP2_TFL ((int32_t) 5)
285 
288 #define TIDL_QuantStyleAsymNP2 ((int32_t) 6)
289 
291 #define TIDL_QuantStyleCustom ((int32_t) 10)
292 /* @} */
293 
306 #define TIDL_CalibOptionActivationRange ((int32_t) 1)
307 
311 #define TIDL_CalibOptionWeightRange ((int32_t) 2)
312 
313 #define TIDL_CalibOptionBiasCalibration ((int32_t) 4)
314 
317 #define TIDL_CalibOptionPerChannelWeightQuantization ((int32_t) 8)
318 
323 #define TIDL_CalibOptionMixedPrecisionDepthwise ((int32_t) 16)
324 
326 #define TIDL_CalibOptionMixedPrecisionInput ((int32_t) 32)
327 
329 #define TIDL_CalibOptionBiasRange ((int32_t) 64)
330 
331 /* @} */
332 
344 #define TIDL_ActivationRangeMethodHistogram ((int32_t) 0)
345 
350 #define TIDL_ActivationRangeMethodGlobalHistogram ((int32_t) 1)
351 
352 
353 /* @} */
354 
365 #define TIDL_WeightRangeMethodHistogram ((int32_t) 0)
366 
368 #define TIDL_WeightRangeMethodMedian ((int32_t) 1)
369 /* @} */
370 
371 
383 #define TIDL_OptimiseExtMemL0 ((int32_t) 0)
384 
387 #define TIDL_OptimiseExtMemL1 ((int32_t) 1)
388 
391 #define TIDL_OptimiseExtMemL2 ((int32_t) 2)
392 /* @} */
393 
403 #define TIDL_Sparse ((int32_t) 0)
404 
405 #define TIDL_Dense ((int32_t) 1)
406 /* @} */
407 
417 #define TIDL_StrideOffsetTopLeft ((int32_t) 0)
418 #define TIDL_StrideOffsetCenter ((int32_t) 1)
419 #define TIDL_StrideOffsetMax ((int32_t) 2)
420 /* @} */
421 
430 #define TIDL_MaxPooling ((int32_t) 0)
431 #define TIDL_AveragePooling ((int32_t) 1)
432 /* @} */
433 
434 
443 #define TIDL_NoAct ((int32_t) 0)
444 #define TIDL_RelU ((int32_t) 1)
445 #define TIDL_PRelU ((int32_t) 2)
446 #define TIDL_RelU6 ((int32_t) 3)
447 #define TIDL_Clip ((int32_t) 4)
448 #define TIDL_Sigmoid ((int32_t) 5)
449 #define TIDL_Tanh ((int32_t) 6)
450 #define TIDL_HardSigmoid ((int32_t) 7)
451 #define TIDL_ELU ((int32_t) 8)
452 #define TIDL_GELU ((int32_t) 9)
453 /* @} */
454 
463 #define TIDL_EltWiseProduct ((int32_t) 0)
464 #define TIDL_EltWiseSum ((int32_t) 1)
465 #define TIDL_EltWiseMax ((int32_t) 2)
466 /* @} */
467 
476 #define TIDL_DIM_BATCH ((int32_t) 0)
477 #define TIDL_DIM_DIM1 ((int32_t) 1)
478 #define TIDL_DIM_DIM2 ((int32_t) 2)
479 #define TIDL_DIM_NUMCH ((int32_t) 3)
480 #define TIDL_DIM_HEIGHT ((int32_t) 4)
481 #define TIDL_DIM_WIDTH ((int32_t) 5)
482 #define TIDL_DIM_MAX ((int32_t) 6)
483 /* @} */
484 
485 
494 #define TIDL_SYMMETRIC_TENSOR (0U)
495 #define TIDL_ASYMMETRIC_TENSOR (1U)
496 /* @} */
497 
506 #define TIDL_ROI_PITCH ((uint32_t) 0)
507 #define TIDL_DIM1_PITCH ((uint32_t) 1)
508 #define TIDL_DIM2_PITCH ((uint32_t) 2)
509 #define TIDL_CHANNEL_PITCH ((uint32_t) 3)
510 #define TIDL_LINE_PITCH ((uint32_t) 4)
511 #define TIDL_PITCH_MAX ((uint32_t) (TIDL_DIM_MAX - 1))
512 /* @} */
513 
523 /* Convolution layer error types */
524 #define TIDL_E_CONVOLUTION ((int32_t) -1000)
525 #define TIDL_E_CONV_INVALID_INPUT_WIDTH ((int32_t) (TIDL_E_CONVOLUTION - 0))
526 #define TIDL_E_CONV_INVALID_INPUT_HEIGHT ((int32_t) (TIDL_E_CONVOLUTION - 1))
527 #define TIDL_E_CONV_INVALID_OUTPUT_WIDTH ((int32_t) (TIDL_E_CONVOLUTION - 2))
528 #define TIDL_E_CONV_INVALID_OUTPUT_HEIGHT ((int32_t) (TIDL_E_CONVOLUTION - 3))
529 #define TIDL_E_CONV_INVALID_NUM_IN_CHANNELS ((int32_t) (TIDL_E_CONVOLUTION - 4))
530 #define TIDL_E_CONV_INVALID_NUM_OUT_CHANNELS ((int32_t) (TIDL_E_CONVOLUTION - 5))
531 #define TIDL_E_CONV_INVALID_KER_WIDTH ((int32_t) (TIDL_E_CONVOLUTION - 6))
532 #define TIDL_E_CONV_INVALID_KER_HEIGHT ((int32_t) (TIDL_E_CONVOLUTION - 7))
533 #define TIDL_E_CONV_INVALID_KER_TYPE ((int32_t) (TIDL_E_CONVOLUTION - 8))
534 #define TIDL_E_CONV_INVALID_STRIDE_WIDTH ((int32_t) (TIDL_E_CONVOLUTION - 9))
535 #define TIDL_E_CONV_INVALID_STRIDE_HEIGHT ((int32_t) (TIDL_E_CONVOLUTION - 10))
536 #define TIDL_E_CONV_NEGATIVE_OUTPUT_SHIFT ((int32_t) (TIDL_E_CONVOLUTION - 11))
537 /* Convolution pooling error types */
538 #define TIDL_E_CONV_POOL_INVALID_POOL_TYPE ((int32_t) (TIDL_E_CONVOLUTION - 12))
539 #define TIDL_E_CONV_POOL_INVALID_KER_WIDTH ((int32_t) (TIDL_E_CONVOLUTION - 13))
540 #define TIDL_E_CONV_POOL_INVALID_KER_HEIGHT ((int32_t) (TIDL_E_CONVOLUTION - 14))
541 #define TIDL_E_CONV_POOL_INVALID_STRIDE_WIDTH ((int32_t) (TIDL_E_CONVOLUTION - 15))
542 #define TIDL_E_CONV_POOL_INVALID_STRIDE_HEIGHT ((int32_t) (TIDL_E_CONVOLUTION - 16))
543 /* EltWise layer error types */
544 #define TIDL_E_ELTWISE ((int32_t) -1020)
545 #define TIDL_E_ELTWISE_INVALID_INPUT_WIDTH ((int32_t) (TIDL_E_ELTWISE - 0))
546 #define TIDL_E_ELTWISE_INVALID_INPUT_HEIGHT ((int32_t) (TIDL_E_ELTWISE - 1))
547 #define TIDL_E_ELTWISE_INVALID_OUTPUT_WIDTH ((int32_t) (TIDL_E_ELTWISE - 2))
548 #define TIDL_E_ELTWISE_INVALID_OUTPUT_HEIGHT ((int32_t) (TIDL_E_ELTWISE - 3))
549 #define TIDL_E_ELTWISE_INVALID_ELTWISE_TYPE ((int32_t) (TIDL_E_ELTWISE - 4))
550 #define TIDL_E_ELTWISE_INVALID_NUM_CHANNELS ((int32_t) (TIDL_E_ELTWISE - 5))
551 /* Pooling error types */
552 #define TIDL_E_POOLING ((int32_t) -1030)
553 #define TIDL_E_POOL_INVALID_INPUT_WIDTH ((int32_t) (TIDL_E_POOLING - 0))
554 #define TIDL_E_POOL_INVALID_INPUT_HEIGHT ((int32_t) (TIDL_E_POOLING - 1))
555 #define TIDL_E_POOL_INVALID_OUTPUT_WIDTH ((int32_t) (TIDL_E_POOLING - 2))
556 #define TIDL_E_POOL_INVALID_OUTPUT_HEIGHT ((int32_t) (TIDL_E_POOLING - 3))
557 #define TIDL_E_POOL_INVALID_POOL_TYPE ((int32_t) (TIDL_E_POOLING - 4))
558 #define TIDL_E_POOL_INVALID_NUM_CHANNELS ((int32_t) (TIDL_E_POOLING - 5))
559 #define TIDL_E_POOL_INVALID_KER_WIDTH ((int32_t) (TIDL_E_POOLING - 6))
560 #define TIDL_E_POOL_INVALID_KER_HEIGHT ((int32_t) (TIDL_E_POOLING - 7))
561 #define TIDL_E_POOL_INVALID_STRIDE_WIDTH ((int32_t) (TIDL_E_POOLING - 8))
562 #define TIDL_E_POOL_INVALID_STRIDE_HEIGHT ((int32_t) (TIDL_E_POOLING - 9))
563 /* Inner product error types */
564 #define TIDL_E_INNER_PRODUCT ((int32_t) -1040)
565 #define TIDL_E_IP_INVALID_NUM_IN_NODES ((int32_t) (TIDL_E_INNER_PRODUCT - 0))
566 #define TIDL_E_IP_INVALID_NUM_OUT_NODES ((int32_t) (TIDL_E_INNER_PRODUCT - 1))
567 #define TIDL_E_IP_NEGATIVE_OUTPUT_SHIFT ((int32_t) (TIDL_E_INNER_PRODUCT - 2))
568 /* Argmax error types */
569 #define TIDL_E_ARGMAX ((int32_t) -1050)
570 #define TIDL_E_ARGMAX_INVALID_NUM_CHANNELS ((int32_t) (TIDL_E_ARGMAX - 0))
571 /* Bias error types */
572 #define TIDL_E_BN ((int32_t) -1060)
573 #define TIDL_E_BN_INVALID_INPUT_WIDTH ((int32_t) (TIDL_E_BN - 0))
574 #define TIDL_E_BN_INVALID_INPUT_HEIGHT ((int32_t) (TIDL_E_BN - 1))
575 #define TIDL_E_BN_INVALID_OUTPUT_WIDTH ((int32_t) (TIDL_E_BN - 2))
576 #define TIDL_E_BN_INVALID_OUTPUT_HEIGHT ((int32_t) (TIDL_E_BN - 3))
577 #define TIDL_E_BN_INVALID_NUM_CHANNELS ((int32_t) (TIDL_E_BN - 4))
578 #define TIDL_E_BN_INVALID_ENABLE_RELU ((int32_t) (TIDL_E_BN - 5))
579 #define TIDL_E_BN_NEGATIVE_OUTPUT_SHIFT ((int32_t) (TIDL_E_BN - 6))
580 /* Crop layer error types */
581 #define TIDL_E_CROP ((int32_t) -1070)
582 #define TIDL_E_CROP_INVALID_INPUT_WIDTH ((int32_t) (TIDL_E_CROP - 0))
583 #define TIDL_E_CROP_INVALID_INPUT_HEIGHT ((int32_t) (TIDL_E_CROP - 1))
584 #define TIDL_E_CROP_INVALID_OUTPUT_WIDTH ((int32_t) (TIDL_E_CROP - 2))
585 #define TIDL_E_CROP_INVALID_OUTPUT_HEIGHT ((int32_t) (TIDL_E_CROP - 3))
586 #define TIDL_E_CROP_INVALID_NUM_CHANNELS ((int32_t) (TIDL_E_CROP - 4))
587 #define TIDL_E_CROP_INVALID_OFFSET_WIDTH ((int32_t) (TIDL_E_CROP - 5))
588 #define TIDL_E_CROP_INVALID_OFFSET_HEIGHT ((int32_t) (TIDL_E_CROP - 6))
589 /* Flatten layer error types */
590 #define TIDL_E_FLATTEN ((int32_t) -1080)
591 #define TIDL_E_FLATTEN_INVALID_INPUT_WIDTH ((int32_t) (TIDL_E_FLATTEN - 0))
592 #define TIDL_E_FLATTEN_INVALID_INPUT_HEIGHT ((int32_t) (TIDL_E_FLATTEN - 1))
593 #define TIDL_E_FLATTEN_INVALID_OUTPUT_WIDTH ((int32_t) (TIDL_E_FLATTEN - 2))
594 #define TIDL_E_FLATTEN_INVALID_OUTPUT_HEIGHT ((int32_t) (TIDL_E_FLATTEN - 3))
595 /* SoftMax error types */
596 #define TIDL_E_SOFTMAX ((int32_t) -1090)
597 #define TIDL_E_SOFTMAX_INVALID_NUM_CHANNELS ((int32_t) (TIDL_E_SOFTMAX - 0))
598 /* ShuffleChanel error types */
599 #define TIDL_E_SHUFFLECHANNEL ((int32_t) -1100)
600 #define TIDL_E_SHUFFLECHANNEL_INVALID_INPUT_WIDTH ((int32_t) (TIDL_E_SHUFFLECHANNEL - 0))
601 #define TIDL_E_SHUFFLECHANNEL_INVALID_INPUT_HEIGHT ((int32_t) (TIDL_E_SHUFFLECHANNEL - 1))
602 #define TIDL_E_SHUFFLECHANNEL_INVALID_OUTPUT_WIDTH ((int32_t) (TIDL_E_SHUFFLECHANNEL - 2))
603 #define TIDL_E_SHUFFLECHANNEL_INVALID_OUTPUT_HEIGHT ((int32_t) (TIDL_E_SHUFFLECHANNEL - 3))
604 #define TIDL_E_SHUFFLECHANNEL_INVALID_NUM_GROUPS ((int32_t) (TIDL_E_SHUFFLECHANNEL - 4))
605 /*Multi Core Modes */
606 #define TIDL_NOT_MULTI_CORE ((int32_t) 0)
607 #define TIDL_MULTI_CORE ((int32_t) (TIDL_NOT_MULTI_CORE + 1))
608 #define TIDL_MULTI_CORE_CROP_JOIN ((int32_t) (TIDL_NOT_MULTI_CORE + 2))
609 #define TIDL_MULTI_CORE_CROP_SPLIT ((int32_t) (TIDL_NOT_MULTI_CORE + 3))
610 /* Layernorm error types */
611 #define TIDL_E_LAYERNORM ((int32_t) -1110)
612 #define TIDL_E_LAYERNORM_INSUFFICIENT_REF_SCRATCH ((int32_t) (TIDL_E_LAYERNORM - 0))
613 #define TIDL_E_LAYERNORM_UNSUPPORTED_AXIS ((int32_t) (TIDL_E_LAYERNORM - 1))
614 
615 /* Error types common to layers */
616 #define TIDL_E_COMMON ((int32_t) -1120)
617 #define TIDL_E_UNSUPPORTED_LAYER ((int32_t) (TIDL_E_COMMON - 0))
618 #define TIDL_E_DATAFLOW_INFO_NULL ((int32_t) (TIDL_E_COMMON - 1))
619 #define TIDL_E_INVALID_DEBUG_TRACE_PRM ((int32_t) (TIDL_E_COMMON - 2))
620 #define TIDL_E_INVALID_NET_VERSION ((int32_t) (TIDL_E_COMMON - 3))
621 #define TIDL_E_INVALID_IO_LINE_PITCH ((int32_t) (TIDL_E_COMMON - 4))
622 #define TIDL_E_QUANT_STATS_NOT_AVAILABALE ((int32_t) (TIDL_E_COMMON - 5))
623 #define TIDL_E_INVALID_DDR_INFO_FROM_GC ((int32_t) (TIDL_E_COMMON - 6))
624 #define TIDL_E_EXCEED_PREEMPTION_LEVEL ((int32_t) (TIDL_E_COMMON - 7))
625 #define TIDL_E_EXCEED_OBJECTS_PER_LEVEL ((int32_t) (TIDL_E_COMMON - 8))
626 
627 /*Device specific error codes*/
628 #define TIDL_E_DEV_ERROR ((int32_t) -1130)
629 #define TIDL_E_OTF_ERROR ((int32_t) (TIDL_E_DEV_ERROR - 0))
630 #define TIDL_E_ASYM_ERROR ((int32_t) (TIDL_E_DEV_ERROR - 1))
631 /* @} */
632 
641 #define TIDL_SYSMEM_L1_SCRATCH ((uint32_t) 0)
642 #define TIDL_SYSMEM_L2_SCRATCH ((uint32_t) 1)
643 #define TIDL_SYSMEM_L3_SCRATCH ((uint32_t) 2)
644 #define TIDL_SYSMEM_DDR_SCRATCH ((uint32_t) 3)
645 #define TIDL_SYSMEM_MAX ((uint32_t) 4)
646 /* @} */
647 
658 #define TIDL_EXEC_MODE_STATS_COLLECTION ((int32_t) 0)
659 
660 #define TIDL_EXEC_MODE_INFER_PROCESS ((int32_t) 2)
661 #define TIDL_EXEC_MODE_INFER_PROCESS_REF ((int32_t) 3)
662 
663 
672 #define TIDL_PROFILE_LAYER ((int32_t) 0)
673 #define TIDL_PROFILE_KERNEL_ONLY ((int32_t) 1)
674 #define TIDL_PROFILE_CORE_LOOP ((int32_t) 2)
675 #define TIDL_PROFILE_LAYER_SETUP ((int32_t) 3)
676 #define TIDL_PROFILE_PREFETCH ((int32_t) 4)
677 #define TIDL_PROFILE_DMA_PIPEUP ((int32_t) 5)
678 #define TIDL_PROFILE_LAYER_WITHOUT_PADDING ((int32_t) 6)
679 #define TIDL_PROFILE_LAYER_PADDING_TRIGGER ((int32_t) 7)
680 #define TIDL_PROFILE_LAYER_PADDING_WAIT ((int32_t) 8)
681 #define TIDL_PROFILE_KERNEL_COPY ((int32_t) 9)
682 #define TIDL_PROFILE_LAYER_SETUP_HANDLE_COPY ((int32_t) 10)
683 #define TIDL_PROFILE_LAYER_DEINIT ((int32_t) 11)
684 #define TIDL_PROFILE_LAST_BLOCK_CYCLES ((int32_t) 12)
685 #define TIDL_PROFILE_DMA_PIPEDOWN ((int32_t) 13)
686 #define TIDL_PROFILE_BACKUP ((int32_t) 14)
687 #define TIDL_PROFILE_RESTORE ((int32_t) 15)
688 #define TIDL_PROFILE_MAX ((int32_t) 16)
689 
690 /* @} */
691 
703 typedef struct
704 {
705  void* ptr;
706  int32_t bufSize;
707  int32_t offset;
708  int32_t reserved[1];
709 }sBuffer_t;
710 
729 typedef struct
730 {
731  void *base;
732  int32_t size;
733  int32_t offset;
735 
737 
743 typedef struct {
745  int32_t dataId;
747  int32_t elementType;
749  int32_t numDim;
751  int32_t dataQ;
753  int32_t minValue;
755  int32_t maxValue;
765  int32_t tensorType;
767  int32_t padW;
769  int32_t padH;
771  int32_t batchPadW;
773  int32_t batchPadH;
775  int32_t numBatchW;
777  int32_t numBatchH;
779  int32_t roundBits;
781  int32_t pitch[TIDL_DIM_MAX-1];
783  int32_t dimValues[TIDL_DIM_MAX];
785 
786 
787 
793 typedef struct {
795  int32_t numChannels;
797  int32_t dataQ;
799 
800 typedef struct {
802  int32_t axis;
806 
812 typedef struct {
814  int32_t axis;
816 
817 
823 typedef struct {
825  int32_t numGroups;
827  int32_t resvd;
829 
835 typedef struct {
837  int32_t blockSize;
839 
845 typedef struct {
847  int32_t padT;
849  int32_t padB;
851  int32_t padL;
853  int32_t padR;
855  int32_t padConstValue;
857  int32_t padType;
864 
870 typedef struct {
872  int32_t layerType;
876 
882 typedef enum
883 {
888 
894 typedef struct {
896  int32_t mode;
900 
906 typedef enum
907 {
911 
917 typedef enum
918 {
923 
929 typedef enum
930 {
944 
950 typedef struct {
952  int32_t poolingType;
954  int32_t imWidth;
956  int32_t imHeight;
958 
959 
965 typedef struct {
967  int32_t slicePoints[TIDL_NUM_OUT_BUFS+1];
969  int32_t axis;
971  int32_t stride;
973 
979 typedef struct {
981  int32_t slope;
986  //** maximum value for clip */
989  int32_t actType;
991 
997 typedef struct {
1033 
1034 
1040 typedef struct {
1042  int32_t numChannels;
1044  int32_t inDataQ;
1046  int32_t outDataQ;
1048 
1054 typedef struct {
1056  int32_t numChannels;
1058  int32_t poolingType;
1060  int32_t kernelW;
1062  int32_t kernelH;
1064  int32_t strideW;
1066  int32_t strideH;
1068  int32_t padW;
1070  int32_t padH;
1072  int32_t padT;
1074  int32_t padB;
1076  int32_t padL;
1078  int32_t padR;
1080  int32_t inDataQ;
1082  int32_t outDataQ;
1084  int32_t useCeil;
1086 
1091 typedef struct {
1096  int32_t padW;
1099  int32_t padH;
1111  int32_t forceInPlace ;
1149 
1155 typedef struct {
1157  int32_t weights;
1159  int32_t bias;
1161  int32_t weightScales;
1165  int32_t biasScales;
1169  int32_t derivedBias;
1171  int32_t derivedScales;
1173  int32_t derivedShifts;
1180  int32_t numInChannels;
1184  int32_t numGroups;
1186  int32_t kernelW;
1188  int32_t kernelH;
1190  int32_t strideW;
1192  int32_t strideH;
1194  int32_t dilationW;
1196  int32_t dilationH;
1198  int32_t padW;
1200  int32_t padH;
1202  int32_t padL;
1204  int32_t padR;
1206  int32_t padT;
1208  int32_t padB;
1214  int32_t weightsQ;
1218  int32_t biasB;
1220  int32_t biasQ;
1222  int32_t inDataQ;
1224  int32_t outDataQ;
1226  int32_t interDataQ;
1228  int32_t enableBias;
1230  int32_t enablePooling;
1232  int32_t enableEltWise;
1234  int32_t enableEWRelU;
1236  int32_t kernelType;
1241  int32_t upscaleFactor;
1245  int32_t minPSAT;
1247  int32_t maxPSAT;
1251 
1256 typedef enum
1257 {
1268 
1273 typedef enum
1274 {
1279 
1284 typedef enum
1285 {
1290 
1296 typedef struct
1297 {
1306 
1308 
1314 /* CHECK_MISRA("-18.4") -> Disable rule 18.4 */
1315 
1316 typedef union {
1319 
1320 
1327 typedef struct {
1331  int32_t priorBox;
1333  int32_t priorBoxSize;
1335  int32_t numClasses;
1339  int32_t codeType;
1349  int32_t topK;
1353  int32_t keepTopK;
1356  int32_t shareLocation;
1361  int32_t numKeypoints;
1365  int32_t subCodeType;
1368 
1370  int32_t numHeads;
1371 
1375  int32_t numSubHeads;
1376 
1378  int32_t imWidth;
1379 
1381  int32_t imHeight;
1382 
1384  float32_tidl point3dRange[3][2];
1385 
1387  float32_tidl voxelSize[3];
1388 
1391 
1392  /*0 -> IDENTITY, 1 -> SIGMOID, 2 -> SOFTMAX*/
1394 
1396  int32_t metaArchType;
1397 
1398  /* 0 -> All the Data from given Anchor Box are together,
1399  1 -> Data from all Anchor Box are interleaved */
1400  int32_t dataLayout;
1401 
1402 }sTIDL_DetectOutputParams_t; //Layer Params
1403 
1404 
1410 typedef enum
1411 {
1412  TIDL_Invalid = 0, //sTIDL_DetectOutputParams_t.subCodeParams are not populated and used.
1413  TIDL_ObjectPose = 1, //sTIDL_DetectOutputParams_t.subCodeParams are used for objectPose processing.
1415 
1416 
1417 #define TIDL_OD_MAX_KEYPOINTS (16)
1418 #define TIDL_OD_MAX_ANCHORS_PER_HEAD (16)
1419 
1426 typedef struct {
1427 
1429  int32_t numAnchors;
1431  int32_t numKeyPoints;
1433  int32_t headWidth;
1435  int32_t headHeight;
1451  float32_tidl boxScales[4];
1462 
1464 
1466 
1472 typedef struct {
1474  int32_t axis;
1476  int32_t outDataQ;
1478 
1479 
1486 typedef struct {
1488  int32_t weights;
1490  int32_t bias;
1492  int32_t numChannels;
1494  int32_t biasQ;
1496  int32_t inDataQ;
1498  int32_t outDataQ;
1500  int32_t weightsQ;
1508 
1514 typedef struct {
1516  int32_t bias;
1518  int32_t numChannels;
1520  int32_t biasQ;
1522  int32_t inDataQ;
1524  int32_t outDataQ;
1526 
1532 typedef struct {
1534  int32_t weights;
1536  int32_t bias;
1538  int32_t weightScales;
1542  int32_t biasScales;
1548  int32_t numBatches;
1550  int32_t numInRows;
1552  int32_t numInCols;
1554  int32_t numOutCols;
1556  int32_t weightsQ;
1564  int32_t biasQ;
1566  int32_t inDataQ;
1568  int32_t outDataQ;
1570  int32_t interDataQ;
1572  int32_t biasB;
1574  int32_t isBias;
1580 
1586 typedef struct {
1588  int32_t bias;
1590  int32_t numChannels;
1592  int32_t eltWiseType;
1594  int32_t numInData;
1596  int32_t biasQ;
1598  int32_t inDataQ[TIDL_NUM_IN_BUFS];
1600  int32_t outDataQ;
1601  /*Asymmetric Parameters*/
1602  uint8_t mmaScale;
1603  uint8_t mmaShift;
1604  int32_t biasTerm;
1605  /*Is one tensor broadcasted*/
1606  int32_t isBroadcast;
1608 
1614 typedef struct {
1616  int32_t numChannels;
1618  int32_t inDataQ;
1620  int32_t outDataQ;
1622  int32_t axis;
1624  int32_t outTranspose;
1626 
1632 typedef struct {
1634  int32_t numChannels;
1636  int32_t inDataQ;
1638  int32_t outDataQ;
1640  int32_t offsetW;
1642  int32_t offsetH;
1643  /*crop for multic7x or normal crop*/
1644  int32_t multiCoreMode;
1646 
1647 
1653 typedef struct {
1655  int32_t type;
1656  int32_t layout;
1657  int32_t outLayout;
1658  int32_t inZeroPoint;
1659  int32_t outZeroPoint;
1661 
1667 typedef struct {
1669  int32_t axis;
1670  /*keep the dimension or squeeze the dimension*/
1671  int32_t keepDims;
1672  /*which operation to happen as per @ref eTIDL_inReduceOp*/
1673  int32_t ops;
1675 
1676 typedef enum
1677 {
1683 
1689 typedef struct {
1691  int32_t axis;
1693  int8_t dataTensorName[TIDL_STRING_SIZE];
1695  int8_t indicesTensorName[TIDL_STRING_SIZE];
1697  int8_t updateTensorName[TIDL_STRING_SIZE];
1698  /* ADD/MAX are presently supported. ADD output would be clipped to 8bit */
1699  int32_t reduction;
1701 
1707 typedef struct {
1708  /*Offset for data parameter*/
1709  int32_t offset;
1713  int32_t isBroadcast;
1715 
1721 typedef struct {
1725  int32_t perm[TIDL_DIM_MAX];
1727 
1733 /* CHECK_MISRA("-18.4") -> Disable rule 18.4 */
1734 typedef union {
1763 /*RESET_MISRA("18.4") -> Reset rule 18.4 */
1764 
1770 typedef struct {
1775  int32_t layerType;
1779  int32_t numInBufs;
1781  int32_t numOutBufs;
1783  int32_t inData[TIDL_NUM_IN_BUFS];
1789  int32_t coreID;
1792  int32_t layersGroupId;
1797  /* Indicates whether layer is split across multiple cores */
1798  int32_t multiCoreMode;
1799 }sTIDL_Layer_t;
1800 
1816 #define TIDL_NET_STRUCTURE_BUF ((uint32_t) 0)
1817 #define TIDL_NET_PARAMS_BUF ((uint32_t) 1)
1818 #define TIDL_NET_COMPILER_BUF ((uint32_t) 2)
1819 #define TIDL_NET_GC_BUF ((uint32_t) 3)
1820 #define TIDL_NET_TOTAL_BUF ((uint32_t) 4)
1821 /* @} */
1822 
1823 /* Based on last Updated Date */
1824 #define TIDL_NET_VERSION (0x20231122)
1825 
1830 typedef struct {
1832  int32_t netVersion;
1834  int32_t deviceName;
1836  int32_t numLayers;
1861  int32_t dataFlowInfo;
1869  int32_t reserved;
1871  int32_t modelGroupId;
1873  int32_t inferenceMode;
1875  int32_t numCores;
1880 
1884 
1889 typedef enum
1890 {
1895 
1900 typedef enum
1901 {
1902  TIDL_inferenceModeDefault = 0, /* Inference using single c7x/MMA core */
1903  TIDL_inferenceModeHighThroughput = 1, /* Batch processing mode - Multiple frames parallely infer on multiple cores */
1904  TIDL_inferenceModeLowLatency = 2 /* Single batch inference using network split on multiple cores */
1906 
1911 typedef enum
1912 {
1918 
1923 typedef enum
1924 {
1929 
1934 typedef enum
1935 {
1940 
1946 typedef struct
1947 {
1949  int32_t numInputBuf;
1951  int32_t numOutputBuf;
1953  int32_t numCores;
1959  int32_t inferenceMode;
1961  int32_t inDataFormat[TIDL_MAX_NUM_CORES * TIDL_MAX_ALG_IN_BUFS];
1963  int32_t inResizeType[TIDL_MAX_NUM_CORES * TIDL_MAX_ALG_IN_BUFS];
1967  int32_t resizeHeight[TIDL_MAX_NUM_CORES * TIDL_MAX_ALG_IN_BUFS];
1973  int32_t inNumChannels[TIDL_MAX_NUM_CORES * TIDL_MAX_ALG_IN_BUFS];
1974 
1976 
1979  int32_t inChannelPitch[TIDL_MAX_NUM_CORES * TIDL_MAX_ALG_IN_BUFS];
1981  int32_t inNumBatches[TIDL_MAX_NUM_CORES * TIDL_MAX_ALG_IN_BUFS];
1993  int32_t rawDataInElementType[TIDL_MAX_NUM_CORES * TIDL_MAX_ALG_IN_BUFS];
1995  int32_t inElementType[TIDL_MAX_NUM_CORES * TIDL_MAX_ALG_IN_BUFS];
2015  int32_t outNumChannels[TIDL_MAX_NUM_CORES * TIDL_MAX_ALG_OUT_BUFS];
2017  int32_t outChannelPitch[TIDL_MAX_NUM_CORES * TIDL_MAX_ALG_OUT_BUFS];
2019  int32_t outNumBatches[TIDL_MAX_NUM_CORES * TIDL_MAX_ALG_OUT_BUFS];
2031  int32_t outElementType[TIDL_MAX_NUM_CORES * TIDL_MAX_ALG_OUT_BUFS];
2043  int32_t numValidTensorDims[TIDL_MAX_NUM_CORES * TIDL_MAX_ALG_OUT_BUFS];
2044 
2046 
2047 
2053 typedef enum
2054 {
2055  TIDL_Detect2DBox = 0, //Bit position in TIDL_ODLayerHeaderInfo.odObjectType for 2Dbox
2056  TIDL_Detect3DBox = 1, //Bit position in TIDL_ODLayerHeaderInfo.odObjectType for 3Dbox
2057  TIDL_DetectKeyPoints = 2, //Bit position in TIDL_ODLayerHeaderInfo.odObjectType for keypoints
2058  TIDL_DetectObjectPose = 3, //Bit position in TIDL_ODLayerHeaderInfo.odObjectType for objectPose
2060 
2061 static inline int32_t TIDL_SetObjDetectionFormat( int32_t* odObjectType,
2062  int32_t odObjectFormat){
2063  *odObjectType = *odObjectType | ( 1 << odObjectFormat) ;
2064  return *odObjectType;
2065  }
2066 static inline int32_t TIDL_GetObjDetectionFormatState(int32_t odObjectType,
2067  int32_t odObjectFormat){
2068  int32_t odObjectFormatState;
2069  odObjectFormatState = odObjectType & ( 1 << odObjectFormat) ;
2070  return odObjectFormatState;
2071  }
2072 
2112 typedef struct
2113 {
2124  int32_t odObjectType;
2125 
2127 
2128 typedef struct
2129 {
2136 
2138 
2139 #define TIDL_OD_MAX_KEY_POINTS (32)
2140 
2141 
2147 typedef struct
2148 {
2167 
2169 
2175 typedef struct
2176 {
2192 
2194 
2200 typedef struct
2201 {
2223 
2224 typedef enum
2225 {
2226  TIDL_L1 = 0,
2227  TIDL_L2 = 1,
2232 } eTIDL_MemSpaces;
2233 
2234 typedef enum
2235 {
2239 } eTIDL_MemTypes;
2240 
2241 #if USE_IVISION
2242 typedef struct
2243 {
2244  void * ncScratchPtr[MAX_MEMORY_TYPES][MAX_MEMSPACE_TYPES];
2245  void * syncBufferPtr[MAX_MEMORY_TYPES];
2247 
2253 typedef struct
2254 {
2257 
2265 typedef struct
2266 {
2269 
2270 
2276 typedef struct
2277 {
2279  IVISION_Params visionParams;
2283  int32_t isInbufsPaded;
2288 
2292  int32_t traceLogLevel;
2296  int32_t reservedCtrl;
2298  int32_t flowCtrl;
2309  char traceBaseName[TIDL_STRING_SIZE];
2314  void * udmaDrvObj;
2317 
2319  uint32_t coreId;
2321  int32_t coreStartIdx;
2324  uint32_t targetPriority ;
2325 
2331  int32_t(*TIDLVprintf)(const char * format, va_list arg);
2333  void *tracePtr;
2335  int32_t(*TIDLWriteBinToFile)(const char * fileName, void * addr, int32_t size, int32_t count);
2337  int32_t(*TIDLReadBinFromFile)(const char * fileName, void * addr, int32_t size, int32_t count);
2354  int32_t (*TIDL_CustomLayerProcess)(void * tidlHandle,
2355  sTIDL_Layer_t *tidlLayer,
2356  void *inPtrs[],
2357  void *outPtrs[],
2358  void *params,
2359  void *dmaUtilsContext,
2360  const sTIDL_sysMemHandle_t sysMems[TIDL_SYSMEM_MAX],
2361  int32_t execMode);
2362 }
2364 
2371 typedef struct
2372 {
2374  IVISION_InArgs iVisionInArgs;
2376  int32_t numInBufs;
2381 } TIDL_InArgs;
2382 
2398 typedef struct {
2399  int32_t totalOps;
2400  int32_t actualOps;
2401  int32_t layerExecId;
2402  uint64_t profilePoint[TIDL_PROFILE_MAX];
2404 
2411 typedef struct
2412 {
2414  IVISION_OutArgs iVisionOutArgs;
2416  int32_t numOutBufs;
2419  int32_t numLayers ;
2420  /* Private arguments - For debug and internal use */
2421  void *privArgs ;
2423 } TIDL_outArgs;
2424 
2432 #define TIVX_TIDL_CMD_GET_C7X_PTRS (0x10000001u)
2433 #define TIVX_TIDL_CMD_SET_C7X_PTRS (0x10000002u)
2434 #define TIVX_TIDL_CMD_INIT (0x10000003u)
2435 
2443 {
2444  return net->preEmptWorstCaseDelay;
2445 }
2446 
2447 static inline int TIDL_createParamsInit(TIDL_CreateParams * params)
2448 {
2449  params->net = NULL;
2450  params->udmaDrvObj = NULL;
2451  params->currLayersGroupId = 1;
2452  params->isInbufsPaded = 0;
2454  params->quantRangeExpansionFactor = 1.0;
2455  params->quantRangeUpdateFactor = -1.0;
2456  params->maxPreEmptDelay = FLT_MAX;
2457  params->visionParams.algParams.size = sizeof(TIDL_CreateParams);
2458  params->visionParams.cacheWriteBack = NULL;
2459  params->TIDLWriteBinToFile = NULL;
2460  params->TIDLReadBinFromFile = NULL;
2461  params->TIDLVprintf = NULL;
2462  params->pFxnLock = NULL;
2463  params->pFxnUnLock = NULL;
2464  params->traceLogLevel = 0;
2465  params->traceWriteLevel = 0;
2466  params->traceBaseName[0] = '\0';
2467  params->tracePtr = NULL;
2468  params->reservedCtrl = 0;
2469  params->coreId = 0;
2470 #if defined(x86_64) || defined(HOST_EMULATION)
2471  params->flowCtrl = 1;
2472 #else
2473  params->flowCtrl = 0;
2474 #endif
2475  params->targetPriority = 0;
2476  params->coreStartIdx = 0;
2477  return IALG_EOK;
2478 }
2479 
2480 #endif
2481 
2482 #ifdef __cplusplus
2483 }
2484 #endif
2485 
2487 /* iTI_DL */
2488 
2489 #endif /*ITIDL_H_ */
2490 /*==========================================================================*/
2491 /* END of the FILE */
2492 /*==========================================================================*/
int32_t enableEltWise
Definition: itidl_ti.h:1232
Definition: itidl_ti.h:1680
int32_t multiCoreMode
Definition: itidl_ti.h:1644
This structure define the parameters Soft max layer in TIDL.
Definition: itidl_ti.h:1614
This structure define the parameters of Gather layer in TIDL.
Definition: itidl_ti.h:812
float32_tidl maxTensorValue
Definition: itidl_ti.h:759
int32_t weights
Definition: itidl_ti.h:1534
Definition: itidl_ti.h:1916
sTIDL_odOutputReformatLayerParams_t odOutputReformatLayerParams
Definition: itidl_ti.h:1753
float32_tidl xmin
Definition: itidl_ti.h:2184
Definition: itidl_ti.h:1902
int32_t biasQ
Definition: itidl_ti.h:1494
Definition: itidl_ti.h:938
sTIDL_SliceLayerParams_t sliceParams
Definition: itidl_ti.h:1748
int32_t padType
Definition: itidl_ti.h:857
float32_tidl quantRangeUpdateFactor
Definition: itidl_ti.h:2290
int32_t numSubHeads
Definition: itidl_ti.h:1375
int32_t strideW
Definition: itidl_ti.h:1064
int32_t numVirtualCores
Definition: itidl_ti.h:1955
float32_tidl r22
Definition: itidl_ti.h:2158
sTIDL_ShuffleLayerParams_t shuffleLayerParams
Definition: itidl_ti.h:1747
This structure define the parameters ScatterElements layer in TIDL.
Definition: itidl_ti.h:1689
int32_t offset
Definition: itidl_ti.h:733
sTIDL_ConstDataParams_t constDataParams
Definition: itidl_ti.h:1758
Definition: itidl_ti.h:1412
float32_tidl clipMin
Definition: itidl_ti.h:985
IVISION_InArgs iVisionInArgs
Definition: itidl_ti.h:2374
int32_t strideOffsetMethod
Definition: itidl_ti.h:1796
int32_t upscaleFactor
Definition: itidl_ti.h:1241
Definition: itidl_ti.h:1264
float32_tidl ObjId
Definition: itidl_ti.h:2203
float32_tidl biasScale
Definition: itidl_ti.h:1504
int32_t traceWriteLevel
Definition: itidl_ti.h:2294
int32_t numGroups
Definition: itidl_ti.h:1184
float32_tidl y
Definition: itidl_ti.h:2133
int32_t inHeightOdNetwork
Definition: itidl_ti.h:874
int32_t numInCols
Definition: itidl_ti.h:1552
Definition: itidl_ti.h:1914
int32_t perChannelPadConstTensorOffset
Definition: itidl_ti.h:860
sTIDL_DetectionLayerSubCodeParams_t subCodeParams
Definition: itidl_ti.h:1367
int32_t padB
Definition: itidl_ti.h:1074
int32_t isBroadcast
Definition: itidl_ti.h:1606
sTIDL_ReduceParams_t reduceParams
Definition: itidl_ti.h:1756
Definition: itidl_ti.h:1938
int32_t kernelType
Definition: itidl_ti.h:1236
int32_t numInData
Definition: itidl_ti.h:1594
int32_t padR
Definition: itidl_ti.h:853
int32_t multiCoreMode
Definition: itidl_ti.h:1798
int32_t reduction
Definition: itidl_ti.h:1699
int32_t actualOps
Definition: itidl_ti.h:2400
This structure contains meta data for TIDL output IMP*** this structure content may change b/w releas...
Definition: itidl_ti.h:2398
int32_t layersGroupId
Definition: itidl_ti.h:1792
float32_tidl kpt_confidence
Definition: itidl_ti.h:2135
eTIDL_inReduceOp
This enumerator defines the different indata formats.
Definition: itidl_ti.h:1934
int32_t weightScales
Definition: itidl_ti.h:1538
float32_tidl clipMax
Definition: itidl_ti.h:987
This union define the layer specific parameters of all the supported layers in TIDL.
Definition: itidl_ti.h:1734
int32_t padW
Definition: itidl_ti.h:1198
Definition: itidl_ti.h:1288
Definition: itidl_ti.h:2227
int32_t isInbufsPaded
Definition: itidl_ti.h:2283
int32_t roundBits
Definition: itidl_ti.h:779
int32_t numInRows
Definition: itidl_ti.h:1550
float32_tidl percentileActRangeShrink
Definition: itidl_ti.h:1017
int32_t resvd
Definition: itidl_ti.h:827
int32_t quantizationStyle
Definition: itidl_ti.h:1848
This structure define the parameters Dat Convert layer in TIDL.
Definition: itidl_ti.h:1653
int32_t biasQ
Definition: itidl_ti.h:1520
int32_t poolingType
Definition: itidl_ti.h:1058
int32_t kernelW
Definition: itidl_ti.h:1060
Definition: itidl_ti.h:2236
#define TIDL_NUM_MAX_LAYERS
Definition: itidl_ti.h:106
Definition: itidl_ti.h:935
sTIDL_ScatterElementsParams_t scatterElementsParams
Definition: itidl_ti.h:1757
void * udmaDrvObj
Definition: itidl_ti.h:2314
This structure contains all the parameters which TI DL library at create time.
Definition: itidl_ti.h:2276
Definition: itidl_ti.h:1893
int32_t processingType
Definition: itidl_ti.h:1329
float32_tidl ymin
Definition: itidl_ti.h:2186
int32_t inDataQ
Definition: itidl_ti.h:1222
This structure defines the Input and output buffer descriptors required for a given Layer group...
Definition: itidl_ti.h:1946
This structure contains the 6D object pose information of BBox detected by OD layer.
Definition: itidl_ti.h:2147
int32_t inDataQ
Definition: itidl_ti.h:1496
sTIDL_BiasParams_t biasParams
Definition: itidl_ti.h:1745
This structure define the parameters of ROI Pooling layer in TIDL.
Definition: itidl_ti.h:950
static float32_tidl TIDL_getWorstcaseDelayForPreemption(sTIDL_Network_t *net)
Definition: itidl_ti.h:2442
Definition: itidl_ti.h:885
static int32_t TIDL_SetObjDetectionFormat(int32_t *odObjectType, int32_t odObjectFormat)
Definition: itidl_ti.h:2061
Definition: itidl_ti.h:1286
int32_t codeType
Definition: itidl_ti.h:1339
Definition: itidl_ti.h:1266
int32_t numKeyPoints
Definition: itidl_ti.h:1431
#define TIDL_SYSMEM_MAX
Definition: itidl_ti.h:645
int32_t blockSize
Definition: itidl_ti.h:837
sTIDL_ResizeLayerParams_t resizeParams
Definition: itidl_ti.h:1749
sTIDL_Network_t * net
Definition: itidl_ti.h:2316
Definition: itidl_ti.h:1265
int32_t numChannels
Definition: itidl_ti.h:1042
sTIDL_RoiPoolingLayerParams_t roiPoolingParams
Definition: itidl_ti.h:1750
int32_t layerType
Definition: itidl_ti.h:872
int32_t inputATranspose
Definition: itidl_ti.h:1576
sTIDL_ActParams_t actParams
Definition: itidl_ti.h:1773
eTIDL_DetectionOutputFormat
This enumerator defines the differnt types of OD format indicated by TIDL_ODLayerHeaderInfo::odObject...
Definition: itidl_ti.h:2053
int32_t offsetH
Definition: itidl_ti.h:1642
float32_tidl strideH
Definition: itidl_ti.h:1439
int32_t enableLayerPerfTraces
Definition: itidl_ti.h:2380
int32_t inWidthOdNetwork
Definition: itidl_ti.h:873
float32_tidl yaw
Definition: itidl_ti.h:2221
int32_t kernelW
Definition: itidl_ti.h:1186
int32_t numLayers
Definition: itidl_ti.h:1836
int32_t dataId
Definition: itidl_ti.h:745
This structure contains all the parameters which are required by TIDL control callbacks for SET comma...
Definition: itidl_ti.h:2265
int32_t zeroWeightValue
Definition: itidl_ti.h:1506
This structure defines the system memory handles in TIDL There are total four handles: 0: L1...
Definition: itidl_ti.h:729
Definition: itidl_ti.h:886
int32_t netVersion
Definition: itidl_ti.h:1832
char traceBaseName[TIDL_STRING_SIZE]
Definition: itidl_ti.h:2309
int32_t outDataQ
Definition: itidl_ti.h:1638
Definition: itidl_ti.h:934
sTIDL_CalibParams_t calibrationParams
Definition: itidl_ti.h:1859
float32_tidl biasCalibrationFactor
Definition: itidl_ti.h:1027
float32_tidl score
Definition: itidl_ti.h:2207
void * base
Definition: itidl_ti.h:731
int32_t rsvdPassThrough
Definition: itidl_ti.h:1145
int32_t biasB
Definition: itidl_ti.h:1572
static int TIDL_createParamsInit(TIDL_CreateParams *params)
Definition: itidl_ti.h:2447
Definition: itidl_ti.h:1259
This structure define the parameters of Pad layer in TIDL.
Definition: itidl_ti.h:845
int32_t isDataConvertNeeded
Definition: itidl_ti.h:1723
int32_t numInBufs
Definition: itidl_ti.h:2376
int32_t imHeight
Definition: itidl_ti.h:956
int32_t enablePooling
Definition: itidl_ti.h:1230
Definition: itidl_ti.h:1260
int32_t coreID
Definition: itidl_ti.h:1789
sTIDL_SoftMaxParams_t softMaxParams
Definition: itidl_ti.h:1741
float32_tidl pX
Definition: itidl_ti.h:1303
int32_t numBatches
Definition: itidl_ti.h:1548
#define TIDL_MAX_ALG_IN_BUFS
Definition: itidl_ti.h:111
eTIDL_inResizeType
This enumerator defines the different indata formats.
Definition: itidl_ti.h:1923
int32_t graphCompilerInfoOffset
Definition: itidl_ti.h:1863
int32_t axis
Definition: itidl_ti.h:969
int32_t imWidth
Definition: itidl_ti.h:954
This structure define the parameters Transpose layer in TIDL.
Definition: itidl_ti.h:1721
int32_t outZeroPoint
Definition: itidl_ti.h:1659
Definition: itidl_ti.h:2242
int32_t enableEWRelU
Definition: itidl_ti.h:1234
sTIDL_CameraIntrinsicsParams_t cameraParams
Definition: itidl_ti.h:1317
sTIDL_CropParams_t cropParams
Definition: itidl_ti.h:1742
This structure define the parameters spatial Pooling layer in TIDL.
Definition: itidl_ti.h:1054
Definition: itidl_ti.h:1316
int32_t outDataQ
Definition: itidl_ti.h:1082
void * tracePtr
Definition: itidl_ti.h:2333
Definition: itidl_ti.h:1678
int32_t stride
Definition: itidl_ti.h:971
int32_t derivedShifts
Definition: itidl_ti.h:1173
int32_t padT
Definition: itidl_ti.h:847
int32_t dilationW
Definition: itidl_ti.h:1194
int32_t flowCtrl
Definition: itidl_ti.h:2298
int32_t elementType
Definition: itidl_ti.h:747
int32_t outDataQ
Definition: itidl_ti.h:1620
int32_t minValue
Definition: itidl_ti.h:753
Definition: itidl_ti.h:2238
int32_t keepDims
Definition: itidl_ti.h:1671
#define TIDL_DIM_MAX
Definition: itidl_ti.h:482
int32_t dilationH
Definition: itidl_ti.h:1196
Definition: itidl_ti.h:965
float float32_tidl
Definition: itidl_ti.h:124
int32_t biasQ
Definition: itidl_ti.h:1596
float32_tidl weightScale
Definition: itidl_ti.h:1558
Definition: itidl_ti.h:1927
int32_t numInChannels
Definition: itidl_ti.h:1180
Definition: itidl_ti.h:1904
int32_t padH
Definition: itidl_ti.h:769
float32_tidl biasScale
Definition: itidl_ti.h:1560
This structure define the parameters Arg max layer in TIDL.
Definition: itidl_ti.h:1040
int32_t poolingType
Definition: itidl_ti.h:952
sTIDL_PoolingParams_t poolParams
Definition: itidl_ti.h:1243
int32_t biasScales
Definition: itidl_ti.h:1165
float32_tidl offsetH
Definition: itidl_ti.h:1445
Definition: itidl_ti.h:919
int32_t weightZeroPoints
Definition: itidl_ti.h:1540
int32_t numChannels
Definition: itidl_ti.h:1634
int32_t padT
Definition: itidl_ti.h:1206
Definition: itidl_ti.h:800
This structure define the parameters of Bias layer in TIDL.
Definition: itidl_ti.h:1514
int32_t outDataQ
Definition: itidl_ti.h:1224
This structure contains the each object&#39;s information detected by Objection detection layer...
Definition: itidl_ti.h:2175
float32_tidl x
Definition: itidl_ti.h:2131
Definition: itidl_ti.h:1925
int32_t doesLayerFillOutXPadding
Definition: itidl_ti.h:1143
float32_tidl z
Definition: itidl_ti.h:2213
Definition: itidl_ti.h:2230
sTIDL_TransposeParams_t transposeParams
Definition: itidl_ti.h:1759
int32_t zeroWeightValue
Definition: itidl_ti.h:1216
int32_t slope
Definition: itidl_ti.h:981
sTIDL_sysMemHandle_t sTIDL_NetBuffer_t
Definition: itidl_ti.h:736
float32_tidl epsilon
Definition: itidl_ti.h:804
float32_tidl nmsThreshold
Definition: itidl_ti.h:1345
sTIDL_ConvParams_t convParams
Definition: itidl_ti.h:1735
int32_t padB
Definition: itidl_ti.h:1208
int32_t outDataQ
Definition: itidl_ti.h:1524
This structure define the parameters of Detection Output Layer in TIDL.
Definition: itidl_ti.h:1327
float32_tidl objInfoSize
Definition: itidl_ti.h:2117
Definition: itidl_ti.h:1891
float32_tidl quantRangeExpansionFactor
Definition: itidl_ti.h:2287
eTIDL_PadLayerPadType
This enumerator defines the different types of padding supported by TIDL library. ...
Definition: itidl_ti.h:917
This structure define the parameters of ReLU activation layer in TIDL.
Definition: itidl_ti.h:997
int32_t coreStartIdx
Definition: itidl_ti.h:2321
int32_t tensorZeroPoint
Definition: itidl_ti.h:763
int32_t offset
Definition: itidl_ti.h:707
This structure define the parameters of Data layer in TIDL.
Definition: itidl_ti.h:793
int32_t outDataQ
Definition: itidl_ti.h:1046
Definition: itidl_ti.h:1681
#define TIDL_OD_MAX_KEY_POINTS
Definition: itidl_ti.h:2139
int32_t inferenceMode
Definition: itidl_ti.h:1959
int32_t numOutBufs
Definition: itidl_ti.h:1781
int32_t varianceEncoded
Definition: itidl_ti.h:1359
int32_t outDataQ
Definition: itidl_ti.h:1568
sTIDL_LayerNormParams_t layerNormParams
Definition: itidl_ti.h:1761
float32_tidl biasScale
Definition: itidl_ti.h:1212
int32_t padB
Definition: itidl_ti.h:849
int32_t outDataQ
Definition: itidl_ti.h:1600
int32_t biasZeroPoints
Definition: itidl_ti.h:1167
int32_t kernelH
Definition: itidl_ti.h:1188
float32_tidl fY
Definition: itidl_ti.h:1301
int32_t activationType
Definition: itidl_ti.h:1546
Definition: itidl_ti.h:1277
float32_tidl ObjId
Definition: itidl_ti.h:2178
int32_t weightsQ
Definition: itidl_ti.h:1500
float32_tidl offsetL
Definition: itidl_ti.h:1447
int32_t bias
Definition: itidl_ti.h:1588
#define TIDL_NUM_OUT_BUFS
Definition: itidl_ti.h:108
Definition: itidl_ti.h:2057
This structure define common parameters ReduceMax/ReduceMin layer in TIDL.
Definition: itidl_ti.h:1667
int32_t(* TIDL_Lock_t)(void)
Call back function pointer to lock interrupts.
Definition: itidl_ti.h:133
eTIDL_SubCodeType
This enumerator defines the differnt types of subCodeParams indicated by sTIDL_DetectOutputParams_t::...
Definition: itidl_ti.h:1410
TIDL_Lock_t pFxnLock
Definition: itidl_ti.h:2327
int32_t layerKernelType
Definition: itidl_ti.h:1777
int32_t padW
Definition: itidl_ti.h:767
int32_t interDataQ
Definition: itidl_ti.h:1226
int32_t odObjectType
Definition: itidl_ti.h:2124
float32_tidl weightScale
Definition: itidl_ti.h:1502
int32_t quantizationStyle
Definition: itidl_ti.h:1249
float32_tidl score
Definition: itidl_ti.h:2182
int32_t numSuperBatches
Definition: itidl_ti.h:1957
int32_t outDataQ
Definition: itidl_ti.h:1498
float32_tidl weightScale
Definition: itidl_ti.h:1210
float32_tidl percentileWtRangeShrink
Definition: itidl_ti.h:1024
int32_t numOutputBuf
Definition: itidl_ti.h:1951
uint8_t mmaScale
Definition: itidl_ti.h:1602
float32_tidl tensorScale
Definition: itidl_ti.h:761
This structure define the parameters Convolution Layer in TIDL.
Definition: itidl_ti.h:1155
int32_t offsetW
Definition: itidl_ti.h:1640
Definition: itidl_ti.h:1258
int32_t numBatchW
Definition: itidl_ti.h:775
int32_t maxPointsPerVoxel
Definition: itidl_ti.h:1390
int32_t offset
Definition: itidl_ti.h:1709
void * ptr
Definition: itidl_ti.h:705
Definition: itidl_ti.h:931
int32_t inDataQ
Definition: itidl_ti.h:1044
float32_tidl l
Definition: itidl_ti.h:2217
float32_tidl offsetDir
Definition: itidl_ti.h:1449
This structure define the parameters of Batch Norm layer in TIDL.
Definition: itidl_ti.h:1486
eTIDL_MemTypes
Definition: itidl_ti.h:2234
This structure contains all the parameters which are required by TIDL control callbacks for GET comma...
Definition: itidl_ti.h:2253
This structure define the parameters of the OD output reformatting layer in TIDL. ...
Definition: itidl_ti.h:870
Definition: itidl_ti.h:2231
int32_t keepTopK
Definition: itidl_ti.h:1353
This structure define the parameters of Shuffle layer in TIDL.
Definition: itidl_ti.h:823
Definition: itidl_ti.h:1276
#define TIDL_NET_TOTAL_BUF
Definition: itidl_ti.h:1820
int32_t inputBTranspose
Definition: itidl_ti.h:1578
int32_t actType
Definition: itidl_ti.h:989
sTIDL_PadLayerParams_t padLayerParams
Definition: itidl_ti.h:1752
eTIDL_odOutputReformatType
This enumerator defines the different types of output types for the OD output reformatting layer...
Definition: itidl_ti.h:929
int32_t enableBias
Definition: itidl_ti.h:1228
#define TIDL_PROFILE_MAX
Definition: itidl_ti.h:688
int32_t dataElementSize
Definition: itidl_ti.h:1844
int32_t biasQ
Definition: itidl_ti.h:1564
This structure define the common layer parameters in TIDL.
Definition: itidl_ti.h:1770
int32_t scoreConverter
Definition: itidl_ti.h:1393
uint8_t mmaShift
Definition: itidl_ti.h:1603
int32_t inDataQ
Definition: itidl_ti.h:1566
void * privArgs
Definition: itidl_ti.h:2421
eTIDL_metaArchType
This enumerator defines the different Meta Arch types.
Definition: itidl_ti.h:1256
int32_t padH
Definition: itidl_ti.h:1099
Definition: itidl_ti.h:940
int32_t subCodeType
Definition: itidl_ti.h:1365
eTIDL_RoiPoolingType
This enumerator defines the different types of ROI pooling supported by TIDL library.
Definition: itidl_ti.h:906
int32_t convolutionType
Definition: itidl_ti.h:1178
int32_t derivedScales
Definition: itidl_ti.h:1171
int32_t batchPadW
Definition: itidl_ti.h:771
This structure define the parameters of data or kernel buffer used by TIDL layers (In...
Definition: itidl_ti.h:743
sTIDL_LayerParams_t layerParams
Definition: itidl_ti.h:1771
int32_t weights
Definition: itidl_ti.h:1488
Definition: itidl_ti.h:2237
int32_t biasB
Definition: itidl_ti.h:1218
float32_tidl objInfoOffset
Definition: itidl_ti.h:2121
Definition: itidl_ti.h:884
int32_t traceLogLevel
Definition: itidl_ti.h:2292
int32_t axis
Definition: itidl_ti.h:1622
int32_t axis
Definition: itidl_ti.h:1669
int32_t numCores
Definition: itidl_ti.h:1875
This structure define the parameters of ReLU activation layer in TIDL.
Definition: itidl_ti.h:979
This structure define the parameters CNN/Deep learning net in TIDL.
Definition: itidl_ti.h:1830
int32_t biasCalibrationIterations
Definition: itidl_ti.h:1031
int32_t strideH
Definition: itidl_ti.h:1192
int32_t strideH
Definition: itidl_ti.h:1066
int32_t headWidth
Definition: itidl_ti.h:1433
float32_tidl preEmptWorstCaseDelay
Definition: itidl_ti.h:1867
sTIDL_EltWiseParams_t eltWiseParams
Definition: itidl_ti.h:1736
float32_tidl numDetObjects
Definition: itidl_ti.h:2115
#define TIDL_MAX_ALG_OUT_BUFS
Definition: itidl_ti.h:112
int32_t eltWiseType
Definition: itidl_ti.h:1592
sTIDL_ConcatParams_t concatParams
Definition: itidl_ti.h:1743
int32_t totalOps
Definition: itidl_ti.h:2399
int32_t inZeroPoint
Definition: itidl_ti.h:1658
int32_t bias
Definition: itidl_ti.h:1536
int32_t numAnchors
Definition: itidl_ti.h:1429
int32_t numKeypoints
Definition: itidl_ti.h:1361
int32_t priorBox
Definition: itidl_ti.h:1331
float32_tidl h
Definition: itidl_ti.h:2219
int32_t doesLayerChangePadding
Definition: itidl_ti.h:1117
float32_tidl eta
Definition: itidl_ti.h:1347
int32_t useCeil
Definition: itidl_ti.h:1084
int32_t padConstValue
Definition: itidl_ti.h:855
int32_t topK
Definition: itidl_ti.h:1349
int32_t numChannels
Definition: itidl_ti.h:1616
int32_t(* TIDLWriteBinToFile)(const char *fileName, void *addr, int32_t size, int32_t count)
Definition: itidl_ti.h:2335
int32_t padH
Definition: itidl_ti.h:1070
float32_tidl y
Definition: itidl_ti.h:2211
int32_t padH
Definition: itidl_ti.h:1200
int32_t numLayers
Definition: itidl_ti.h:2419
int32_t modelGroupId
Definition: itidl_ti.h:1871
TIDL_sharedBufferProperties ctrlGetArgs
Definition: itidl_ti.h:2255
int32_t optimiseExtMem
Definition: itidl_ti.h:2285
Definition: itidl_ti.h:1937
uint32_t targetPriority
Definition: itidl_ti.h:2324
int32_t inDataQ
Definition: itidl_ti.h:1636
const IVISION_Fxns TIDL_VISION_FXNS
The unique const function table for the TI deep learning algorithm.
double float64_tidl
Definition: itidl_ti.h:126
int32_t interElementSize
Definition: itidl_ti.h:1846
float32_tidl tx
Definition: itidl_ti.h:2162
This structure contains the header information of Objection detection layer.
Definition: itidl_ti.h:2112
int32_t numCores
Definition: itidl_ti.h:1953
float32_tidl label
Definition: itidl_ti.h:2180
eTIDL_inferenceMode
This enumerator defines the different inference implementation modes supported by TIDL...
Definition: itidl_ti.h:1900
int32_t size
Definition: itidl_ti.h:732
int32_t forceInPlace
Definition: itidl_ti.h:1111
int32_t numOutCols
Definition: itidl_ti.h:1554
Definition: itidl_ti.h:937
float32_tidl r21
Definition: itidl_ti.h:2152
int32_t slopeElementSize
Definition: itidl_ti.h:1840
sTIDL_BatchNormParams_t batchNormParams
Definition: itidl_ti.h:1746
int32_t dataFlowInfo
Definition: itidl_ti.h:1861
Definition: itidl_ti.h:2056
Definition: itidl_ti.h:942
Definition: itidl_ti.h:908
Definition: itidl_ti.h:1296
eTIDL_inYuvFormat
This enumerator defines the different YUV formats.
Definition: itidl_ti.h:1911
sTIDL_dataConvertParams_t dataConvertParams
Definition: itidl_ti.h:1754
int32_t outTranspose
Definition: itidl_ti.h:1624
int32_t outLayout
Definition: itidl_ti.h:1657
IVISION_Params visionParams
Definition: itidl_ti.h:2279
int32_t layerExecId
Definition: itidl_ti.h:2401
Definition: itidl_ti.h:932
int32_t keypointConfidence
Definition: itidl_ti.h:1363
This structure define the parameters of Element wise layer in TIDL.
Definition: itidl_ti.h:1586
int32_t numChannels
Definition: itidl_ti.h:795
float32_tidl r32
Definition: itidl_ti.h:2160
Definition: itidl_ti.h:920
sTIDL_InnerProductParams_t innerProductParams
Definition: itidl_ti.h:1738
This structure defines the parameters for custom layer in TIDL.
Definition: itidl_ti.h:1091
#define TIDL_MAX_NUM_CORES
Definition: itidl_ti.h:120
int32_t biasElementSize
Definition: itidl_ti.h:1842
This structure define the parameters of AnchorBox used by Detection Output Layer in TIDL...
Definition: itidl_ti.h:1426
int32_t(* TIDLReadBinFromFile)(const char *fileName, void *addr, int32_t size, int32_t count)
Definition: itidl_ti.h:2337
int32_t maxPSAT
Definition: itidl_ti.h:1247
int32_t biasScales
Definition: itidl_ti.h:1542
sTIDL_PoolingParams_t poolParams
Definition: itidl_ti.h:1737
int32_t padL
Definition: itidl_ti.h:1202
Definition: itidl_ti.h:1275
#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:387
int32_t perChannelPadConstTensorSize
Definition: itidl_ti.h:862
sTIDL_ArgMaxParams_t argMaxParams
Definition: itidl_ti.h:1740
int32_t numOutChannels
Definition: itidl_ti.h:1182
Definition: itidl_ti.h:909
int32_t biasTerm
Definition: itidl_ti.h:1604
int32_t numGroups
Definition: itidl_ti.h:825
int32_t shareLocation
Definition: itidl_ti.h:1356
int32_t backgroundLabelId
Definition: itidl_ti.h:1337
This structure define the parameters of Inner Product (Fully connected) layer in TIDL.
Definition: itidl_ti.h:1532
Definition: itidl_ti.h:1936
eTIDL_inDataFormat
This enumerator defines the different indata formats.
Definition: itidl_ti.h:1889
int32_t weightRangeMethod
Definition: itidl_ti.h:1009
int32_t inDataQ
Definition: itidl_ti.h:1080
Definition: itidl_ti.h:2229
int32_t outDataQ
Definition: itidl_ti.h:1476
int32_t imHeight
Definition: itidl_ti.h:1381
sTIDL_DataParams_t * inDataPtr
Definition: itidl_ti.h:1787
float32_tidl label
Definition: itidl_ti.h:2205
int32_t priorBoxSize
Definition: itidl_ti.h:1333
eTIDL_MemSpaces
Definition: itidl_ti.h:2224
TIDL_Unlock_t pFxnUnLock
Definition: itidl_ti.h:2329
Definition: itidl_ti.h:936
int32_t weightScales
Definition: itidl_ti.h:1161
IVISION_OutArgs iVisionOutArgs
Definition: itidl_ti.h:2414
int32_t calibrationOption
Definition: itidl_ti.h:1855
int32_t inDataQ
Definition: itidl_ti.h:1618
int32_t numBatchH
Definition: itidl_ti.h:777
int32_t padL
Definition: itidl_ti.h:1076
int32_t dataQ
Definition: itidl_ti.h:751
int32_t reserved
Definition: itidl_ti.h:1869
int32_t strideW
Definition: itidl_ti.h:1190
int32_t axis
Definition: itidl_ti.h:814
int32_t type
Definition: itidl_ti.h:1655
#define TIDL_STRING_SIZE
Definition: itidl_ti.h:109
int32_t numInputBuf
Definition: itidl_ti.h:1949
sTIDL_DataParams_t outData
Definition: itidl_ti.h:1785
float32_tidl pY
Definition: itidl_ti.h:1305
int32_t weightsElementSizeInBits
Definition: itidl_ti.h:1794
sTIDL_DepthToSpaceParams_t depthToSpaceParams
Definition: itidl_ti.h:1751
float32_tidl xmax
Definition: itidl_ti.h:2188
int32_t rsvdPassThroughSize
Definition: itidl_ti.h:1147
This structure contains the key points information of BBox detected by OD layer.
Definition: itidl_ti.h:2128
int32_t topKAllClasses
Definition: itidl_ti.h:1351
float32_tidl ty
Definition: itidl_ti.h:2164
Definition: itidl_ti.h:1926
uint32_t coreId
Definition: itidl_ti.h:2319
Definition: itidl_ti.h:2228
int32_t axis
Definition: itidl_ti.h:802
float32_tidl x
Definition: itidl_ti.h:2209
int32_t numChannels
Definition: itidl_ti.h:1492
sTIDL_DataLayerParams_t dataLayerParams
Definition: itidl_ti.h:1739
int32_t numClasses
Definition: itidl_ti.h:1335
Definition: itidl_ti.h:1679
float32_tidl weightScale
Definition: itidl_ti.h:1711
float32_tidl slopeScale
Definition: itidl_ti.h:983
int32_t currLayersGroupId
Definition: itidl_ti.h:2281
eTIDL_ScatterElementsReductionType
Definition: itidl_ti.h:1676
Definition: itidl_ti.h:939
This structure define the parameters of data or kernel buffer memory in TIDL.
Definition: itidl_ti.h:703
float32_tidl r12
Definition: itidl_ti.h:2156
int32_t padR
Definition: itidl_ti.h:1204
float32_tidl confThreshold
Definition: itidl_ti.h:1342
Definition: itidl_ti.h:1287
int32_t deviceName
Definition: itidl_ti.h:1834
int32_t inDataQ
Definition: itidl_ti.h:1522
int32_t numChannels
Definition: itidl_ti.h:1590
float32_tidl r31
Definition: itidl_ti.h:2154
int32_t weightsQ
Definition: itidl_ti.h:1556
int32_t bias
Definition: itidl_ti.h:1159
Definition: itidl_ti.h:1903
int32_t biasQ
Definition: itidl_ti.h:1220
This structure contains all the parameters which controls the applet at create time.
Definition: itidl_ti.h:2371
int32_t activationRangeMethod
Definition: itidl_ti.h:1002
int32_t bias
Definition: itidl_ti.h:1490
Definition: itidl_ti.h:2226
float32_tidl maxPreEmptDelay
Definition: itidl_ti.h:2307
int32_t zeroWeightValue
Definition: itidl_ti.h:1562
int32_t inferenceMode
Definition: itidl_ti.h:1873
This structure contains the each object&#39;s information detected by 3D Objection detection layer...
Definition: itidl_ti.h:2200
int32_t enableDepthToSpace
Definition: itidl_ti.h:1238
This structure contains all the parameters which controls the applet at create time.
Definition: itidl_ti.h:2411
int32_t interDataQ
Definition: itidl_ti.h:1570
int32_t padT
Definition: itidl_ti.h:1072
void(* TIDL_Unlock_t)(int32_t)
Call back function pointer to unlock interrupts.
Definition: itidl_ti.h:141
int32_t padW
Definition: itidl_ti.h:1068
float32_tidl strideL
Definition: itidl_ti.h:1441
Definition: itidl_ti.h:1263
Definition: itidl_ti.h:1262
int32_t axis
Definition: itidl_ti.h:1691
int32_t(* TIDLVprintf)(const char *format, va_list arg)
Definition: itidl_ti.h:2331
int32_t weightsQ
Definition: itidl_ti.h:1214
This structure define the parameters of PriorBox layer in TIDL.
Definition: itidl_ti.h:1472
Definition: itidl_ti.h:921
int32_t layout
Definition: itidl_ti.h:1656
int32_t dataLayout
Definition: itidl_ti.h:1400
int32_t weights
Definition: itidl_ti.h:1157
eTIDL_processingType
This enumerator defines the different Meta Arch types.
Definition: itidl_ti.h:1273
int32_t batchPadH
Definition: itidl_ti.h:773
int32_t numInBufs
Definition: itidl_ti.h:1779
Definition: itidl_ti.h:2055
float32_tidl r11
Definition: itidl_ti.h:2150
int32_t ops
Definition: itidl_ti.h:1673
int32_t dataQ
Definition: itidl_ti.h:797
int32_t imWidth
Definition: itidl_ti.h:1378
int32_t kernelH
Definition: itidl_ti.h:1062
int32_t bias
Definition: itidl_ti.h:1516
int32_t weightZeroPoints
Definition: itidl_ti.h:1163
#define TIDL_OD_MAX_ANCHORS_PER_HEAD
Definition: itidl_ti.h:1418
int32_t isQuantStatsAvailable
Definition: itidl_ti.h:1865
int32_t numOutBufs
Definition: itidl_ti.h:2416
int32_t metaArchType
Definition: itidl_ti.h:1396
float32_tidl offsetW
Definition: itidl_ti.h:1443
int32_t numChannels
Definition: itidl_ti.h:1518
float32_tidl * anchorInputs
Definition: itidl_ti.h:1463
float32_tidl odNumKeyPoints
Definition: itidl_ti.h:2119
This structure define the parameters Crop layer in TIDL.
Definition: itidl_ti.h:1632
Definition: itidl_ti.h:1913
#define TIDL_NUM_IN_BUFS
Definition: itidl_ti.h:107
sTIDL_GatherLayerParams_t gatherParams
Definition: itidl_ti.h:1760
sTIDL_CustomParams_t customParams
Definition: itidl_ti.h:1755
int32_t reservedCtrl
Definition: itidl_ti.h:2296
int32_t weightsElementSize
Definition: itidl_ti.h:1838
int32_t bufSize
Definition: itidl_ti.h:706
static int32_t TIDL_GetObjDetectionFormatState(int32_t odObjectType, int32_t odObjectFormat)
Definition: itidl_ti.h:2066
Definition: itidl_ti.h:1261
float32_tidl tz
Definition: itidl_ti.h:2166
int32_t padW
Definition: itidl_ti.h:1096
int32_t perChannelWeightScaleOffset
Definition: itidl_ti.h:1176
int32_t numChannels
Definition: itidl_ti.h:1056
This structure define the parameters of Depth To Space layer in TIDL.
Definition: itidl_ti.h:835
This structure define the parameters of Resize layer in TIDL.
Definition: itidl_ti.h:894
int32_t padR
Definition: itidl_ti.h:1078
int32_t memOverlapType
Definition: itidl_ti.h:1105
Definition: itidl_ti.h:933
Definition: itidl_ti.h:1413
#define TIDL_OD_MAX_KEYPOINTS
Definition: itidl_ti.h:1417
Definition: itidl_ti.h:2058
float32_tidl fX
Definition: itidl_ti.h:1299
int32_t headHeight
Definition: itidl_ti.h:1435
int32_t layerType
Definition: itidl_ti.h:1775
int32_t axis
Definition: itidl_ti.h:1474
int32_t derivedBias
Definition: itidl_ti.h:1169
int32_t isBias
Definition: itidl_ti.h:1574
This structure define the parameters ConstData layer in TIDL.
Definition: itidl_ti.h:1707
eTIDL_scoreConverterType
This enumerator defines the different Meta Arch types.
Definition: itidl_ti.h:1284
int32_t minPSAT
Definition: itidl_ti.h:1245
float32_tidl minTensorValue
Definition: itidl_ti.h:757
int32_t isBroadcast
Definition: itidl_ti.h:1713
int32_t padL
Definition: itidl_ti.h:851
int32_t biasZeroPoints
Definition: itidl_ti.h:1544
float32_tidl w
Definition: itidl_ti.h:2215
int32_t maxValue
Definition: itidl_ti.h:755
int32_t mode
Definition: itidl_ti.h:896
int32_t tensorType
Definition: itidl_ti.h:765
int32_t numDim
Definition: itidl_ti.h:749
Definition: itidl_ti.h:1892
Definition: itidl_ti.h:1915
float32_tidl strideW
Definition: itidl_ti.h:1437
sTIDL_DetectOutputParams_t detectOutParams
Definition: itidl_ti.h:1744
float32_tidl ymax
Definition: itidl_ti.h:2190
int32_t customLayerType
Definition: itidl_ti.h:1093
int32_t numHeads
Definition: itidl_ti.h:1370
eTIDL_ResizeType
This enumerator defines the different types of element type used by TIDL library. ...
Definition: itidl_ti.h:882