edgefirst-tflite-sys 0.8.0

Low-level FFI bindings for the TensorFlow Lite C API with runtime symbol loading
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
// SPDX-License-Identifier: Apache-2.0
// Copyright (c) 2025 Au-Zone Technologies. All Rights Reserved.

/* automatically generated by rust-bindgen 0.72.0 */

#[repr(C)]
#[derive(Default)]
pub struct __IncompleteArrayField<T>(::std::marker::PhantomData<T>, [T; 0]);
impl<T> __IncompleteArrayField<T> {
    #[inline]
    pub const fn new() -> Self {
        __IncompleteArrayField(::std::marker::PhantomData, [])
    }

    #[inline]
    pub fn as_ptr(&self) -> *const T {
        self as *const _ as *const T
    }

    #[inline]
    pub fn as_mut_ptr(&mut self) -> *mut T {
        self as *mut _ as *mut T
    }

    #[inline]
    pub unsafe fn as_slice(&self, len: usize) -> &[T] {
        unsafe { ::std::slice::from_raw_parts(self.as_ptr(), len) }
    }

    #[inline]
    pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] {
        unsafe { ::std::slice::from_raw_parts_mut(self.as_mut_ptr(), len) }
    }
}
impl<T> ::std::fmt::Debug for __IncompleteArrayField<T> {
    fn fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        fmt.write_str("__IncompleteArrayField")
    }
}
pub type va_list = __builtin_va_list;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinAdd: TfLiteBuiltinOperator = 0;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinAveragePool2d: TfLiteBuiltinOperator = 1;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinConcatenation: TfLiteBuiltinOperator = 2;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinConv2d: TfLiteBuiltinOperator = 3;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinDepthwiseConv2d: TfLiteBuiltinOperator = 4;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinDepthToSpace: TfLiteBuiltinOperator = 5;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinDequantize: TfLiteBuiltinOperator = 6;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinEmbeddingLookup: TfLiteBuiltinOperator = 7;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinFloor: TfLiteBuiltinOperator = 8;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinFullyConnected: TfLiteBuiltinOperator = 9;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinHashtableLookup: TfLiteBuiltinOperator = 10;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinL2Normalization: TfLiteBuiltinOperator = 11;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinL2Pool2d: TfLiteBuiltinOperator = 12;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinLocalResponseNormalization: TfLiteBuiltinOperator =
    13;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinLogistic: TfLiteBuiltinOperator = 14;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinLshProjection: TfLiteBuiltinOperator = 15;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinLstm: TfLiteBuiltinOperator = 16;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinMaxPool2d: TfLiteBuiltinOperator = 17;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinMul: TfLiteBuiltinOperator = 18;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinRelu: TfLiteBuiltinOperator = 19;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinReluN1To1: TfLiteBuiltinOperator = 20;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinRelu6: TfLiteBuiltinOperator = 21;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinReshape: TfLiteBuiltinOperator = 22;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinResizeBilinear: TfLiteBuiltinOperator = 23;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinRnn: TfLiteBuiltinOperator = 24;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinSoftmax: TfLiteBuiltinOperator = 25;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinSpaceToDepth: TfLiteBuiltinOperator = 26;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinSvdf: TfLiteBuiltinOperator = 27;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinTanh: TfLiteBuiltinOperator = 28;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinConcatEmbeddings: TfLiteBuiltinOperator = 29;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinSkipGram: TfLiteBuiltinOperator = 30;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinCall: TfLiteBuiltinOperator = 31;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinCustom: TfLiteBuiltinOperator = 32;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinEmbeddingLookupSparse: TfLiteBuiltinOperator = 33;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinPad: TfLiteBuiltinOperator = 34;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinUnidirectionalSequenceRnn: TfLiteBuiltinOperator = 35;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinGather: TfLiteBuiltinOperator = 36;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinBatchToSpaceNd: TfLiteBuiltinOperator = 37;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinSpaceToBatchNd: TfLiteBuiltinOperator = 38;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinTranspose: TfLiteBuiltinOperator = 39;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinMean: TfLiteBuiltinOperator = 40;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinSub: TfLiteBuiltinOperator = 41;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinDiv: TfLiteBuiltinOperator = 42;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinSqueeze: TfLiteBuiltinOperator = 43;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinUnidirectionalSequenceLstm: TfLiteBuiltinOperator =
    44;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinStridedSlice: TfLiteBuiltinOperator = 45;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinBidirectionalSequenceRnn: TfLiteBuiltinOperator = 46;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinExp: TfLiteBuiltinOperator = 47;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinTopkV2: TfLiteBuiltinOperator = 48;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinSplit: TfLiteBuiltinOperator = 49;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinLogSoftmax: TfLiteBuiltinOperator = 50;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinDelegate: TfLiteBuiltinOperator = 51;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinBidirectionalSequenceLstm: TfLiteBuiltinOperator = 52;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinCast: TfLiteBuiltinOperator = 53;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinPrelu: TfLiteBuiltinOperator = 54;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinMaximum: TfLiteBuiltinOperator = 55;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinArgMax: TfLiteBuiltinOperator = 56;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinMinimum: TfLiteBuiltinOperator = 57;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinLess: TfLiteBuiltinOperator = 58;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinNeg: TfLiteBuiltinOperator = 59;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinPadv2: TfLiteBuiltinOperator = 60;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinGreater: TfLiteBuiltinOperator = 61;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinGreaterEqual: TfLiteBuiltinOperator = 62;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinLessEqual: TfLiteBuiltinOperator = 63;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinSelect: TfLiteBuiltinOperator = 64;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinSlice: TfLiteBuiltinOperator = 65;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinSin: TfLiteBuiltinOperator = 66;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinTransposeConv: TfLiteBuiltinOperator = 67;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinSparseToDense: TfLiteBuiltinOperator = 68;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinTile: TfLiteBuiltinOperator = 69;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinExpandDims: TfLiteBuiltinOperator = 70;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinEqual: TfLiteBuiltinOperator = 71;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinNotEqual: TfLiteBuiltinOperator = 72;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinLog: TfLiteBuiltinOperator = 73;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinSum: TfLiteBuiltinOperator = 74;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinSqrt: TfLiteBuiltinOperator = 75;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinRsqrt: TfLiteBuiltinOperator = 76;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinShape: TfLiteBuiltinOperator = 77;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinPow: TfLiteBuiltinOperator = 78;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinArgMin: TfLiteBuiltinOperator = 79;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinFakeQuant: TfLiteBuiltinOperator = 80;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinReduceProd: TfLiteBuiltinOperator = 81;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinReduceMax: TfLiteBuiltinOperator = 82;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinPack: TfLiteBuiltinOperator = 83;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinLogicalOr: TfLiteBuiltinOperator = 84;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinOneHot: TfLiteBuiltinOperator = 85;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinLogicalAnd: TfLiteBuiltinOperator = 86;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinLogicalNot: TfLiteBuiltinOperator = 87;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinUnpack: TfLiteBuiltinOperator = 88;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinReduceMin: TfLiteBuiltinOperator = 89;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinFloorDiv: TfLiteBuiltinOperator = 90;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinReduceAny: TfLiteBuiltinOperator = 91;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinSquare: TfLiteBuiltinOperator = 92;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinZerosLike: TfLiteBuiltinOperator = 93;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinFill: TfLiteBuiltinOperator = 94;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinFloorMod: TfLiteBuiltinOperator = 95;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinRange: TfLiteBuiltinOperator = 96;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinResizeNearestNeighbor: TfLiteBuiltinOperator = 97;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinLeakyRelu: TfLiteBuiltinOperator = 98;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinSquaredDifference: TfLiteBuiltinOperator = 99;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinMirrorPad: TfLiteBuiltinOperator = 100;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinAbs: TfLiteBuiltinOperator = 101;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinSplitV: TfLiteBuiltinOperator = 102;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinUnique: TfLiteBuiltinOperator = 103;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinCeil: TfLiteBuiltinOperator = 104;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinReverseV2: TfLiteBuiltinOperator = 105;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinAddN: TfLiteBuiltinOperator = 106;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinGatherNd: TfLiteBuiltinOperator = 107;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinCos: TfLiteBuiltinOperator = 108;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinWhere: TfLiteBuiltinOperator = 109;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinRank: TfLiteBuiltinOperator = 110;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinElu: TfLiteBuiltinOperator = 111;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinReverseSequence: TfLiteBuiltinOperator = 112;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinMatrixDiag: TfLiteBuiltinOperator = 113;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinQuantize: TfLiteBuiltinOperator = 114;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinMatrixSetDiag: TfLiteBuiltinOperator = 115;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinRound: TfLiteBuiltinOperator = 116;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinHardSwish: TfLiteBuiltinOperator = 117;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinIf: TfLiteBuiltinOperator = 118;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinWhile: TfLiteBuiltinOperator = 119;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinNonMaxSuppressionV4: TfLiteBuiltinOperator = 120;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinNonMaxSuppressionV5: TfLiteBuiltinOperator = 121;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinScatterNd: TfLiteBuiltinOperator = 122;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinSelectV2: TfLiteBuiltinOperator = 123;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinDensify: TfLiteBuiltinOperator = 124;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinSegmentSum: TfLiteBuiltinOperator = 125;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinBatchMatmul: TfLiteBuiltinOperator = 126;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinPlaceholderForGreaterOpCodes: TfLiteBuiltinOperator =
    127;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinCumsum: TfLiteBuiltinOperator = 128;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinCallOnce: TfLiteBuiltinOperator = 129;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinBroadcastTo: TfLiteBuiltinOperator = 130;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinRfft2d: TfLiteBuiltinOperator = 131;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinConv3d: TfLiteBuiltinOperator = 132;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinImag: TfLiteBuiltinOperator = 133;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinReal: TfLiteBuiltinOperator = 134;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinComplexAbs: TfLiteBuiltinOperator = 135;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinHashtable: TfLiteBuiltinOperator = 136;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinHashtableFind: TfLiteBuiltinOperator = 137;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinHashtableImport: TfLiteBuiltinOperator = 138;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinHashtableSize: TfLiteBuiltinOperator = 139;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinReduceAll: TfLiteBuiltinOperator = 140;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinConv3dTranspose: TfLiteBuiltinOperator = 141;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinVarHandle: TfLiteBuiltinOperator = 142;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinReadVariable: TfLiteBuiltinOperator = 143;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinAssignVariable: TfLiteBuiltinOperator = 144;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinBroadcastArgs: TfLiteBuiltinOperator = 145;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinRandomStandardNormal: TfLiteBuiltinOperator = 146;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinBucketize: TfLiteBuiltinOperator = 147;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinRandomUniform: TfLiteBuiltinOperator = 148;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinMultinomial: TfLiteBuiltinOperator = 149;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinGelu: TfLiteBuiltinOperator = 150;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinDynamicUpdateSlice: TfLiteBuiltinOperator = 151;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinRelu0To1: TfLiteBuiltinOperator = 152;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinUnsortedSegmentProd: TfLiteBuiltinOperator = 153;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinUnsortedSegmentMax: TfLiteBuiltinOperator = 154;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinUnsortedSegmentSum: TfLiteBuiltinOperator = 155;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinAtan2: TfLiteBuiltinOperator = 156;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinUnsortedSegmentMin: TfLiteBuiltinOperator = 157;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinSign: TfLiteBuiltinOperator = 158;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinBitcast: TfLiteBuiltinOperator = 159;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinBitwiseXor: TfLiteBuiltinOperator = 160;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinRightShift: TfLiteBuiltinOperator = 161;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinStablehloLogistic: TfLiteBuiltinOperator = 162;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinStablehloAdd: TfLiteBuiltinOperator = 163;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinStablehloDivide: TfLiteBuiltinOperator = 164;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinStablehloMultiply: TfLiteBuiltinOperator = 165;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinStablehloMaximum: TfLiteBuiltinOperator = 166;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinStablehloReshape: TfLiteBuiltinOperator = 167;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinStablehloClamp: TfLiteBuiltinOperator = 168;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinStablehloConcatenate: TfLiteBuiltinOperator = 169;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinStablehloBroadcastInDim: TfLiteBuiltinOperator = 170;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinStablehloConvolution: TfLiteBuiltinOperator = 171;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinStablehloSlice: TfLiteBuiltinOperator = 172;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinStablehloCustomCall: TfLiteBuiltinOperator = 173;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinStablehloReduce: TfLiteBuiltinOperator = 174;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinStablehloAbs: TfLiteBuiltinOperator = 175;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinStablehloAnd: TfLiteBuiltinOperator = 176;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinStablehloCosine: TfLiteBuiltinOperator = 177;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinStablehloExponential: TfLiteBuiltinOperator = 178;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinStablehloFloor: TfLiteBuiltinOperator = 179;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinStablehloLog: TfLiteBuiltinOperator = 180;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinStablehloMinimum: TfLiteBuiltinOperator = 181;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinStablehloNegate: TfLiteBuiltinOperator = 182;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinStablehloOr: TfLiteBuiltinOperator = 183;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinStablehloPower: TfLiteBuiltinOperator = 184;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinStablehloRemainder: TfLiteBuiltinOperator = 185;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinStablehloRsqrt: TfLiteBuiltinOperator = 186;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinStablehloSelect: TfLiteBuiltinOperator = 187;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinStablehloSubtract: TfLiteBuiltinOperator = 188;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinStablehloTanh: TfLiteBuiltinOperator = 189;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinStablehloScatter: TfLiteBuiltinOperator = 190;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinStablehloCompare: TfLiteBuiltinOperator = 191;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinStablehloConvert: TfLiteBuiltinOperator = 192;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinStablehloDynamicSlice: TfLiteBuiltinOperator = 193;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinStablehloDynamicUpdateSlice: TfLiteBuiltinOperator =
    194;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinStablehloPad: TfLiteBuiltinOperator = 195;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinStablehloIota: TfLiteBuiltinOperator = 196;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinStablehloDotGeneral: TfLiteBuiltinOperator = 197;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinStablehloReduceWindow: TfLiteBuiltinOperator = 198;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinStablehloSort: TfLiteBuiltinOperator = 199;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinStablehloWhile: TfLiteBuiltinOperator = 200;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinStablehloGather: TfLiteBuiltinOperator = 201;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinStablehloTranspose: TfLiteBuiltinOperator = 202;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinDilate: TfLiteBuiltinOperator = 203;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinStablehloRngBitGenerator: TfLiteBuiltinOperator = 204;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinReduceWindow: TfLiteBuiltinOperator = 205;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinStablehloComposite: TfLiteBuiltinOperator = 206;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinStablehloShiftLeft: TfLiteBuiltinOperator = 207;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinStablehloCbrt: TfLiteBuiltinOperator = 208;
pub const TfLiteBuiltinOperator_kTfLiteBuiltinStablehloCase: TfLiteBuiltinOperator = 209;
pub type TfLiteBuiltinOperator = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct TfLiteAsyncKernel {
    _unused: [u8; 0],
}
pub const TfLiteType_kTfLiteNoType: TfLiteType = 0;
pub const TfLiteType_kTfLiteFloat32: TfLiteType = 1;
pub const TfLiteType_kTfLiteInt32: TfLiteType = 2;
pub const TfLiteType_kTfLiteUInt8: TfLiteType = 3;
pub const TfLiteType_kTfLiteInt64: TfLiteType = 4;
pub const TfLiteType_kTfLiteString: TfLiteType = 5;
pub const TfLiteType_kTfLiteBool: TfLiteType = 6;
pub const TfLiteType_kTfLiteInt16: TfLiteType = 7;
pub const TfLiteType_kTfLiteComplex64: TfLiteType = 8;
pub const TfLiteType_kTfLiteInt8: TfLiteType = 9;
pub const TfLiteType_kTfLiteFloat16: TfLiteType = 10;
pub const TfLiteType_kTfLiteFloat64: TfLiteType = 11;
pub const TfLiteType_kTfLiteComplex128: TfLiteType = 12;
pub const TfLiteType_kTfLiteUInt64: TfLiteType = 13;
pub const TfLiteType_kTfLiteResource: TfLiteType = 14;
pub const TfLiteType_kTfLiteVariant: TfLiteType = 15;
pub const TfLiteType_kTfLiteUInt32: TfLiteType = 16;
pub const TfLiteType_kTfLiteUInt16: TfLiteType = 17;
pub const TfLiteType_kTfLiteInt4: TfLiteType = 18;
pub const TfLiteType_kTfLiteBFloat16: TfLiteType = 19;
#[doc = " Types supported by tensor"]
pub type TfLiteType = ::std::os::raw::c_uint;
#[doc = " Legacy. Will be deprecated in favor of `TfLiteAffineQuantization`.\n If per-layer quantization is specified this field will still be populated in\n addition to `TfLiteAffineQuantization`.\n Parameters for asymmetric quantization. Quantized values can be converted\n back to float using: `real_value = scale * (quantized_value - zero_point)`"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct TfLiteQuantizationParams {
    pub scale: f32,
    pub zero_point: i32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of TfLiteQuantizationParams"]
        [::std::mem::size_of::<TfLiteQuantizationParams>() - 8usize];
    ["Alignment of TfLiteQuantizationParams"]
        [::std::mem::align_of::<TfLiteQuantizationParams>() - 4usize];
    ["Offset of field: TfLiteQuantizationParams::scale"]
        [::std::mem::offset_of!(TfLiteQuantizationParams, scale) - 0usize];
    ["Offset of field: TfLiteQuantizationParams::zero_point"]
        [::std::mem::offset_of!(TfLiteQuantizationParams, zero_point) - 4usize];
};
pub const TfLiteDimensionType_kTfLiteDimDense: TfLiteDimensionType = 0;
pub const TfLiteDimensionType_kTfLiteDimSparseCSR: TfLiteDimensionType = 1;
#[doc = " Storage format of each dimension in a sparse tensor."]
pub type TfLiteDimensionType = ::std::os::raw::c_uint;
#[doc = " Success"]
pub const TfLiteStatus_kTfLiteOk: TfLiteStatus = 0;
#[doc = " Generally referring to an error in the runtime (i.e. interpreter)"]
pub const TfLiteStatus_kTfLiteError: TfLiteStatus = 1;
#[doc = " Generally referring to an error from a TfLiteDelegate itself."]
pub const TfLiteStatus_kTfLiteDelegateError: TfLiteStatus = 2;
#[doc = " Generally referring to an error in applying a delegate due to\n incompatibility between runtime and delegate, e.g., this error is returned\n when trying to apply a TF Lite delegate onto a model graph that's already\n immutable."]
pub const TfLiteStatus_kTfLiteApplicationError: TfLiteStatus = 3;
#[doc = " Generally referring to serialized delegate data not being found.\n See tflite::delegates::Serialization."]
pub const TfLiteStatus_kTfLiteDelegateDataNotFound: TfLiteStatus = 4;
#[doc = " Generally referring to data-writing issues in delegate serialization.\n See tflite::delegates::Serialization."]
pub const TfLiteStatus_kTfLiteDelegateDataWriteError: TfLiteStatus = 5;
#[doc = " Generally referring to data-reading issues in delegate serialization.\n See tflite::delegates::Serialization."]
pub const TfLiteStatus_kTfLiteDelegateDataReadError: TfLiteStatus = 6;
#[doc = " Generally referring to issues when the TF Lite model has ops that cannot\n be resolved at runtime. This could happen when the specific op is not\n registered or built with the TF Lite framework."]
pub const TfLiteStatus_kTfLiteUnresolvedOps: TfLiteStatus = 7;
#[doc = " Generally referring to invocation cancelled by the user.\n See `interpreter::Cancel`."]
pub const TfLiteStatus_kTfLiteCancelled: TfLiteStatus = 8;
#[doc = " Generally referring to invocation cancelled by the user.\n See `interpreter::Cancel`."]
pub const TfLiteStatus_kTfLiteOutputShapeNotKnown: TfLiteStatus = 9;
#[doc = " Note that new error status values may be added in future in order to\n indicate more fine-grained internal states, therefore, applications should\n not rely on status values being members of the enum."]
pub type TfLiteStatus = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct TfLiteOpaqueContext {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct TfLiteOpaqueNode {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct TfLiteOpaqueTensor {
    _unused: [u8; 0],
}
#[doc = " WARNING: This is an experimental interface that is subject to change."]
pub type TfLiteOpaqueDelegate = TfLiteDelegate;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct TfLiteOperator {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct TfLiteModel {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct TfLiteInterpreterOptions {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct TfLiteInterpreter {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct TfLiteSignatureRunner {
    _unused: [u8; 0],
}
pub const TfLiteExternalContextType_kTfLiteEigenContext: TfLiteExternalContextType = 0;
#[doc = " include eigen_support.h to use."]
pub const TfLiteExternalContextType_kTfLiteGemmLowpContext: TfLiteExternalContextType = 1;
#[doc = " include gemm_support.h to use."]
pub const TfLiteExternalContextType_kTfLiteEdgeTpuContext: TfLiteExternalContextType = 2;
#[doc = " Placeholder for Edge TPU support."]
pub const TfLiteExternalContextType_kTfLiteCpuBackendContext: TfLiteExternalContextType = 3;
#[doc = " include cpu_backend_context.h to use."]
pub const TfLiteExternalContextType_kTfLiteLiteRtBufferContext: TfLiteExternalContextType = 4;
#[doc = " include external_litert_buffer_context.h to use."]
pub const TfLiteExternalContextType_kTfLiteMaxExternalContexts: TfLiteExternalContextType = 5;
#[doc = " The list of external context types known to TF Lite. This list exists solely\n to avoid conflicts and to ensure ops can share the external contexts they\n need. Access to the external contexts is controlled by one of the\n corresponding support files."]
pub type TfLiteExternalContextType = ::std::os::raw::c_uint;
#[doc = " An external context is a collection of information unrelated to the TF Lite\n framework, but useful to a subset of the ops. TF Lite knows very little\n about the actual contexts, but it keeps a list of them, and is able to\n refresh them if configurations like the number of recommended threads\n change."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct TfLiteExternalContext {
    pub type_: TfLiteExternalContextType,
    pub Refresh:
        ::std::option::Option<unsafe extern "C" fn(context: *mut TfLiteContext) -> TfLiteStatus>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of TfLiteExternalContext"][::std::mem::size_of::<TfLiteExternalContext>() - 16usize];
    ["Alignment of TfLiteExternalContext"]
        [::std::mem::align_of::<TfLiteExternalContext>() - 8usize];
    ["Offset of field: TfLiteExternalContext::type_"]
        [::std::mem::offset_of!(TfLiteExternalContext, type_) - 0usize];
    ["Offset of field: TfLiteExternalContext::Refresh"]
        [::std::mem::offset_of!(TfLiteExternalContext, Refresh) - 8usize];
};
#[doc = " Fixed size list of integers. Used for dimensions and inputs/outputs tensor\n indices"]
#[repr(C)]
#[derive(Debug)]
pub struct TfLiteIntArray {
    pub size: ::std::os::raw::c_int,
    pub data: __IncompleteArrayField<::std::os::raw::c_int>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of TfLiteIntArray"][::std::mem::size_of::<TfLiteIntArray>() - 4usize];
    ["Alignment of TfLiteIntArray"][::std::mem::align_of::<TfLiteIntArray>() - 4usize];
    ["Offset of field: TfLiteIntArray::size"]
        [::std::mem::offset_of!(TfLiteIntArray, size) - 0usize];
    ["Offset of field: TfLiteIntArray::data"]
        [::std::mem::offset_of!(TfLiteIntArray, data) - 4usize];
};
#[doc = " Fixed size list of floats. Used for per-channel quantization."]
#[repr(C)]
#[derive(Debug)]
pub struct TfLiteFloatArray {
    pub size: ::std::os::raw::c_int,
    pub data: __IncompleteArrayField<f32>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of TfLiteFloatArray"][::std::mem::size_of::<TfLiteFloatArray>() - 4usize];
    ["Alignment of TfLiteFloatArray"][::std::mem::align_of::<TfLiteFloatArray>() - 4usize];
    ["Offset of field: TfLiteFloatArray::size"]
        [::std::mem::offset_of!(TfLiteFloatArray, size) - 0usize];
    ["Offset of field: TfLiteFloatArray::data"]
        [::std::mem::offset_of!(TfLiteFloatArray, data) - 4usize];
};
#[doc = " Single-precision complex data type compatible with the C99 definition."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct TfLiteComplex64 {
    pub re: f32,
    pub im: f32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of TfLiteComplex64"][::std::mem::size_of::<TfLiteComplex64>() - 8usize];
    ["Alignment of TfLiteComplex64"][::std::mem::align_of::<TfLiteComplex64>() - 4usize];
    ["Offset of field: TfLiteComplex64::re"][::std::mem::offset_of!(TfLiteComplex64, re) - 0usize];
    ["Offset of field: TfLiteComplex64::im"][::std::mem::offset_of!(TfLiteComplex64, im) - 4usize];
};
#[doc = " Double-precision complex data type compatible with the C99 definition."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct TfLiteComplex128 {
    pub re: f64,
    pub im: f64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of TfLiteComplex128"][::std::mem::size_of::<TfLiteComplex128>() - 16usize];
    ["Alignment of TfLiteComplex128"][::std::mem::align_of::<TfLiteComplex128>() - 8usize];
    ["Offset of field: TfLiteComplex128::re"]
        [::std::mem::offset_of!(TfLiteComplex128, re) - 0usize];
    ["Offset of field: TfLiteComplex128::im"]
        [::std::mem::offset_of!(TfLiteComplex128, im) - 8usize];
};
#[doc = " Half precision data type compatible with the C99 definition."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct TfLiteFloat16 {
    pub data: u16,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of TfLiteFloat16"][::std::mem::size_of::<TfLiteFloat16>() - 2usize];
    ["Alignment of TfLiteFloat16"][::std::mem::align_of::<TfLiteFloat16>() - 2usize];
    ["Offset of field: TfLiteFloat16::data"][::std::mem::offset_of!(TfLiteFloat16, data) - 0usize];
};
#[doc = " bfloat16 data type compatible with the Google Brain definition.\n https://cloud.google.com/tpu/docs/bfloat16.\n This provides 1 bit of sign, 8 bits of exponent, and 7 bits of mantissa."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct TfLiteBFloat16 {
    pub data: u16,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of TfLiteBFloat16"][::std::mem::size_of::<TfLiteBFloat16>() - 2usize];
    ["Alignment of TfLiteBFloat16"][::std::mem::align_of::<TfLiteBFloat16>() - 2usize];
    ["Offset of field: TfLiteBFloat16::data"]
        [::std::mem::offset_of!(TfLiteBFloat16, data) - 0usize];
};
#[doc = " No quantization."]
pub const TfLiteQuantizationType_kTfLiteNoQuantization: TfLiteQuantizationType = 0;
#[doc = " Affine quantization (with support for per-channel quantization).\n Corresponds to TfLiteAffineQuantization."]
pub const TfLiteQuantizationType_kTfLiteAffineQuantization: TfLiteQuantizationType = 1;
#[doc = " SupportedQuantizationTypes."]
pub type TfLiteQuantizationType = ::std::os::raw::c_int;
#[doc = " Structure specifying the quantization used by the tensor, if-any."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct TfLiteQuantization {
    #[doc = " The type of quantization held by params."]
    pub type_: TfLiteQuantizationType,
    #[doc = " Holds an optional reference to a quantization param structure. The actual\n type depends on the value of the `type` field (see the comment there for\n the values and corresponding types)."]
    pub params: *mut ::std::os::raw::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of TfLiteQuantization"][::std::mem::size_of::<TfLiteQuantization>() - 16usize];
    ["Alignment of TfLiteQuantization"][::std::mem::align_of::<TfLiteQuantization>() - 8usize];
    ["Offset of field: TfLiteQuantization::type_"]
        [::std::mem::offset_of!(TfLiteQuantization, type_) - 0usize];
    ["Offset of field: TfLiteQuantization::params"]
        [::std::mem::offset_of!(TfLiteQuantization, params) - 8usize];
};
#[doc = " A union of pointers that points to memory for a given tensor.\n\n Do not access these members directly, if possible, use\n `GetTensorData<TYPE>(tensor)` instead, otherwise only access `.data`, as\n other members are deprecated."]
#[repr(C)]
#[derive(Copy, Clone)]
pub union TfLitePtrUnion {
    pub i32_: *mut i32,
    pub u32_: *mut u32,
    pub i64_: *mut i64,
    pub u64_: *mut u64,
    pub f: *mut f32,
    pub f16: *mut TfLiteFloat16,
    pub bf16: *mut TfLiteBFloat16,
    pub f64_: *mut f64,
    pub raw: *mut ::std::os::raw::c_char,
    pub raw_const: *const ::std::os::raw::c_char,
    pub uint8: *mut u8,
    pub b: *mut bool,
    pub i16_: *mut i16,
    pub ui16: *mut u16,
    pub c64: *mut TfLiteComplex64,
    pub c128: *mut TfLiteComplex128,
    pub int8: *mut i8,
    #[doc = " Only use this member."]
    pub data: *mut ::std::os::raw::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of TfLitePtrUnion"][::std::mem::size_of::<TfLitePtrUnion>() - 8usize];
    ["Alignment of TfLitePtrUnion"][::std::mem::align_of::<TfLitePtrUnion>() - 8usize];
    ["Offset of field: TfLitePtrUnion::i32_"]
        [::std::mem::offset_of!(TfLitePtrUnion, i32_) - 0usize];
    ["Offset of field: TfLitePtrUnion::u32_"]
        [::std::mem::offset_of!(TfLitePtrUnion, u32_) - 0usize];
    ["Offset of field: TfLitePtrUnion::i64_"]
        [::std::mem::offset_of!(TfLitePtrUnion, i64_) - 0usize];
    ["Offset of field: TfLitePtrUnion::u64_"]
        [::std::mem::offset_of!(TfLitePtrUnion, u64_) - 0usize];
    ["Offset of field: TfLitePtrUnion::f"][::std::mem::offset_of!(TfLitePtrUnion, f) - 0usize];
    ["Offset of field: TfLitePtrUnion::f16"][::std::mem::offset_of!(TfLitePtrUnion, f16) - 0usize];
    ["Offset of field: TfLitePtrUnion::bf16"]
        [::std::mem::offset_of!(TfLitePtrUnion, bf16) - 0usize];
    ["Offset of field: TfLitePtrUnion::f64_"]
        [::std::mem::offset_of!(TfLitePtrUnion, f64_) - 0usize];
    ["Offset of field: TfLitePtrUnion::raw"][::std::mem::offset_of!(TfLitePtrUnion, raw) - 0usize];
    ["Offset of field: TfLitePtrUnion::raw_const"]
        [::std::mem::offset_of!(TfLitePtrUnion, raw_const) - 0usize];
    ["Offset of field: TfLitePtrUnion::uint8"]
        [::std::mem::offset_of!(TfLitePtrUnion, uint8) - 0usize];
    ["Offset of field: TfLitePtrUnion::b"][::std::mem::offset_of!(TfLitePtrUnion, b) - 0usize];
    ["Offset of field: TfLitePtrUnion::i16_"]
        [::std::mem::offset_of!(TfLitePtrUnion, i16_) - 0usize];
    ["Offset of field: TfLitePtrUnion::ui16"]
        [::std::mem::offset_of!(TfLitePtrUnion, ui16) - 0usize];
    ["Offset of field: TfLitePtrUnion::c64"][::std::mem::offset_of!(TfLitePtrUnion, c64) - 0usize];
    ["Offset of field: TfLitePtrUnion::c128"]
        [::std::mem::offset_of!(TfLitePtrUnion, c128) - 0usize];
    ["Offset of field: TfLitePtrUnion::int8"]
        [::std::mem::offset_of!(TfLitePtrUnion, int8) - 0usize];
    ["Offset of field: TfLitePtrUnion::data"]
        [::std::mem::offset_of!(TfLitePtrUnion, data) - 0usize];
};
pub const TfLiteAllocationType_kTfLiteMemNone: TfLiteAllocationType = 0;
pub const TfLiteAllocationType_kTfLiteMmapRo: TfLiteAllocationType = 1;
pub const TfLiteAllocationType_kTfLiteArenaRw: TfLiteAllocationType = 2;
pub const TfLiteAllocationType_kTfLiteArenaRwPersistent: TfLiteAllocationType = 3;
pub const TfLiteAllocationType_kTfLiteDynamic: TfLiteAllocationType = 4;
pub const TfLiteAllocationType_kTfLitePersistentRo: TfLiteAllocationType = 5;
pub const TfLiteAllocationType_kTfLiteCustom: TfLiteAllocationType = 6;
pub const TfLiteAllocationType_kTfLiteVariantObject: TfLiteAllocationType = 7;
#[doc = " Memory allocation strategies.\n  * `kTfLiteMmapRo`: Read-only memory-mapped data, or data externally\n        allocated.\n  * `kTfLiteArenaRw`: Arena allocated with no guarantees about persistence,\n        and available during eval.\n  * `kTfLiteArenaRwPersistent`: Arena allocated but persistent across eval,\n  and only available during eval.\n  * `kTfLiteDynamic`: Allocated during eval, or for string tensors.\n  * `kTfLitePersistentRo`: Allocated and populated during prepare. This is\n        useful for tensors that can be computed during prepare and treated\n        as constant inputs for downstream ops (also in prepare).\n  * `kTfLiteCustom`: Custom memory allocation provided by the user. See\n        TfLiteCustomAllocation below.\n  * `kTfLiteVariantObject`: Allocation is an arbitrary type-erased C++\n  object.\n        Allocation and deallocation are done through `new` and `delete`."]
pub type TfLiteAllocationType = ::std::os::raw::c_uint;
pub const TfLiteAllocationStrategy_kTfLiteAllocationStrategyUnknown: TfLiteAllocationStrategy = 0;
pub const TfLiteAllocationStrategy_kTfLiteAllocationStrategyNone: TfLiteAllocationStrategy = 1;
#[doc = " No data is allocated."]
pub const TfLiteAllocationStrategy_kTfLiteAllocationStrategyMMap: TfLiteAllocationStrategy = 2;
#[doc = " Data is mmaped."]
pub const TfLiteAllocationStrategy_kTfLiteAllocationStrategyArena: TfLiteAllocationStrategy = 3;
#[doc = " Handled by the arena."]
pub const TfLiteAllocationStrategy_kTfLiteAllocationStrategyMalloc: TfLiteAllocationStrategy = 4;
#[doc = " Uses `malloc`/`free`."]
pub const TfLiteAllocationStrategy_kTfLiteAllocationStrategyNew: TfLiteAllocationStrategy = 5;
#[doc = " Memory allocation strategies.\n\n TfLiteAllocationType values have been overloaded to mean more than their\n original intent. This enum should only be used to document the allocation\n strategy used by a tensor for it data."]
pub type TfLiteAllocationStrategy = ::std::os::raw::c_uint;
pub const TfLiteRunStability_kTfLiteRunStabilityUnknown: TfLiteRunStability = 0;
pub const TfLiteRunStability_kTfLiteRunStabilityUnstable: TfLiteRunStability = 1;
#[doc = " May change at any time."]
pub const TfLiteRunStability_kTfLiteRunStabilitySingleRun: TfLiteRunStability = 2;
#[doc = " Will stay the same for one run."]
pub const TfLiteRunStability_kTfLiteRunStabilityAcrossRuns: TfLiteRunStability = 3;
#[doc = " Describes how stable a tensor attribute is with regards to an interpreter\n runs."]
pub type TfLiteRunStability = ::std::os::raw::c_uint;
pub const TfLiteRunStep_kTfLiteRunStepUnknown: TfLiteRunStep = 0;
pub const TfLiteRunStep_kTfLiteRunStepInit: TfLiteRunStep = 1;
pub const TfLiteRunStep_kTfLiteRunStepPrepare: TfLiteRunStep = 2;
pub const TfLiteRunStep_kTfLiteRunStepEval: TfLiteRunStep = 3;
#[doc = " Describes the steps of a TFLite operation life cycle."]
pub type TfLiteRunStep = ::std::os::raw::c_uint;
#[doc = " The delegates should use zero or positive integers to represent handles.\n -1 is reserved from unallocated status."]
pub type TfLiteBufferHandle = ::std::os::raw::c_int;
#[doc = " Metadata to encode each dimension in a sparse tensor."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct TfLiteDimensionMetadata {
    pub format: TfLiteDimensionType,
    pub dense_size: ::std::os::raw::c_int,
    pub array_segments: *mut TfLiteIntArray,
    pub array_indices: *mut TfLiteIntArray,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of TfLiteDimensionMetadata"][::std::mem::size_of::<TfLiteDimensionMetadata>() - 24usize];
    ["Alignment of TfLiteDimensionMetadata"]
        [::std::mem::align_of::<TfLiteDimensionMetadata>() - 8usize];
    ["Offset of field: TfLiteDimensionMetadata::format"]
        [::std::mem::offset_of!(TfLiteDimensionMetadata, format) - 0usize];
    ["Offset of field: TfLiteDimensionMetadata::dense_size"]
        [::std::mem::offset_of!(TfLiteDimensionMetadata, dense_size) - 4usize];
    ["Offset of field: TfLiteDimensionMetadata::array_segments"]
        [::std::mem::offset_of!(TfLiteDimensionMetadata, array_segments) - 8usize];
    ["Offset of field: TfLiteDimensionMetadata::array_indices"]
        [::std::mem::offset_of!(TfLiteDimensionMetadata, array_indices) - 16usize];
};
#[doc = " Parameters used to encode a sparse tensor. For detailed explanation of each\n field please refer to lite/schema/schema.fbs."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct TfLiteSparsity {
    pub traversal_order: *mut TfLiteIntArray,
    pub block_map: *mut TfLiteIntArray,
    pub dim_metadata: *mut TfLiteDimensionMetadata,
    pub dim_metadata_size: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of TfLiteSparsity"][::std::mem::size_of::<TfLiteSparsity>() - 32usize];
    ["Alignment of TfLiteSparsity"][::std::mem::align_of::<TfLiteSparsity>() - 8usize];
    ["Offset of field: TfLiteSparsity::traversal_order"]
        [::std::mem::offset_of!(TfLiteSparsity, traversal_order) - 0usize];
    ["Offset of field: TfLiteSparsity::block_map"]
        [::std::mem::offset_of!(TfLiteSparsity, block_map) - 8usize];
    ["Offset of field: TfLiteSparsity::dim_metadata"]
        [::std::mem::offset_of!(TfLiteSparsity, dim_metadata) - 16usize];
    ["Offset of field: TfLiteSparsity::dim_metadata_size"]
        [::std::mem::offset_of!(TfLiteSparsity, dim_metadata_size) - 24usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct TfLiteTensor {
    #[doc = " The data type specification for data stored in `data`. This affects\n what member of `data` union should be used."]
    pub type_: TfLiteType,
    #[doc = " A union of data pointers. The appropriate type should be used for a typed\n tensor based on `type`."]
    pub data: TfLitePtrUnion,
    #[doc = " A pointer to a structure representing the dimensionality interpretation\n that the buffer should have. NOTE: the product of elements of `dims`\n and the element datatype size should be equal to `bytes` below."]
    pub dims: *mut TfLiteIntArray,
    #[doc = " Quantization information."]
    pub params: TfLiteQuantizationParams,
    #[doc = " How memory is mapped\n  kTfLiteMmapRo: Memory mapped read only.\n  i.e. weights\n  kTfLiteArenaRw: Arena allocated read write memory\n  (i.e. temporaries, outputs)."]
    pub allocation_type: TfLiteAllocationType,
    #[doc = " The number of bytes required to store the data of this Tensor. I.e.\n (bytes of each element) * dims[0] * ... * dims[n-1].  For example, if\n type is kTfLiteFloat32 and dims = {3, 2} then\n bytes = sizeof(float) * 3 * 2 = 4 * 3 * 2 = 24."]
    pub bytes: usize,
    #[doc = " An opaque pointer to a tflite::MMapAllocation"]
    pub allocation: *const ::std::os::raw::c_void,
    #[doc = " Null-terminated name of this tensor."]
    pub name: *const ::std::os::raw::c_char,
    #[doc = " The delegate which knows how to handle `buffer_handle`.\n\n WARNING: This is an experimental interface that is subject to change."]
    pub delegate: *mut TfLiteDelegate,
    #[doc = " An integer buffer handle that can be handled by `delegate`.\n The value is valid only when delegate is not null.\n\n WARNING: This is an experimental interface that is subject to change."]
    pub buffer_handle: TfLiteBufferHandle,
    #[doc = " If the delegate uses its own buffer (e.g. GPU memory), the delegate is\n responsible to set data_is_stale to true.\n `delegate->CopyFromBufferHandle` can be called to copy the data from\n delegate buffer.\n\n WARNING: This is an experimental interface that is subject to change."]
    pub data_is_stale: bool,
    #[doc = " True if the tensor is a variable."]
    pub is_variable: bool,
    #[doc = " Quantization information. Replaces params field above."]
    pub quantization: TfLiteQuantization,
    #[doc = " Parameters used to encode a sparse tensor.\n This is optional. The field is NULL if a tensor is dense.\n\n WARNING: This is an experimental interface that is subject to change."]
    pub sparsity: *mut TfLiteSparsity,
    #[doc = " Optional. Encodes shapes with unknown dimensions with -1. This field is\n only populated when unknown dimensions exist in a read-write tensor (i.e.\n an input or output tensor). (e.g.  `dims` contains [1, 1, 1, 3] and\n `dims_signature` contains [1, -1, -1, 3]).  If no unknown dimensions exist\n then `dims_signature` is either null, or set to an empty array.  Note that\n this field only exists when TF_LITE_STATIC_MEMORY is not defined."]
    pub dims_signature: *const TfLiteIntArray,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of TfLiteTensor"][::std::mem::size_of::<TfLiteTensor>() - 112usize];
    ["Alignment of TfLiteTensor"][::std::mem::align_of::<TfLiteTensor>() - 8usize];
    ["Offset of field: TfLiteTensor::type_"][::std::mem::offset_of!(TfLiteTensor, type_) - 0usize];
    ["Offset of field: TfLiteTensor::data"][::std::mem::offset_of!(TfLiteTensor, data) - 8usize];
    ["Offset of field: TfLiteTensor::dims"][::std::mem::offset_of!(TfLiteTensor, dims) - 16usize];
    ["Offset of field: TfLiteTensor::params"]
        [::std::mem::offset_of!(TfLiteTensor, params) - 24usize];
    ["Offset of field: TfLiteTensor::allocation_type"]
        [::std::mem::offset_of!(TfLiteTensor, allocation_type) - 32usize];
    ["Offset of field: TfLiteTensor::bytes"][::std::mem::offset_of!(TfLiteTensor, bytes) - 40usize];
    ["Offset of field: TfLiteTensor::allocation"]
        [::std::mem::offset_of!(TfLiteTensor, allocation) - 48usize];
    ["Offset of field: TfLiteTensor::name"][::std::mem::offset_of!(TfLiteTensor, name) - 56usize];
    ["Offset of field: TfLiteTensor::delegate"]
        [::std::mem::offset_of!(TfLiteTensor, delegate) - 64usize];
    ["Offset of field: TfLiteTensor::buffer_handle"]
        [::std::mem::offset_of!(TfLiteTensor, buffer_handle) - 72usize];
    ["Offset of field: TfLiteTensor::data_is_stale"]
        [::std::mem::offset_of!(TfLiteTensor, data_is_stale) - 76usize];
    ["Offset of field: TfLiteTensor::is_variable"]
        [::std::mem::offset_of!(TfLiteTensor, is_variable) - 77usize];
    ["Offset of field: TfLiteTensor::quantization"]
        [::std::mem::offset_of!(TfLiteTensor, quantization) - 80usize];
    ["Offset of field: TfLiteTensor::sparsity"]
        [::std::mem::offset_of!(TfLiteTensor, sparsity) - 96usize];
    ["Offset of field: TfLiteTensor::dims_signature"]
        [::std::mem::offset_of!(TfLiteTensor, dims_signature) - 104usize];
};
#[doc = " A structure representing an instance of a node.\n This structure only exhibits the inputs, outputs, user defined data and some\n node properties (like statefulness), not other features like the type."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct TfLiteNode {
    #[doc = " Inputs to this node expressed as indices into the simulator's tensors."]
    pub inputs: *mut TfLiteIntArray,
    #[doc = " Outputs to this node expressed as indices into the simulator's tensors."]
    pub outputs: *mut TfLiteIntArray,
    #[doc = " intermediate tensors to this node expressed as indices into the\n simulator's tensors."]
    pub intermediates: *mut TfLiteIntArray,
    #[doc = " Temporary tensors uses during the computations. This usually contains no\n tensors, but ops are allowed to change that if they need scratch space of\n any sort."]
    pub temporaries: *mut TfLiteIntArray,
    #[doc = " Opaque data provided by the node implementer through `Registration.init`."]
    pub user_data: *mut ::std::os::raw::c_void,
    #[doc = " Opaque data provided to the node if the node is a builtin. This is usually\n a structure defined in builtin_op_data.h"]
    pub builtin_data: *mut ::std::os::raw::c_void,
    #[doc = " Custom initial data. This is the opaque data provided in the flatbuffer.\n\n WARNING: This is an experimental interface that is subject to change."]
    pub custom_initial_data: *const ::std::os::raw::c_void,
    pub custom_initial_data_size: ::std::os::raw::c_int,
    #[doc = " The pointer to the delegate. This is non-null only when the node is\n created by calling `interpreter.ModifyGraphWithDelegate`.\n\n WARNING: This is an experimental interface that is subject to change."]
    pub delegate: *mut TfLiteDelegate,
    #[doc = " Whether this op might have side effect (e.g. stateful op)."]
    pub might_have_side_effect: bool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of TfLiteNode"][::std::mem::size_of::<TfLiteNode>() - 80usize];
    ["Alignment of TfLiteNode"][::std::mem::align_of::<TfLiteNode>() - 8usize];
    ["Offset of field: TfLiteNode::inputs"][::std::mem::offset_of!(TfLiteNode, inputs) - 0usize];
    ["Offset of field: TfLiteNode::outputs"][::std::mem::offset_of!(TfLiteNode, outputs) - 8usize];
    ["Offset of field: TfLiteNode::intermediates"]
        [::std::mem::offset_of!(TfLiteNode, intermediates) - 16usize];
    ["Offset of field: TfLiteNode::temporaries"]
        [::std::mem::offset_of!(TfLiteNode, temporaries) - 24usize];
    ["Offset of field: TfLiteNode::user_data"]
        [::std::mem::offset_of!(TfLiteNode, user_data) - 32usize];
    ["Offset of field: TfLiteNode::builtin_data"]
        [::std::mem::offset_of!(TfLiteNode, builtin_data) - 40usize];
    ["Offset of field: TfLiteNode::custom_initial_data"]
        [::std::mem::offset_of!(TfLiteNode, custom_initial_data) - 48usize];
    ["Offset of field: TfLiteNode::custom_initial_data_size"]
        [::std::mem::offset_of!(TfLiteNode, custom_initial_data_size) - 56usize];
    ["Offset of field: TfLiteNode::delegate"]
        [::std::mem::offset_of!(TfLiteNode, delegate) - 64usize];
    ["Offset of field: TfLiteNode::might_have_side_effect"]
        [::std::mem::offset_of!(TfLiteNode, might_have_side_effect) - 72usize];
};
#[doc = " Light-weight tensor struct for TF Micro runtime. Provides the minimal amount\n of information required for a kernel to run during TfLiteRegistration::Eval."]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct TfLiteEvalTensor {
    #[doc = " A union of data pointers. The appropriate type should be used for a typed\n tensor based on `type`."]
    pub data: TfLitePtrUnion,
    #[doc = " A pointer to a structure representing the dimensionality interpretation\n that the buffer should have."]
    pub dims: *mut TfLiteIntArray,
    #[doc = " The data type specification for data stored in `data`. This affects\n what member of `data` union should be used."]
    pub type_: TfLiteType,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of TfLiteEvalTensor"][::std::mem::size_of::<TfLiteEvalTensor>() - 24usize];
    ["Alignment of TfLiteEvalTensor"][::std::mem::align_of::<TfLiteEvalTensor>() - 8usize];
    ["Offset of field: TfLiteEvalTensor::data"]
        [::std::mem::offset_of!(TfLiteEvalTensor, data) - 0usize];
    ["Offset of field: TfLiteEvalTensor::dims"]
        [::std::mem::offset_of!(TfLiteEvalTensor, dims) - 8usize];
    ["Offset of field: TfLiteEvalTensor::type_"]
        [::std::mem::offset_of!(TfLiteEvalTensor, type_) - 16usize];
};
#[doc = " WARNING: This is an experimental interface that is subject to change.\n\n Currently, TfLiteDelegateParams has to be allocated in a way that it's\n trivially destructable. It will be stored as `builtin_data` field in\n `TfLiteNode` of the delegate node.\n\n See also the `CreateDelegateParams` function in `interpreter.cc` details."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct TfLiteDelegateParams {
    pub delegate: *mut TfLiteDelegate,
    pub nodes_to_replace: *mut TfLiteIntArray,
    pub input_tensors: *mut TfLiteIntArray,
    pub output_tensors: *mut TfLiteIntArray,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of TfLiteDelegateParams"][::std::mem::size_of::<TfLiteDelegateParams>() - 32usize];
    ["Alignment of TfLiteDelegateParams"][::std::mem::align_of::<TfLiteDelegateParams>() - 8usize];
    ["Offset of field: TfLiteDelegateParams::delegate"]
        [::std::mem::offset_of!(TfLiteDelegateParams, delegate) - 0usize];
    ["Offset of field: TfLiteDelegateParams::nodes_to_replace"]
        [::std::mem::offset_of!(TfLiteDelegateParams, nodes_to_replace) - 8usize];
    ["Offset of field: TfLiteDelegateParams::input_tensors"]
        [::std::mem::offset_of!(TfLiteDelegateParams, input_tensors) - 16usize];
    ["Offset of field: TfLiteDelegateParams::output_tensors"]
        [::std::mem::offset_of!(TfLiteDelegateParams, output_tensors) - 24usize];
};
#[doc = " `TfLiteContext` allows an op to access the tensors.\n\n `TfLiteContext` is a struct that is created by the TF Lite runtime\n and passed to the \"methods\" (C function pointers) in the\n `TfLiteRegistration` struct that are used to define custom ops and custom\n delegate kernels. It contains information and methods (C function pointers)\n that can be called by the code implementing a custom op or a custom delegate\n kernel. These methods provide access to the context in which that custom op\n or custom delegate kernel occurs, such as access to the input and output\n tensors for that op, as well as methods for allocating memory buffers\n and intermediate tensors, etc.\n\n See also `TfLiteOpaqueContext`, which is an more ABI-stable equivalent."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct TfLiteContext {
    #[doc = " Number of tensors in the context."]
    pub tensors_size: usize,
    #[doc = " The execution plan contains a list of the node indices in execution\n order. execution_plan->size is the current number of nodes. And,\n execution_plan->data[0] is the first node that needs to be run.\n TfLiteDelegates can traverse the current execution plan by iterating\n through each member of this array and using GetNodeAndRegistration() to\n access details about a node. i.e.\n\n```text\n     TfLiteIntArray* execution_plan;\n     TF_LITE_ENSURE_STATUS(context->GetExecutionPlan(context,\n                                                     &execution_plan));\n     for (int exec_index = 0; exec_index < execution_plan->size;\n           exec_index++) {\n        int node_index = execution_plan->data[exec_index];\n        TfLiteNode* node;\n        TfLiteRegistration* reg;\n        context->GetNodeAndRegistration(context, node_index, &node, &reg);\n     }\n```\n\n Note: the memory pointed by '`*execution_plan` is OWNED by TfLite runtime.\n Future calls to GetExecutionPlan invalidates earlier outputs. The\n following code snippet shows the issue of such an invocation pattern.\n After calling CheckNode, subsequent access to `plan_1st` is undefined.\n\n```text\n     void CheckNode(const TfLiteNode* node) {\n       ...\n       TfLiteIntArray* plan_2nd;\n       TF_LITE_ENSURE_STATUS(\n           context->GetExecutionPlan(context, &plan_2nd)\n       );\n       ...\n     }\n\n     TfLiteIntArray* plan_1st;\n     TF_LITE_ENSURE_STATUS(context->GetExecutionPlan(context, &plan_1st));\n     for (int exec_index = 0; exec_index < plan_1st->size; exec_index++) {\n        int node_index = plan_1st->data[exec_index];\n        TfLiteNode* node;\n        TfLiteRegistration* reg;\n        context->GetNodeAndRegistration(context, node_index, &node, &reg);\n        CheckNode(node);\n     }\n```\n\n WARNING: This is an experimental interface that is subject to change."]
    pub GetExecutionPlan: ::std::option::Option<
        unsafe extern "C" fn(
            context: *mut TfLiteContext,
            execution_plan: *mut *mut TfLiteIntArray,
        ) -> TfLiteStatus,
    >,
    #[doc = " An array of tensors in the interpreter context (of length `tensors_size`)"]
    pub tensors: *mut TfLiteTensor,
    #[doc = " opaque full context ptr (an opaque c++ data structure)"]
    pub impl_: *mut ::std::os::raw::c_void,
    #[doc = " Request memory pointer be resized. Updates dimensions on the tensor.\n NOTE: ResizeTensor takes ownership of newSize."]
    pub ResizeTensor: ::std::option::Option<
        unsafe extern "C" fn(
            arg1: *mut TfLiteContext,
            tensor: *mut TfLiteTensor,
            new_size: *mut TfLiteIntArray,
        ) -> TfLiteStatus,
    >,
    #[doc = " Request that an error be reported with format string msg."]
    pub ReportError: ::std::option::Option<
        unsafe extern "C" fn(arg1: *mut TfLiteContext, msg: *const ::std::os::raw::c_char, ...),
    >,
    #[doc = " Add `tensors_to_add` tensors, preserving pre-existing Tensor entries.  If\n non-null, the value pointed to by `first_new_tensor_index` will be set to\n the index of the first new tensor."]
    pub AddTensors: ::std::option::Option<
        unsafe extern "C" fn(
            arg1: *mut TfLiteContext,
            tensors_to_add: ::std::os::raw::c_int,
            first_new_tensor_index: *mut ::std::os::raw::c_int,
        ) -> TfLiteStatus,
    >,
    #[doc = " Get a Tensor node by node_index.\n\n WARNING: This is an experimental interface that is subject to change."]
    pub GetNodeAndRegistration: ::std::option::Option<
        unsafe extern "C" fn(
            arg1: *mut TfLiteContext,
            node_index: ::std::os::raw::c_int,
            node: *mut *mut TfLiteNode,
            registration: *mut *mut TfLiteRegistration,
        ) -> TfLiteStatus,
    >,
    #[doc = " Replace ops with one or more stub delegate operations. This function\n does not take ownership of `nodes_to_replace`."]
    pub ReplaceNodeSubsetsWithDelegateKernels: ::std::option::Option<
        unsafe extern "C" fn(
            arg1: *mut TfLiteContext,
            registration: TfLiteRegistration,
            nodes_to_replace: *const TfLiteIntArray,
            delegate: *mut TfLiteDelegate,
        ) -> TfLiteStatus,
    >,
    #[doc = " Number of threads that are recommended to subsystems like gemmlowp and\n eigen."]
    pub recommended_num_threads: ::std::os::raw::c_int,
    #[doc = " Access external contexts by type.\n\n WARNING: This is an experimental interface that is subject to change."]
    pub GetExternalContext: ::std::option::Option<
        unsafe extern "C" fn(
            arg1: *mut TfLiteContext,
            arg2: TfLiteExternalContextType,
        ) -> *mut TfLiteExternalContext,
    >,
    #[doc = " Set the value of a external context. Does not take ownership of the\n pointer.\n\n WARNING: This is an experimental interface that is subject to change."]
    pub SetExternalContext: ::std::option::Option<
        unsafe extern "C" fn(
            arg1: *mut TfLiteContext,
            arg2: TfLiteExternalContextType,
            arg3: *mut TfLiteExternalContext,
        ),
    >,
    #[doc = " Flag for allowing float16 precision for FP32 calculation.\n default: false.\n\n WARNING: This is an experimental API and subject to change."]
    pub allow_fp32_relax_to_fp16: bool,
    #[doc = " Pointer to the op-level profiler, if set; nullptr otherwise."]
    pub profiler: *mut ::std::os::raw::c_void,
    #[doc = " Allocate persistent buffer which has the same life time as the\n interpreter. Returns `nullptr` on failure. The memory is allocated from\n heap for TFL, and from tail in TFLM. This method is only available in\n `Init` or `Prepare` stage.\n\n WARNING: This is an experimental interface that is subject\n to change."]
    pub AllocatePersistentBuffer: ::std::option::Option<
        unsafe extern "C" fn(ctx: *mut TfLiteContext, bytes: usize) -> *mut ::std::os::raw::c_void,
    >,
    #[doc = " Allocate a buffer which will be deallocated right after invoke phase.\n The memory is allocated from heap in TFL, and from volatile arena in TFLM.\n This method is only available in invoke stage.\n\n NOTE: If possible use `RequestScratchBufferInArena` method to avoid memory\n allocation during inference time.\n\n WARNING: This is an experimental interface that is subject to change."]
    pub AllocateBufferForEval: ::std::option::Option<
        unsafe extern "C" fn(
            ctx: *mut TfLiteContext,
            bytes: usize,
            ptr: *mut *mut ::std::os::raw::c_void,
        ) -> TfLiteStatus,
    >,
    #[doc = " Request a scratch buffer in the arena through static memory planning.\n This method is only available in `Prepare` stage and the buffer is\n allocated by the interpreter between Prepare and Eval stage. In `Eval`\n stage, `GetScratchBuffer` API can be used to fetch the address.\n\n WARNING: This is an experimental interface that is subject to change."]
    pub RequestScratchBufferInArena: ::std::option::Option<
        unsafe extern "C" fn(
            ctx: *mut TfLiteContext,
            bytes: usize,
            buffer_idx: *mut ::std::os::raw::c_int,
        ) -> TfLiteStatus,
    >,
    #[doc = " Get the scratch buffer pointer.\n This method is only available in Eval stage.\n\n WARNING: This is an experimental interface that is subject to change."]
    pub GetScratchBuffer: ::std::option::Option<
        unsafe extern "C" fn(
            ctx: *mut TfLiteContext,
            buffer_idx: ::std::os::raw::c_int,
        ) -> *mut ::std::os::raw::c_void,
    >,
    #[doc = " Resize the memory pointer of the `tensor`. This method behaves the same as\n `ResizeTensor`, except that it makes a copy of the shape array internally\n so the shape array could be deallocated right afterwards.\n\n WARNING: This is an experimental interface that is subject to change."]
    pub ResizeTensorExplicit: ::std::option::Option<
        unsafe extern "C" fn(
            ctx: *mut TfLiteContext,
            tensor: *mut TfLiteTensor,
            dims: ::std::os::raw::c_int,
            shape: *const ::std::os::raw::c_int,
        ) -> TfLiteStatus,
    >,
    #[doc = " This method provides a preview of post-delegation partitioning. Each\n TfLiteDelegateParams in the referenced array corresponds to one instance\n of the delegate kernel. Example usage:\n\n```text\n     TfLiteIntArray* nodes_to_replace = ...;\n     TfLiteDelegateParams* params_array;\n     int num_partitions = 0;\n     TF_LITE_ENSURE_STATUS(context->PreviewDelegatePartitioning(\n        context, delegate, nodes_to_replace, &params_array,\n        &num_partitions));\n     for (int idx = 0; idx < num_partitions; idx++) {\n        const auto& partition_params = params_array[idx];\n        ...\n     }\n```\n\n NOTE: The context owns the memory referenced by partition_params_array. It\n will be cleared with another call to PreviewDelegatePartitioning, or after\n TfLiteDelegateParams::Prepare returns.\n\n WARNING: This is an experimental interface that is subject to change."]
    pub PreviewDelegatePartitioning: ::std::option::Option<
        unsafe extern "C" fn(
            context: *mut TfLiteContext,
            nodes_to_replace: *const TfLiteIntArray,
            partition_params_array: *mut *mut TfLiteDelegateParams,
            num_partitions: *mut ::std::os::raw::c_int,
        ) -> TfLiteStatus,
    >,
    #[doc = " Returns a TfLiteTensor struct for a given index.\n\n WARNING: This is an experimental interface that is subject to change.\n\n WARNING: This method may not be available on all platforms."]
    pub GetTensor: ::std::option::Option<
        unsafe extern "C" fn(
            context: *const TfLiteContext,
            tensor_idx: ::std::os::raw::c_int,
        ) -> *mut TfLiteTensor,
    >,
    #[doc = " Returns a TfLiteEvalTensor struct for a given index.\n\n WARNING: This is an experimental interface that is subject to change.\n\n WARNING: This method may not be available on all platforms."]
    pub GetEvalTensor: ::std::option::Option<
        unsafe extern "C" fn(
            context: *const TfLiteContext,
            tensor_idx: ::std::os::raw::c_int,
        ) -> *mut TfLiteEvalTensor,
    >,
    #[doc = " Retrieves named metadata buffer from the TFLite model.\n Returns kTfLiteOk if metadata is successfully obtained from the flatbuffer\n Model: that is, there exists a `metadata` entry with given `name` string.\n (see TFLite's schema.fbs).\n The corresponding `buffer` information is populated in `ptr` & `bytes`.\n The data from `ptr` is valid for the lifetime of the Interpreter.\n\n WARNING: This is an experimental interface that is subject to change."]
    pub GetModelMetadata: ::std::option::Option<
        unsafe extern "C" fn(
            context: *const TfLiteContext,
            name: *const ::std::os::raw::c_char,
            ptr: *mut *const ::std::os::raw::c_char,
            bytes: *mut usize,
        ) -> TfLiteStatus,
    >,
    #[doc = " Retrieves the corresponding TfLiteContext of a subgraph that the given\n subgraph_index points to and switches to the delegate context for that\n subgraph. If an invalid subgraph index is given, returns kTfLiteError.\n\n NOTE: This function is expected to be paired with ReleaseSubgraphContext()\n once the delegate preparation is done and/or the delegate context\n functions are no longer needed.\n\n WARNING: This is an experimental interface that is subject to change."]
    pub AcquireSubgraphContext: ::std::option::Option<
        unsafe extern "C" fn(
            context: *mut TfLiteContext,
            subgraph_index: ::std::os::raw::c_int,
            acquired_context: *mut *mut TfLiteContext,
        ) -> TfLiteStatus,
    >,
    #[doc = " Releases the subgraph context by switching back to the TFLite kernel\n context for the subgraph that the given subgraph_index points to.\n\n NOTE: This function is expected to be used after AcquireSubgraphContext()\n once the delegate preparation is done and/or the delegate context\n functions are no longer needed.\n\n WARNING: This is an experimental interface that is subject to change."]
    pub ReleaseSubgraphContext: ::std::option::Option<
        unsafe extern "C" fn(
            context: *mut TfLiteContext,
            subgraph_index: ::std::os::raw::c_int,
        ) -> TfLiteStatus,
    >,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of TfLiteContext"][::std::mem::size_of::<TfLiteContext>() - 200usize];
    ["Alignment of TfLiteContext"][::std::mem::align_of::<TfLiteContext>() - 8usize];
    ["Offset of field: TfLiteContext::tensors_size"]
        [::std::mem::offset_of!(TfLiteContext, tensors_size) - 0usize];
    ["Offset of field: TfLiteContext::GetExecutionPlan"]
        [::std::mem::offset_of!(TfLiteContext, GetExecutionPlan) - 8usize];
    ["Offset of field: TfLiteContext::tensors"]
        [::std::mem::offset_of!(TfLiteContext, tensors) - 16usize];
    ["Offset of field: TfLiteContext::impl_"]
        [::std::mem::offset_of!(TfLiteContext, impl_) - 24usize];
    ["Offset of field: TfLiteContext::ResizeTensor"]
        [::std::mem::offset_of!(TfLiteContext, ResizeTensor) - 32usize];
    ["Offset of field: TfLiteContext::ReportError"]
        [::std::mem::offset_of!(TfLiteContext, ReportError) - 40usize];
    ["Offset of field: TfLiteContext::AddTensors"]
        [::std::mem::offset_of!(TfLiteContext, AddTensors) - 48usize];
    ["Offset of field: TfLiteContext::GetNodeAndRegistration"]
        [::std::mem::offset_of!(TfLiteContext, GetNodeAndRegistration) - 56usize];
    ["Offset of field: TfLiteContext::ReplaceNodeSubsetsWithDelegateKernels"]
        [::std::mem::offset_of!(TfLiteContext, ReplaceNodeSubsetsWithDelegateKernels) - 64usize];
    ["Offset of field: TfLiteContext::recommended_num_threads"]
        [::std::mem::offset_of!(TfLiteContext, recommended_num_threads) - 72usize];
    ["Offset of field: TfLiteContext::GetExternalContext"]
        [::std::mem::offset_of!(TfLiteContext, GetExternalContext) - 80usize];
    ["Offset of field: TfLiteContext::SetExternalContext"]
        [::std::mem::offset_of!(TfLiteContext, SetExternalContext) - 88usize];
    ["Offset of field: TfLiteContext::allow_fp32_relax_to_fp16"]
        [::std::mem::offset_of!(TfLiteContext, allow_fp32_relax_to_fp16) - 96usize];
    ["Offset of field: TfLiteContext::profiler"]
        [::std::mem::offset_of!(TfLiteContext, profiler) - 104usize];
    ["Offset of field: TfLiteContext::AllocatePersistentBuffer"]
        [::std::mem::offset_of!(TfLiteContext, AllocatePersistentBuffer) - 112usize];
    ["Offset of field: TfLiteContext::AllocateBufferForEval"]
        [::std::mem::offset_of!(TfLiteContext, AllocateBufferForEval) - 120usize];
    ["Offset of field: TfLiteContext::RequestScratchBufferInArena"]
        [::std::mem::offset_of!(TfLiteContext, RequestScratchBufferInArena) - 128usize];
    ["Offset of field: TfLiteContext::GetScratchBuffer"]
        [::std::mem::offset_of!(TfLiteContext, GetScratchBuffer) - 136usize];
    ["Offset of field: TfLiteContext::ResizeTensorExplicit"]
        [::std::mem::offset_of!(TfLiteContext, ResizeTensorExplicit) - 144usize];
    ["Offset of field: TfLiteContext::PreviewDelegatePartitioning"]
        [::std::mem::offset_of!(TfLiteContext, PreviewDelegatePartitioning) - 152usize];
    ["Offset of field: TfLiteContext::GetTensor"]
        [::std::mem::offset_of!(TfLiteContext, GetTensor) - 160usize];
    ["Offset of field: TfLiteContext::GetEvalTensor"]
        [::std::mem::offset_of!(TfLiteContext, GetEvalTensor) - 168usize];
    ["Offset of field: TfLiteContext::GetModelMetadata"]
        [::std::mem::offset_of!(TfLiteContext, GetModelMetadata) - 176usize];
    ["Offset of field: TfLiteContext::AcquireSubgraphContext"]
        [::std::mem::offset_of!(TfLiteContext, AcquireSubgraphContext) - 184usize];
    ["Offset of field: TfLiteContext::ReleaseSubgraphContext"]
        [::std::mem::offset_of!(TfLiteContext, ReleaseSubgraphContext) - 192usize];
};
#[doc = " `TfLiteRegistration` defines the implementation of an operation\n (a built-in op, custom op, or custom delegate kernel).\n\n It is a struct containing \"methods\" (C function pointers) that will be\n invoked by the TF Lite runtime to evaluate instances of the operation.\n\n See also `TfLiteOperator` which is a more ABI-stable equivalent."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct TfLiteRegistration {
    #[doc = " Initializes the op from serialized data.\n Called only *once* for the lifetime of the op, so any one-time allocations\n should be made here (unless they depend on tensor sizes).\n\n * If a built-in op:\n       * `buffer` is the op's params data (TfLiteLSTMParams*).\n       * `length` is zero.\n * If custom op:\n       * `buffer` is the op's `custom_options`.\n       * `length` is the size of the buffer.\n\n Returns a type-punned (i.e. void*) opaque data (e.g. a primitive pointer\n or an instance of a struct).\n\n The returned pointer will be stored with the node in the `user_data`\n field, accessible within prepare and invoke functions below.\n\n NOTE: if the data is already in the desired format, simply implement this\n function to return `nullptr` and implement the free function to be a\n no-op."]
    pub init: ::std::option::Option<
        unsafe extern "C" fn(
            context: *mut TfLiteContext,
            buffer: *const ::std::os::raw::c_char,
            length: usize,
        ) -> *mut ::std::os::raw::c_void,
    >,
    #[doc = " The pointer `buffer` is the data previously returned by an init\n invocation."]
    pub free: ::std::option::Option<
        unsafe extern "C" fn(context: *mut TfLiteContext, buffer: *mut ::std::os::raw::c_void),
    >,
    #[doc = " prepare is called when the inputs this node depends on have been resized.\n `context->ResizeTensor()` can be called to request output tensors to be\n resized.\n Can be called multiple times for the lifetime of the op.\n\n Returns `kTfLiteOk` on success."]
    pub prepare: ::std::option::Option<
        unsafe extern "C" fn(context: *mut TfLiteContext, node: *mut TfLiteNode) -> TfLiteStatus,
    >,
    #[doc = " Execute the node (should read `node->inputs` and output to\n `node->outputs`).\n\n Returns `kTfLiteOk` on success."]
    pub invoke: ::std::option::Option<
        unsafe extern "C" fn(context: *mut TfLiteContext, node: *mut TfLiteNode) -> TfLiteStatus,
    >,
    #[doc = " `profiling_string` is called during summarization of profiling information\n in order to group executions together. Providing a value here will cause a\n given op to appear multiple times is the profiling report. This is\n particularly useful for custom ops that can perform significantly\n different calculations depending on their `user-data`."]
    pub profiling_string: ::std::option::Option<
        unsafe extern "C" fn(
            context: *const TfLiteContext,
            node: *const TfLiteNode,
        ) -> *const ::std::os::raw::c_char,
    >,
    #[doc = " Builtin codes. If this kernel refers to a builtin this is the code\n of the builtin. This is so we can do marshaling to other frameworks like\n NN API.\n\n Note: It is the responsibility of the registration binder to set this\n properly."]
    pub builtin_code: i32,
    #[doc = " Custom op name. If the op is a builtin, this will be `null`.\n\n Note: It is the responsibility of the registration binder to set this\n properly.\n\n WARNING: This is an experimental interface that is subject to change."]
    pub custom_name: *const ::std::os::raw::c_char,
    #[doc = " The version of the op.\n Note: It is the responsibility of the registration binder to set this\n properly."]
    pub version: ::std::os::raw::c_int,
    #[doc = " The external (i.e. ABI-stable) version of `TfLiteRegistration`.\n Since we can't use internal types (such as `TfLiteContext`) for C API to\n maintain ABI stability.  C API user will provide `TfLiteOperator` to\n implement custom ops.  We keep it inside of `TfLiteRegistration` and use\n it to route callbacks properly."]
    pub registration_external: *mut TfLiteOperator,
    #[doc = " Retrieves asynchronous kernel.\n\n If the `async_kernel` field is nullptr, it means the operation described\n by this TfLiteRegistration object does not support asynchronous execution.\n Otherwise, the function that the field points to should only be called for\n delegate kernel nodes, i.e. `node` should be a delegate kernel node\n created by applying a delegate. If the function returns nullptr, that\n means that the underlying delegate does not support asynchronous execution\n for this `node`."]
    pub async_kernel: ::std::option::Option<
        unsafe extern "C" fn(
            context: *mut TfLiteContext,
            node: *mut TfLiteNode,
        ) -> *mut TfLiteAsyncKernel,
    >,
    #[doc = " Indicates if an operator's output may safely overwrite its inputs.\n See the comments in `TfLiteInPlaceOp`."]
    pub inplace_operator: u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of TfLiteRegistration"][::std::mem::size_of::<TfLiteRegistration>() - 88usize];
    ["Alignment of TfLiteRegistration"][::std::mem::align_of::<TfLiteRegistration>() - 8usize];
    ["Offset of field: TfLiteRegistration::init"]
        [::std::mem::offset_of!(TfLiteRegistration, init) - 0usize];
    ["Offset of field: TfLiteRegistration::free"]
        [::std::mem::offset_of!(TfLiteRegistration, free) - 8usize];
    ["Offset of field: TfLiteRegistration::prepare"]
        [::std::mem::offset_of!(TfLiteRegistration, prepare) - 16usize];
    ["Offset of field: TfLiteRegistration::invoke"]
        [::std::mem::offset_of!(TfLiteRegistration, invoke) - 24usize];
    ["Offset of field: TfLiteRegistration::profiling_string"]
        [::std::mem::offset_of!(TfLiteRegistration, profiling_string) - 32usize];
    ["Offset of field: TfLiteRegistration::builtin_code"]
        [::std::mem::offset_of!(TfLiteRegistration, builtin_code) - 40usize];
    ["Offset of field: TfLiteRegistration::custom_name"]
        [::std::mem::offset_of!(TfLiteRegistration, custom_name) - 48usize];
    ["Offset of field: TfLiteRegistration::version"]
        [::std::mem::offset_of!(TfLiteRegistration, version) - 56usize];
    ["Offset of field: TfLiteRegistration::registration_external"]
        [::std::mem::offset_of!(TfLiteRegistration, registration_external) - 64usize];
    ["Offset of field: TfLiteRegistration::async_kernel"]
        [::std::mem::offset_of!(TfLiteRegistration, async_kernel) - 72usize];
    ["Offset of field: TfLiteRegistration::inplace_operator"]
        [::std::mem::offset_of!(TfLiteRegistration, inplace_operator) - 80usize];
};
#[doc = " WARNING: This is an experimental interface that is subject to change."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct TfLiteDelegate {
    #[doc = " Data that delegate needs to identify itself. This data is owned by the\n delegate. The delegate is owned in the user code, so the delegate is\n responsible for deallocating this when it is destroyed."]
    pub data_: *mut ::std::os::raw::c_void,
    #[doc = " Invoked by `ModifyGraphWithDelegate`. This prepare is called, giving the\n delegate a view of the current graph through `TfLiteContext*`. It\n typically will look at the nodes and call\n `ReplaceNodeSubsetsWithDelegateKernels()` to ask the TensorFlow lite\n runtime to create macro-nodes to represent delegated subgraphs of the\n original graph."]
    pub Prepare: ::std::option::Option<
        unsafe extern "C" fn(
            context: *mut TfLiteContext,
            delegate: *mut TfLiteDelegate,
        ) -> TfLiteStatus,
    >,
    #[doc = " Copy the data from delegate buffer handle into raw memory of the given\n `tensor`. Note that the delegate is allowed to allocate the raw bytes as\n long as it follows the rules for `kTfLiteDynamic` tensors, in which case\n this cannot be null."]
    pub CopyFromBufferHandle: ::std::option::Option<
        unsafe extern "C" fn(
            context: *mut TfLiteContext,
            delegate: *mut TfLiteDelegate,
            buffer_handle: TfLiteBufferHandle,
            tensor: *mut TfLiteTensor,
        ) -> TfLiteStatus,
    >,
    #[doc = " Copy the data from raw memory of the given `tensor` to delegate buffer\n handle. This can be null if the delegate doesn't use its own buffer."]
    pub CopyToBufferHandle: ::std::option::Option<
        unsafe extern "C" fn(
            context: *mut TfLiteContext,
            delegate: *mut TfLiteDelegate,
            buffer_handle: TfLiteBufferHandle,
            tensor: *mut TfLiteTensor,
        ) -> TfLiteStatus,
    >,
    #[doc = " Free the Delegate Buffer Handle. Note: This only frees the handle, but\n this doesn't release the underlying resource (e.g. textures). The\n resources are either owned by application layer or the delegate.\n This can be null if the delegate doesn't use its own buffer."]
    pub FreeBufferHandle: ::std::option::Option<
        unsafe extern "C" fn(
            context: *mut TfLiteContext,
            delegate: *mut TfLiteDelegate,
            handle: *mut TfLiteBufferHandle,
        ),
    >,
    #[doc = " Bitmask flags. See the comments in `TfLiteDelegateFlags`."]
    pub flags: i64,
    #[doc = " The opaque delegate builder associated with this object.  If set then the\n TF Lite runtime will give precedence to this field.  E.g. instead of\n invoking `Prepare` via the function pointer inside the `TfLiteDelegate`\n object, the runtime will first check if the corresponding function\n pointer inside `opaque_delegate_builder` is set and if so invoke that.\n\n If this field is non-null, then the `Prepare` field (of the\n `TfLiteDelegate`) should be null."]
    pub opaque_delegate_builder: *mut TfLiteOpaqueDelegateBuilder,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of TfLiteDelegate"][::std::mem::size_of::<TfLiteDelegate>() - 56usize];
    ["Alignment of TfLiteDelegate"][::std::mem::align_of::<TfLiteDelegate>() - 8usize];
    ["Offset of field: TfLiteDelegate::data_"]
        [::std::mem::offset_of!(TfLiteDelegate, data_) - 0usize];
    ["Offset of field: TfLiteDelegate::Prepare"]
        [::std::mem::offset_of!(TfLiteDelegate, Prepare) - 8usize];
    ["Offset of field: TfLiteDelegate::CopyFromBufferHandle"]
        [::std::mem::offset_of!(TfLiteDelegate, CopyFromBufferHandle) - 16usize];
    ["Offset of field: TfLiteDelegate::CopyToBufferHandle"]
        [::std::mem::offset_of!(TfLiteDelegate, CopyToBufferHandle) - 24usize];
    ["Offset of field: TfLiteDelegate::FreeBufferHandle"]
        [::std::mem::offset_of!(TfLiteDelegate, FreeBufferHandle) - 32usize];
    ["Offset of field: TfLiteDelegate::flags"]
        [::std::mem::offset_of!(TfLiteDelegate, flags) - 40usize];
    ["Offset of field: TfLiteDelegate::opaque_delegate_builder"]
        [::std::mem::offset_of!(TfLiteDelegate, opaque_delegate_builder) - 48usize];
};
#[doc = " `TfLiteOpaqueDelegateBuilder` is used for constructing\n `TfLiteOpaqueDelegate`, see `TfLiteOpaqueDelegateCreate` in c_api_opaque.h.\n NOTE: This struct is not ABI stable.\n\n For forward source compatibility `TfLiteOpaqueDelegateBuilder` objects\n should be brace-initialized, so that all fields (including any that might be\n added in the future) get zero-initialized.  The purpose of each field is\n exactly the same as with `TfLiteDelegate`.\n\n NOTE: This type is part of the TensorFlow Lite Extension APIs.\n We reserve the right to make changes to this API in future releases,\n potentially including non-backwards-compatible changes, on a different\n schedule than for the other TensorFlow Lite APIs. See\n https://www.tensorflow.org/guide/versions#separate_version_number_for_tensorflow_lite_extension_apis."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct TfLiteOpaqueDelegateBuilder {
    #[doc = " Data that delegate needs to identify itself. This data is owned by the\n delegate. The delegate is owned in the user code, so the delegate is\n responsible for deallocating this when it is destroyed."]
    pub data: *mut ::std::os::raw::c_void,
    #[doc = " Invoked by ModifyGraphWithDelegate. This prepare is called, giving the\n delegate a view of the current graph through `TfLiteContext*`. It\n typically will look at the nodes and call\n `ReplaceNodeSubsetsWithDelegateKernels()` to ask the TensorFlow lite\n runtime to create macro-nodes to represent delegated subgraphs of the\n original graph."]
    pub Prepare: ::std::option::Option<
        unsafe extern "C" fn(
            context: *mut TfLiteOpaqueContext,
            delegate: *mut TfLiteOpaqueDelegate,
            data: *mut ::std::os::raw::c_void,
        ) -> TfLiteStatus,
    >,
    #[doc = " Copies the data from delegate buffer handle into raw memory of the given\n `tensor`. Note that the delegate is allowed to allocate the raw bytes as\n long as it follows the rules for kTfLiteDynamic tensors, in which case\n this cannot be null."]
    pub CopyFromBufferHandle: ::std::option::Option<
        unsafe extern "C" fn(
            context: *mut TfLiteOpaqueContext,
            delegate: *mut TfLiteOpaqueDelegate,
            data: *mut ::std::os::raw::c_void,
            buffer_handle: TfLiteBufferHandle,
            tensor: *mut TfLiteOpaqueTensor,
        ) -> TfLiteStatus,
    >,
    #[doc = " Copies the data from raw memory of the given `tensor` to delegate buffer\n handle. This can be null if the delegate doesn't use its own buffer."]
    pub CopyToBufferHandle: ::std::option::Option<
        unsafe extern "C" fn(
            context: *mut TfLiteOpaqueContext,
            delegate: *mut TfLiteOpaqueDelegate,
            data: *mut ::std::os::raw::c_void,
            buffer_handle: TfLiteBufferHandle,
            tensor: *mut TfLiteOpaqueTensor,
        ) -> TfLiteStatus,
    >,
    #[doc = " Frees the Delegate Buffer Handle. Note: This only frees the handle, but\n this doesn't release the underlying resource (e.g. textures). The\n resources are either owned by application layer or the delegate.\n This can be null if the delegate doesn't use its own buffer."]
    pub FreeBufferHandle: ::std::option::Option<
        unsafe extern "C" fn(
            context: *mut TfLiteOpaqueContext,
            delegate: *mut TfLiteOpaqueDelegate,
            data: *mut ::std::os::raw::c_void,
            handle: *mut TfLiteBufferHandle,
        ),
    >,
    #[doc = " Bitmask flags. See the comments in `TfLiteDelegateFlags`."]
    pub flags: i64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of TfLiteOpaqueDelegateBuilder"]
        [::std::mem::size_of::<TfLiteOpaqueDelegateBuilder>() - 48usize];
    ["Alignment of TfLiteOpaqueDelegateBuilder"]
        [::std::mem::align_of::<TfLiteOpaqueDelegateBuilder>() - 8usize];
    ["Offset of field: TfLiteOpaqueDelegateBuilder::data"]
        [::std::mem::offset_of!(TfLiteOpaqueDelegateBuilder, data) - 0usize];
    ["Offset of field: TfLiteOpaqueDelegateBuilder::Prepare"]
        [::std::mem::offset_of!(TfLiteOpaqueDelegateBuilder, Prepare) - 8usize];
    ["Offset of field: TfLiteOpaqueDelegateBuilder::CopyFromBufferHandle"]
        [::std::mem::offset_of!(TfLiteOpaqueDelegateBuilder, CopyFromBufferHandle) - 16usize];
    ["Offset of field: TfLiteOpaqueDelegateBuilder::CopyToBufferHandle"]
        [::std::mem::offset_of!(TfLiteOpaqueDelegateBuilder, CopyToBufferHandle) - 24usize];
    ["Offset of field: TfLiteOpaqueDelegateBuilder::FreeBufferHandle"]
        [::std::mem::offset_of!(TfLiteOpaqueDelegateBuilder, FreeBufferHandle) - 32usize];
    ["Offset of field: TfLiteOpaqueDelegateBuilder::flags"]
        [::std::mem::offset_of!(TfLiteOpaqueDelegateBuilder, flags) - 40usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct TfLiteOpaqueTensorBuilder {
    _unused: [u8; 0],
}
pub type __builtin_va_list = [__va_list_tag; 1usize];
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __va_list_tag {
    pub gp_offset: ::std::os::raw::c_uint,
    pub fp_offset: ::std::os::raw::c_uint,
    pub overflow_arg_area: *mut ::std::os::raw::c_void,
    pub reg_save_area: *mut ::std::os::raw::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of __va_list_tag"][::std::mem::size_of::<__va_list_tag>() - 24usize];
    ["Alignment of __va_list_tag"][::std::mem::align_of::<__va_list_tag>() - 8usize];
    ["Offset of field: __va_list_tag::gp_offset"]
        [::std::mem::offset_of!(__va_list_tag, gp_offset) - 0usize];
    ["Offset of field: __va_list_tag::fp_offset"]
        [::std::mem::offset_of!(__va_list_tag, fp_offset) - 4usize];
    ["Offset of field: __va_list_tag::overflow_arg_area"]
        [::std::mem::offset_of!(__va_list_tag, overflow_arg_area) - 8usize];
    ["Offset of field: __va_list_tag::reg_save_area"]
        [::std::mem::offset_of!(__va_list_tag, reg_save_area) - 16usize];
};
pub struct tensorflowlite_c {
    __library: ::libloading::Library,
    pub TfLiteOperatorCreate: Result<
        unsafe extern "C" fn(
            builtin_code: TfLiteBuiltinOperator,
            custom_name: *const ::std::os::raw::c_char,
            version: ::std::os::raw::c_int,
            user_data: *mut ::std::os::raw::c_void,
        ) -> *mut TfLiteOperator,
        ::libloading::Error,
    >,
    pub TfLiteOperatorDelete:
        Result<unsafe extern "C" fn(registration: *mut TfLiteOperator), ::libloading::Error>,
    pub TfLiteOperatorGetBuiltInCode: Result<
        unsafe extern "C" fn(registration: *const TfLiteOperator) -> TfLiteBuiltinOperator,
        ::libloading::Error,
    >,
    pub TfLiteOperatorGetCustomName: Result<
        unsafe extern "C" fn(registration: *const TfLiteOperator) -> *const ::std::os::raw::c_char,
        ::libloading::Error,
    >,
    pub TfLiteOperatorGetVersion: Result<
        unsafe extern "C" fn(registration: *const TfLiteOperator) -> ::std::os::raw::c_int,
        ::libloading::Error,
    >,
    pub TfLiteOperatorGetUserData: Result<
        unsafe extern "C" fn(registration: *const TfLiteOperator) -> *mut ::std::os::raw::c_void,
        ::libloading::Error,
    >,
    pub TfLiteOperatorSetInit: Result<
        unsafe extern "C" fn(
            registration: *mut TfLiteOperator,
            init: ::std::option::Option<
                unsafe extern "C" fn(
                    context: *mut TfLiteOpaqueContext,
                    buffer: *const ::std::os::raw::c_char,
                    length: usize,
                ) -> *mut ::std::os::raw::c_void,
            >,
        ),
        ::libloading::Error,
    >,
    pub TfLiteOperatorSetInitWithData: Result<
        unsafe extern "C" fn(
            registration: *mut TfLiteOperator,
            init: ::std::option::Option<
                unsafe extern "C" fn(
                    user_data: *mut ::std::os::raw::c_void,
                    context: *mut TfLiteOpaqueContext,
                    buffer: *const ::std::os::raw::c_char,
                    length: usize,
                ) -> *mut ::std::os::raw::c_void,
            >,
        ) -> TfLiteStatus,
        ::libloading::Error,
    >,
    pub TfLiteOperatorSetFree: Result<
        unsafe extern "C" fn(
            registration: *mut TfLiteOperator,
            free: ::std::option::Option<
                unsafe extern "C" fn(
                    context: *mut TfLiteOpaqueContext,
                    data: *mut ::std::os::raw::c_void,
                ),
            >,
        ),
        ::libloading::Error,
    >,
    pub TfLiteOperatorSetFreeWithData: Result<
        unsafe extern "C" fn(
            registration: *mut TfLiteOperator,
            free: ::std::option::Option<
                unsafe extern "C" fn(
                    user_data: *mut ::std::os::raw::c_void,
                    context: *mut TfLiteOpaqueContext,
                    data: *mut ::std::os::raw::c_void,
                ),
            >,
        ) -> TfLiteStatus,
        ::libloading::Error,
    >,
    pub TfLiteOperatorSetPrepare: Result<
        unsafe extern "C" fn(
            registration: *mut TfLiteOperator,
            prepare: ::std::option::Option<
                unsafe extern "C" fn(
                    context: *mut TfLiteOpaqueContext,
                    node: *mut TfLiteOpaqueNode,
                ) -> TfLiteStatus,
            >,
        ),
        ::libloading::Error,
    >,
    pub TfLiteOperatorSetPrepareWithData: Result<
        unsafe extern "C" fn(
            registration: *mut TfLiteOperator,
            prepare: ::std::option::Option<
                unsafe extern "C" fn(
                    user_data: *mut ::std::os::raw::c_void,
                    context: *mut TfLiteOpaqueContext,
                    node: *mut TfLiteOpaqueNode,
                ) -> TfLiteStatus,
            >,
        ) -> TfLiteStatus,
        ::libloading::Error,
    >,
    pub TfLiteOperatorSetInvoke: Result<
        unsafe extern "C" fn(
            registration: *mut TfLiteOperator,
            invoke: ::std::option::Option<
                unsafe extern "C" fn(
                    context: *mut TfLiteOpaqueContext,
                    node: *mut TfLiteOpaqueNode,
                ) -> TfLiteStatus,
            >,
        ),
        ::libloading::Error,
    >,
    pub TfLiteOperatorSetInvokeWithData: Result<
        unsafe extern "C" fn(
            registration: *mut TfLiteOperator,
            invoke: ::std::option::Option<
                unsafe extern "C" fn(
                    user_data: *mut ::std::os::raw::c_void,
                    context: *mut TfLiteOpaqueContext,
                    node: *mut TfLiteOpaqueNode,
                ) -> TfLiteStatus,
            >,
        ) -> TfLiteStatus,
        ::libloading::Error,
    >,
    pub TfLiteOperatorSetAsyncKernel: Result<
        unsafe extern "C" fn(
            registration: *mut TfLiteOperator,
            async_kernel: ::std::option::Option<
                unsafe extern "C" fn(
                    context: *mut TfLiteOpaqueContext,
                    node: *mut TfLiteOpaqueNode,
                ) -> *mut TfLiteAsyncKernel,
            >,
        ),
        ::libloading::Error,
    >,
    pub TfLiteOperatorSetAsyncKernelWithData: Result<
        unsafe extern "C" fn(
            registration: *mut TfLiteOperator,
            async_kernel: ::std::option::Option<
                unsafe extern "C" fn(
                    user_data: *mut ::std::os::raw::c_void,
                    context: *mut TfLiteOpaqueContext,
                    node: *mut TfLiteOpaqueNode,
                ) -> *mut TfLiteAsyncKernel,
            >,
        ) -> TfLiteStatus,
        ::libloading::Error,
    >,
    pub TfLiteOperatorSetInplaceOperator: Result<
        unsafe extern "C" fn(registration: *mut TfLiteOperator, inplace_operator: u64),
        ::libloading::Error,
    >,
    pub TfLiteVersion:
        Result<unsafe extern "C" fn() -> *const ::std::os::raw::c_char, ::libloading::Error>,
    pub TfLiteExtensionApisVersion:
        Result<unsafe extern "C" fn() -> *const ::std::os::raw::c_char, ::libloading::Error>,
    pub TfLiteSchemaVersion:
        Result<unsafe extern "C" fn() -> ::std::os::raw::c_int, ::libloading::Error>,
    pub TfLiteModelCreate: Result<
        unsafe extern "C" fn(
            model_data: *const ::std::os::raw::c_void,
            model_size: usize,
        ) -> *mut TfLiteModel,
        ::libloading::Error,
    >,
    pub TfLiteModelCreateWithErrorReporter: Result<
        unsafe extern "C" fn(
            model_data: *const ::std::os::raw::c_void,
            model_size: usize,
            reporter: ::std::option::Option<
                unsafe extern "C" fn(
                    user_data: *mut ::std::os::raw::c_void,
                    format: *const ::std::os::raw::c_char,
                    args: *mut __va_list_tag,
                ),
            >,
            user_data: *mut ::std::os::raw::c_void,
        ) -> *mut TfLiteModel,
        ::libloading::Error,
    >,
    pub TfLiteModelCreateFromFile: Result<
        unsafe extern "C" fn(model_path: *const ::std::os::raw::c_char) -> *mut TfLiteModel,
        ::libloading::Error,
    >,
    pub TfLiteModelCreateFromFileWithErrorReporter: Result<
        unsafe extern "C" fn(
            model_path: *const ::std::os::raw::c_char,
            reporter: ::std::option::Option<
                unsafe extern "C" fn(
                    user_data: *mut ::std::os::raw::c_void,
                    format: *const ::std::os::raw::c_char,
                    args: *mut __va_list_tag,
                ),
            >,
            user_data: *mut ::std::os::raw::c_void,
        ) -> *mut TfLiteModel,
        ::libloading::Error,
    >,
    pub TfLiteModelDelete:
        Result<unsafe extern "C" fn(model: *mut TfLiteModel), ::libloading::Error>,
    pub TfLiteInterpreterOptionsCreate:
        Result<unsafe extern "C" fn() -> *mut TfLiteInterpreterOptions, ::libloading::Error>,
    pub TfLiteInterpreterOptionsCopy: Result<
        unsafe extern "C" fn(
            from: *const TfLiteInterpreterOptions,
        ) -> *mut TfLiteInterpreterOptions,
        ::libloading::Error,
    >,
    pub TfLiteInterpreterOptionsDelete:
        Result<unsafe extern "C" fn(options: *mut TfLiteInterpreterOptions), ::libloading::Error>,
    pub TfLiteInterpreterOptionsSetNumThreads: Result<
        unsafe extern "C" fn(options: *mut TfLiteInterpreterOptions, num_threads: i32),
        ::libloading::Error,
    >,
    pub TfLiteInterpreterOptionsAddDelegate: Result<
        unsafe extern "C" fn(
            options: *mut TfLiteInterpreterOptions,
            delegate: *mut TfLiteOpaqueDelegate,
        ),
        ::libloading::Error,
    >,
    pub TfLiteInterpreterOptionsSetErrorReporter: Result<
        unsafe extern "C" fn(
            options: *mut TfLiteInterpreterOptions,
            reporter: ::std::option::Option<
                unsafe extern "C" fn(
                    user_data: *mut ::std::os::raw::c_void,
                    format: *const ::std::os::raw::c_char,
                    args: *mut __va_list_tag,
                ),
            >,
            user_data: *mut ::std::os::raw::c_void,
        ),
        ::libloading::Error,
    >,
    pub TfLiteInterpreterOptionsAddOperator: Result<
        unsafe extern "C" fn(
            options: *mut TfLiteInterpreterOptions,
            registration: *mut TfLiteOperator,
        ),
        ::libloading::Error,
    >,
    pub TfLiteInterpreterOptionsEnableCancellation: Result<
        unsafe extern "C" fn(options: *mut TfLiteInterpreterOptions, enable: bool) -> TfLiteStatus,
        ::libloading::Error,
    >,
    pub TfLiteInterpreterCreate: Result<
        unsafe extern "C" fn(
            model: *const TfLiteModel,
            optional_options: *const TfLiteInterpreterOptions,
        ) -> *mut TfLiteInterpreter,
        ::libloading::Error,
    >,
    pub TfLiteInterpreterDelete:
        Result<unsafe extern "C" fn(interpreter: *mut TfLiteInterpreter), ::libloading::Error>,
    pub TfLiteInterpreterGetInputTensorCount: Result<
        unsafe extern "C" fn(interpreter: *const TfLiteInterpreter) -> i32,
        ::libloading::Error,
    >,
    pub TfLiteInterpreterInputTensorIndices: Result<
        unsafe extern "C" fn(interpreter: *const TfLiteInterpreter) -> *const ::std::os::raw::c_int,
        ::libloading::Error,
    >,
    pub TfLiteInterpreterGetInputTensor: Result<
        unsafe extern "C" fn(
            interpreter: *const TfLiteInterpreter,
            input_index: i32,
        ) -> *mut TfLiteTensor,
        ::libloading::Error,
    >,
    pub TfLiteInterpreterResizeInputTensor: Result<
        unsafe extern "C" fn(
            interpreter: *mut TfLiteInterpreter,
            input_index: i32,
            input_dims: *const ::std::os::raw::c_int,
            input_dims_size: i32,
        ) -> TfLiteStatus,
        ::libloading::Error,
    >,
    pub TfLiteInterpreterAllocateTensors: Result<
        unsafe extern "C" fn(interpreter: *mut TfLiteInterpreter) -> TfLiteStatus,
        ::libloading::Error,
    >,
    pub TfLiteInterpreterInvoke: Result<
        unsafe extern "C" fn(interpreter: *mut TfLiteInterpreter) -> TfLiteStatus,
        ::libloading::Error,
    >,
    pub TfLiteInterpreterGetOutputTensorCount: Result<
        unsafe extern "C" fn(interpreter: *const TfLiteInterpreter) -> i32,
        ::libloading::Error,
    >,
    pub TfLiteInterpreterOutputTensorIndices: Result<
        unsafe extern "C" fn(interpreter: *const TfLiteInterpreter) -> *const ::std::os::raw::c_int,
        ::libloading::Error,
    >,
    pub TfLiteInterpreterGetOutputTensor: Result<
        unsafe extern "C" fn(
            interpreter: *const TfLiteInterpreter,
            output_index: i32,
        ) -> *const TfLiteTensor,
        ::libloading::Error,
    >,
    pub TfLiteInterpreterGetTensor: Result<
        unsafe extern "C" fn(
            interpreter: *const TfLiteInterpreter,
            index: ::std::os::raw::c_int,
        ) -> *mut TfLiteTensor,
        ::libloading::Error,
    >,
    pub TfLiteInterpreterCancel: Result<
        unsafe extern "C" fn(interpreter: *const TfLiteInterpreter) -> TfLiteStatus,
        ::libloading::Error,
    >,
    pub TfLiteInterpreterGetSignatureCount: Result<
        unsafe extern "C" fn(interpreter: *const TfLiteInterpreter) -> i32,
        ::libloading::Error,
    >,
    pub TfLiteInterpreterGetSignatureKey: Result<
        unsafe extern "C" fn(
            interpreter: *const TfLiteInterpreter,
            signature_index: i32,
        ) -> *const ::std::os::raw::c_char,
        ::libloading::Error,
    >,
    pub TfLiteInterpreterGetSignatureRunner: Result<
        unsafe extern "C" fn(
            interpreter: *const TfLiteInterpreter,
            signature_key: *const ::std::os::raw::c_char,
        ) -> *mut TfLiteSignatureRunner,
        ::libloading::Error,
    >,
    pub TfLiteSignatureRunnerGetInputCount: Result<
        unsafe extern "C" fn(signature_runner: *const TfLiteSignatureRunner) -> usize,
        ::libloading::Error,
    >,
    pub TfLiteSignatureRunnerGetInputName: Result<
        unsafe extern "C" fn(
            signature_runner: *const TfLiteSignatureRunner,
            input_index: i32,
        ) -> *const ::std::os::raw::c_char,
        ::libloading::Error,
    >,
    pub TfLiteSignatureRunnerResizeInputTensor: Result<
        unsafe extern "C" fn(
            signature_runner: *mut TfLiteSignatureRunner,
            input_name: *const ::std::os::raw::c_char,
            input_dims: *const ::std::os::raw::c_int,
            input_dims_size: i32,
        ) -> TfLiteStatus,
        ::libloading::Error,
    >,
    pub TfLiteSignatureRunnerAllocateTensors: Result<
        unsafe extern "C" fn(signature_runner: *mut TfLiteSignatureRunner) -> TfLiteStatus,
        ::libloading::Error,
    >,
    pub TfLiteSignatureRunnerGetInputTensor: Result<
        unsafe extern "C" fn(
            signature_runner: *mut TfLiteSignatureRunner,
            input_name: *const ::std::os::raw::c_char,
        ) -> *mut TfLiteTensor,
        ::libloading::Error,
    >,
    pub TfLiteSignatureRunnerInvoke: Result<
        unsafe extern "C" fn(signature_runner: *mut TfLiteSignatureRunner) -> TfLiteStatus,
        ::libloading::Error,
    >,
    pub TfLiteSignatureRunnerGetOutputCount: Result<
        unsafe extern "C" fn(signature_runner: *const TfLiteSignatureRunner) -> usize,
        ::libloading::Error,
    >,
    pub TfLiteSignatureRunnerGetOutputName: Result<
        unsafe extern "C" fn(
            signature_runner: *const TfLiteSignatureRunner,
            output_index: i32,
        ) -> *const ::std::os::raw::c_char,
        ::libloading::Error,
    >,
    pub TfLiteSignatureRunnerGetOutputTensor: Result<
        unsafe extern "C" fn(
            signature_runner: *const TfLiteSignatureRunner,
            output_name: *const ::std::os::raw::c_char,
        ) -> *const TfLiteTensor,
        ::libloading::Error,
    >,
    pub TfLiteTensorType: Result<
        unsafe extern "C" fn(tensor: *const TfLiteTensor) -> TfLiteType,
        ::libloading::Error,
    >,
    pub TfLiteTensorNumDims:
        Result<unsafe extern "C" fn(tensor: *const TfLiteTensor) -> i32, ::libloading::Error>,
    pub TfLiteTensorDim: Result<
        unsafe extern "C" fn(tensor: *const TfLiteTensor, dim_index: i32) -> i32,
        ::libloading::Error,
    >,
    pub TfLiteTensorByteSize:
        Result<unsafe extern "C" fn(tensor: *const TfLiteTensor) -> usize, ::libloading::Error>,
    pub TfLiteTensorData: Result<
        unsafe extern "C" fn(tensor: *const TfLiteTensor) -> *mut ::std::os::raw::c_void,
        ::libloading::Error,
    >,
    pub TfLiteTensorName: Result<
        unsafe extern "C" fn(tensor: *const TfLiteTensor) -> *const ::std::os::raw::c_char,
        ::libloading::Error,
    >,
    pub TfLiteTensorQuantizationParams: Result<
        unsafe extern "C" fn(tensor: *const TfLiteTensor) -> TfLiteQuantizationParams,
        ::libloading::Error,
    >,
    pub TfLiteTensorCopyFromBuffer: Result<
        unsafe extern "C" fn(
            tensor: *mut TfLiteTensor,
            input_data: *const ::std::os::raw::c_void,
            input_data_size: usize,
        ) -> TfLiteStatus,
        ::libloading::Error,
    >,
    pub TfLiteTensorCopyToBuffer: Result<
        unsafe extern "C" fn(
            output_tensor: *const TfLiteTensor,
            output_data: *mut ::std::os::raw::c_void,
            output_data_size: usize,
        ) -> TfLiteStatus,
        ::libloading::Error,
    >,
    pub TfLiteSignatureRunnerDelete: Result<
        unsafe extern "C" fn(signature_runner: *mut TfLiteSignatureRunner),
        ::libloading::Error,
    >,
    pub TfLiteIntArrayGetSizeInBytes:
        Result<unsafe extern "C" fn(size: ::std::os::raw::c_int) -> usize, ::libloading::Error>,
    pub TfLiteIntArrayCreate: Result<
        unsafe extern "C" fn(size: ::std::os::raw::c_int) -> *mut TfLiteIntArray,
        ::libloading::Error,
    >,
    pub TfLiteIntArrayEqual: Result<
        unsafe extern "C" fn(
            a: *const TfLiteIntArray,
            b: *const TfLiteIntArray,
        ) -> ::std::os::raw::c_int,
        ::libloading::Error,
    >,
    pub TfLiteIntArrayEqualsArray: Result<
        unsafe extern "C" fn(
            a: *const TfLiteIntArray,
            b_size: ::std::os::raw::c_int,
            b_data: *const ::std::os::raw::c_int,
        ) -> ::std::os::raw::c_int,
        ::libloading::Error,
    >,
    pub TfLiteIntArrayCopy: Result<
        unsafe extern "C" fn(src: *const TfLiteIntArray) -> *mut TfLiteIntArray,
        ::libloading::Error,
    >,
    pub TfLiteIntArrayFree:
        Result<unsafe extern "C" fn(a: *mut TfLiteIntArray), ::libloading::Error>,
    pub TfLiteFloatArrayGetSizeInBytes: Result<
        unsafe extern "C" fn(size: ::std::os::raw::c_int) -> ::std::os::raw::c_int,
        ::libloading::Error,
    >,
    pub TfLiteFloatArrayCreate: Result<
        unsafe extern "C" fn(size: ::std::os::raw::c_int) -> *mut TfLiteFloatArray,
        ::libloading::Error,
    >,
    pub TfLiteFloatArrayCopy: Result<
        unsafe extern "C" fn(src: *const TfLiteFloatArray) -> *mut TfLiteFloatArray,
        ::libloading::Error,
    >,
    pub TfLiteFloatArrayFree:
        Result<unsafe extern "C" fn(a: *mut TfLiteFloatArray), ::libloading::Error>,
    pub TfLiteTypeGetName: Result<
        unsafe extern "C" fn(type_: TfLiteType) -> *const ::std::os::raw::c_char,
        ::libloading::Error,
    >,
    pub TfLiteTensorDataFree:
        Result<unsafe extern "C" fn(t: *mut TfLiteTensor), ::libloading::Error>,
    pub TfLiteQuantizationFree:
        Result<unsafe extern "C" fn(quantization: *mut TfLiteQuantization), ::libloading::Error>,
    pub TfLiteSparsityFree:
        Result<unsafe extern "C" fn(sparsity: *mut TfLiteSparsity), ::libloading::Error>,
    pub TfLiteTensorFree: Result<unsafe extern "C" fn(t: *mut TfLiteTensor), ::libloading::Error>,
    pub TfLiteTensorReset: Result<
        unsafe extern "C" fn(
            type_: TfLiteType,
            name: *const ::std::os::raw::c_char,
            dims: *mut TfLiteIntArray,
            quantization: TfLiteQuantizationParams,
            buffer: *mut ::std::os::raw::c_char,
            size: usize,
            allocation_type: TfLiteAllocationType,
            allocation: *const ::std::os::raw::c_void,
            is_variable: bool,
            tensor: *mut TfLiteTensor,
        ),
        ::libloading::Error,
    >,
    pub TfLiteTensorCopy: Result<
        unsafe extern "C" fn(src: *const TfLiteTensor, dst: *mut TfLiteTensor) -> TfLiteStatus,
        ::libloading::Error,
    >,
    pub TfLiteTensorResizeMaybeCopy: Result<
        unsafe extern "C" fn(
            num_bytes: usize,
            tensor: *mut TfLiteTensor,
            preserve_data: bool,
        ) -> TfLiteStatus,
        ::libloading::Error,
    >,
    pub TfLiteTensorRealloc: Result<
        unsafe extern "C" fn(num_bytes: usize, tensor: *mut TfLiteTensor) -> TfLiteStatus,
        ::libloading::Error,
    >,
    pub TfLiteDelegateCreate: Result<unsafe extern "C" fn() -> TfLiteDelegate, ::libloading::Error>,
    pub TfLiteOpaqueDelegateCreate: Result<
        unsafe extern "C" fn(
            opaque_delegate_builder: *const TfLiteOpaqueDelegateBuilder,
        ) -> *mut TfLiteOpaqueDelegate,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueDelegateDelete:
        Result<unsafe extern "C" fn(delegate: *mut TfLiteOpaqueDelegate), ::libloading::Error>,
    pub TfLiteOpaqueDelegateGetData: Result<
        unsafe extern "C" fn(delegate: *const TfLiteOpaqueDelegate) -> *mut ::std::os::raw::c_void,
        ::libloading::Error,
    >,
    pub TfLiteTensorGetAllocationStrategy: Result<
        unsafe extern "C" fn(t: *const TfLiteTensor) -> TfLiteAllocationStrategy,
        ::libloading::Error,
    >,
    pub TfLiteTensorGetBufferAddressStability: Result<
        unsafe extern "C" fn(t: *const TfLiteTensor) -> TfLiteRunStability,
        ::libloading::Error,
    >,
    pub TfLiteTensorGetDataStability: Result<
        unsafe extern "C" fn(t: *const TfLiteTensor) -> TfLiteRunStability,
        ::libloading::Error,
    >,
    pub TfLiteTensorGetDataKnownStep:
        Result<unsafe extern "C" fn(t: *const TfLiteTensor) -> TfLiteRunStep, ::libloading::Error>,
    pub TfLiteTensorGetShapeKnownStep:
        Result<unsafe extern "C" fn(t: *const TfLiteTensor) -> TfLiteRunStep, ::libloading::Error>,
    pub TfLiteOpaqueTensorType: Result<
        unsafe extern "C" fn(opaque_tensor: *const TfLiteOpaqueTensor) -> TfLiteType,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueTensorNumDims: Result<
        unsafe extern "C" fn(opaque_tensor: *const TfLiteOpaqueTensor) -> i32,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueTensorDim: Result<
        unsafe extern "C" fn(opaque_tensor: *const TfLiteOpaqueTensor, dim_index: i32) -> i32,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueTensorGetNumDimsSignature: Result<
        unsafe extern "C" fn(
            opaque_tensor: *const TfLiteOpaqueTensor,
            num_dims: *mut i32,
        ) -> TfLiteStatus,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueTensorGetDimSignature: Result<
        unsafe extern "C" fn(
            opaque_tensor: *const TfLiteOpaqueTensor,
            dim_index: i32,
            dim_length: *mut i32,
        ) -> TfLiteStatus,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueTensorIsVariable: Result<
        unsafe extern "C" fn(opaque_tensor: *const TfLiteOpaqueTensor) -> ::std::os::raw::c_int,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueTensorByteSize: Result<
        unsafe extern "C" fn(opaque_tensor: *const TfLiteOpaqueTensor) -> usize,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueTensorData: Result<
        unsafe extern "C" fn(
            opaque_tensor: *const TfLiteOpaqueTensor,
        ) -> *mut ::std::os::raw::c_void,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueTensorGetAllocationType: Result<
        unsafe extern "C" fn(opaque_tensor: *const TfLiteOpaqueTensor) -> TfLiteAllocationType,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueTensorGetAllocationStrategy: Result<
        unsafe extern "C" fn(t: *const TfLiteOpaqueTensor) -> TfLiteAllocationStrategy,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueTensorGetBufferAddressStability: Result<
        unsafe extern "C" fn(t: *const TfLiteOpaqueTensor) -> TfLiteRunStability,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueTensorGetDataStability: Result<
        unsafe extern "C" fn(t: *const TfLiteOpaqueTensor) -> TfLiteRunStability,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueTensorGetDataKnownStep: Result<
        unsafe extern "C" fn(t: *const TfLiteOpaqueTensor) -> TfLiteRunStep,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueTensorGetShapeKnownStep: Result<
        unsafe extern "C" fn(t: *const TfLiteOpaqueTensor) -> TfLiteRunStep,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueTensorName: Result<
        unsafe extern "C" fn(
            opaque_tensor: *const TfLiteOpaqueTensor,
        ) -> *const ::std::os::raw::c_char,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueTensorGetQuantization: Result<
        unsafe extern "C" fn(opaque_tensor: *const TfLiteOpaqueTensor) -> TfLiteQuantization,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueTensorGetQuantizationParams: Result<
        unsafe extern "C" fn(opaque_tensor: *const TfLiteOpaqueTensor) -> TfLiteQuantizationParams,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueTensorCopyFromBuffer: Result<
        unsafe extern "C" fn(
            opaque_tensor: *mut TfLiteOpaqueTensor,
            input_data: *const ::std::os::raw::c_void,
            input_data_size: usize,
        ) -> TfLiteStatus,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueTensorCopyToBuffer: Result<
        unsafe extern "C" fn(
            opaque_tensor: *const TfLiteOpaqueTensor,
            output_data: *mut ::std::os::raw::c_void,
            output_data_size: usize,
        ) -> TfLiteStatus,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueTensorGetStringCount: Result<
        unsafe extern "C" fn(tensor: *const TfLiteOpaqueTensor) -> ::std::os::raw::c_int,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueTensorGetString: Result<
        unsafe extern "C" fn(
            tensor: *const TfLiteOpaqueTensor,
            index: ::std::os::raw::c_int,
            str_: *mut *const ::std::os::raw::c_char,
            len: *mut ::std::os::raw::c_int,
        ) -> TfLiteStatus,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueTensorWriteStrings: Result<
        unsafe extern "C" fn(
            tensor: *mut TfLiteOpaqueTensor,
            str_array: *const *const ::std::os::raw::c_char,
            str_array_len: ::std::os::raw::c_int,
            str_n_len: *const ::std::os::raw::c_int,
        ) -> TfLiteStatus,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueTensorWriteString: Result<
        unsafe extern "C" fn(
            tensor: *mut TfLiteOpaqueTensor,
            str_: *const ::std::os::raw::c_char,
            len: ::std::os::raw::c_int,
        ) -> TfLiteStatus,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueTensorBuilderCreate:
        Result<unsafe extern "C" fn() -> *mut TfLiteOpaqueTensorBuilder, ::libloading::Error>,
    pub TfLiteOpaqueTensorBuilderDelete:
        Result<unsafe extern "C" fn(builder: *mut TfLiteOpaqueTensorBuilder), ::libloading::Error>,
    pub TfLiteOpaqueTensorBuilderSetType: Result<
        unsafe extern "C" fn(
            builder: *mut TfLiteOpaqueTensorBuilder,
            type_: TfLiteType,
        ) -> *mut TfLiteOpaqueTensorBuilder,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueTensorBuilderSetData: Result<
        unsafe extern "C" fn(
            builder: *mut TfLiteOpaqueTensorBuilder,
            data: *mut ::std::os::raw::c_void,
        ) -> *mut TfLiteOpaqueTensorBuilder,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueTensorBuilderSetAllocationType: Result<
        unsafe extern "C" fn(
            builder: *mut TfLiteOpaqueTensorBuilder,
            allocation_type: TfLiteAllocationType,
        ) -> *mut TfLiteOpaqueTensorBuilder,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueTensorBuilderSetQuantizationParams: Result<
        unsafe extern "C" fn(
            builder: *mut TfLiteOpaqueTensorBuilder,
            params: TfLiteQuantizationParams,
        ) -> *mut TfLiteOpaqueTensorBuilder,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueTensorBuilderSetQuantization: Result<
        unsafe extern "C" fn(
            builder: *mut TfLiteOpaqueTensorBuilder,
            quantization: TfLiteQuantization,
        ) -> *mut TfLiteOpaqueTensorBuilder,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueTensorSetAllocationTypeToDynamic:
        Result<unsafe extern "C" fn(tensor: *mut TfLiteOpaqueTensor), ::libloading::Error>,
    pub TfLiteOpaqueNodeGetInput: Result<
        unsafe extern "C" fn(
            opaque_context: *const TfLiteOpaqueContext,
            opaque_node: *const TfLiteOpaqueNode,
            index: ::std::os::raw::c_int,
        ) -> *const TfLiteOpaqueTensor,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueNodeGetOutput: Result<
        unsafe extern "C" fn(
            opaque_context: *mut TfLiteOpaqueContext,
            opaque_node: *const TfLiteOpaqueNode,
            index: ::std::os::raw::c_int,
        ) -> *mut TfLiteOpaqueTensor,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueNodeNumberOfInputs: Result<
        unsafe extern "C" fn(opaque_node: *const TfLiteOpaqueNode) -> ::std::os::raw::c_int,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueNodeNumberOfOutputs: Result<
        unsafe extern "C" fn(opaque_node: *const TfLiteOpaqueNode) -> ::std::os::raw::c_int,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueNodeGetUserData: Result<
        unsafe extern "C" fn(opaque_node: *const TfLiteOpaqueNode) -> *mut ::std::os::raw::c_void,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueNodeGetBuiltinData: Result<
        unsafe extern "C" fn(opaque_node: *const TfLiteOpaqueNode) -> *mut ::std::os::raw::c_void,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueNodeGetCustomInitialData: Result<
        unsafe extern "C" fn(
            opaque_node: *const TfLiteOpaqueNode,
            init_data: *mut *const ::std::os::raw::c_void,
            size: *mut ::std::os::raw::c_int,
        ) -> TfLiteStatus,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueNodeInputs: Result<
        unsafe extern "C" fn(
            opaque_node: *const TfLiteOpaqueNode,
            inputs: *mut *const ::std::os::raw::c_int,
            num_inputs: *mut ::std::os::raw::c_int,
        ) -> TfLiteStatus,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueNodeOutputs: Result<
        unsafe extern "C" fn(
            opaque_node: *const TfLiteOpaqueNode,
            outputs: *mut *const ::std::os::raw::c_int,
            num_outputs: *mut ::std::os::raw::c_int,
        ) -> TfLiteStatus,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueNodeSetTemporaries: Result<
        unsafe extern "C" fn(
            opaque_node: *mut TfLiteOpaqueNode,
            temporaries: *const ::std::os::raw::c_int,
            num_temporaries: ::std::os::raw::c_int,
        ) -> TfLiteStatus,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueNodeTemporaries: Result<
        unsafe extern "C" fn(
            opaque_node: *const TfLiteOpaqueNode,
            temporaries: *mut *const ::std::os::raw::c_int,
            num_temporaries: *mut ::std::os::raw::c_int,
        ) -> TfLiteStatus,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueNodeGetInputTensorIndex: Result<
        unsafe extern "C" fn(
            opaque_node: *const TfLiteOpaqueNode,
            index_of_input: ::std::os::raw::c_int,
        ) -> ::std::os::raw::c_int,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueNodeGetOutputTensorIndex: Result<
        unsafe extern "C" fn(
            opaque_node: *const TfLiteOpaqueNode,
            index_of_output: ::std::os::raw::c_int,
        ) -> ::std::os::raw::c_int,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueContextGetExecutionPlan: Result<
        unsafe extern "C" fn(
            opaque_context: *mut TfLiteOpaqueContext,
            execution_plan: *mut *mut TfLiteIntArray,
        ) -> TfLiteStatus,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueContextGetExternalContext: Result<
        unsafe extern "C" fn(
            opaque_context: *mut TfLiteOpaqueContext,
            external_context: *mut *mut ::std::os::raw::c_void,
            type_: TfLiteExternalContextType,
        ) -> TfLiteStatus,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueContextGetNodeAndRegistration: Result<
        unsafe extern "C" fn(
            opaque_context: *mut TfLiteOpaqueContext,
            node_index: ::std::os::raw::c_int,
            node: *mut *mut TfLiteOpaqueNode,
            registration_external: *mut *mut TfLiteOperator,
        ) -> TfLiteStatus,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueContextReplaceNodeSubsetsWithDelegateKernels: Result<
        unsafe extern "C" fn(
            opaque_context: *mut TfLiteOpaqueContext,
            registration_external: *mut TfLiteOperator,
            nodes_to_replace: *const TfLiteIntArray,
            opaque_delegate: *mut TfLiteOpaqueDelegate,
        ) -> TfLiteStatus,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueContextGetOpaqueTensor: Result<
        unsafe extern "C" fn(
            opaque_context: *const TfLiteOpaqueContext,
            index: ::std::os::raw::c_int,
        ) -> *mut TfLiteOpaqueTensor,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueContextGetInputs: Result<
        unsafe extern "C" fn(
            opaque_context: *const TfLiteOpaqueContext,
            inputs: *mut *const ::std::os::raw::c_int,
            num_inputs: *mut ::std::os::raw::c_int,
        ) -> TfLiteStatus,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueContextGetOutputs: Result<
        unsafe extern "C" fn(
            opaque_context: *const TfLiteOpaqueContext,
            outputs: *mut *const ::std::os::raw::c_int,
            num_outputs: *mut ::std::os::raw::c_int,
        ) -> TfLiteStatus,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueContextGetVariables: Result<
        unsafe extern "C" fn(
            opaque_context: *const TfLiteOpaqueContext,
            variables: *mut *const ::std::os::raw::c_int,
            num_variables: *mut ::std::os::raw::c_int,
        ) -> TfLiteStatus,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueContextGetNumNodes: Result<
        unsafe extern "C" fn(opaque_context: *const TfLiteOpaqueContext) -> usize,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueContextGetNumTensors: Result<
        unsafe extern "C" fn(opaque_context: *const TfLiteOpaqueContext) -> usize,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueContextGetName: Result<
        unsafe extern "C" fn(
            opaque_context: *const TfLiteOpaqueContext,
        ) -> *const ::std::os::raw::c_char,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueContextResizeTensor: Result<
        unsafe extern "C" fn(
            context: *mut TfLiteOpaqueContext,
            tensor: *mut TfLiteOpaqueTensor,
            new_size: *mut TfLiteIntArray,
        ) -> TfLiteStatus,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueContextAcquireSubgraphContext: Result<
        unsafe extern "C" fn(
            opaque_context: *mut TfLiteOpaqueContext,
            subgraph_index: ::std::os::raw::c_int,
            acquired_opaque_context: *mut *mut TfLiteOpaqueContext,
        ) -> TfLiteStatus,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueContextReleaseSubgraphContext: Result<
        unsafe extern "C" fn(
            opaque_context: *mut TfLiteOpaqueContext,
            subgraph_index: ::std::os::raw::c_int,
        ) -> TfLiteStatus,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueContextMarkSubgraphAsDelegationSkippable: Result<
        unsafe extern "C" fn(
            opaque_context: *mut TfLiteOpaqueContext,
            subgraph_index: ::std::os::raw::c_int,
        ) -> TfLiteStatus,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueContextGetNodeInitDataMmapInfo: Result<
        unsafe extern "C" fn(
            context: *const TfLiteOpaqueContext,
            node: *const TfLiteOpaqueNode,
            fd: *mut ::std::os::raw::c_int,
            custom_initial_data_offset_in_file: *mut i64,
            custom_initial_data_size: *mut i64,
        ) -> TfLiteStatus,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueContextAddTensor: Result<
        unsafe extern "C" fn(
            context: *mut TfLiteOpaqueContext,
            builder: *mut TfLiteOpaqueTensorBuilder,
            new_tensor_index: *mut ::std::os::raw::c_int,
        ) -> TfLiteStatus,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueContextGetSizeOfType: Result<
        unsafe extern "C" fn(
            context: *mut TfLiteOpaqueContext,
            type_: TfLiteType,
            bytes: *mut usize,
        ) -> TfLiteStatus,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueContextGetMetadata: Result<
        unsafe extern "C" fn(
            context: *mut TfLiteOpaqueContext,
            name: *const ::std::os::raw::c_char,
            ptr: *mut *const ::std::os::raw::c_char,
            bytes: *mut usize,
        ) -> TfLiteStatus,
        ::libloading::Error,
    >,
    pub TfLiteOpaqueContextReportError: Result<
        unsafe extern "C" fn(
            opaque_context: *mut TfLiteOpaqueContext,
            format: *const ::std::os::raw::c_char,
            ...
        ),
        ::libloading::Error,
    >,
    pub TfLiteOpaqueContextReportErrorVa: Result<
        unsafe extern "C" fn(
            opaque_context: *mut TfLiteOpaqueContext,
            format: *const ::std::os::raw::c_char,
            vlist: *mut __va_list_tag,
        ),
        ::libloading::Error,
    >,
}
impl tensorflowlite_c {
    pub unsafe fn new<P>(path: P) -> Result<Self, ::libloading::Error>
    where
        P: ::libloading::AsFilename,
    {
        let library = unsafe { ::libloading::Library::new(path) }?;
        unsafe { Self::from_library(library) }
    }

    pub unsafe fn from_library<L>(library: L) -> Result<Self, ::libloading::Error>
    where
        L: Into<::libloading::Library>,
    {
        let __library = library.into();
        let TfLiteOperatorCreate =
            unsafe { __library.get(b"TfLiteOperatorCreate\0") }.map(|sym| *sym);
        let TfLiteOperatorDelete =
            unsafe { __library.get(b"TfLiteOperatorDelete\0") }.map(|sym| *sym);
        let TfLiteOperatorGetBuiltInCode =
            unsafe { __library.get(b"TfLiteOperatorGetBuiltInCode\0") }.map(|sym| *sym);
        let TfLiteOperatorGetCustomName =
            unsafe { __library.get(b"TfLiteOperatorGetCustomName\0") }.map(|sym| *sym);
        let TfLiteOperatorGetVersion =
            unsafe { __library.get(b"TfLiteOperatorGetVersion\0") }.map(|sym| *sym);
        let TfLiteOperatorGetUserData =
            unsafe { __library.get(b"TfLiteOperatorGetUserData\0") }.map(|sym| *sym);
        let TfLiteOperatorSetInit =
            unsafe { __library.get(b"TfLiteOperatorSetInit\0") }.map(|sym| *sym);
        let TfLiteOperatorSetInitWithData =
            unsafe { __library.get(b"TfLiteOperatorSetInitWithData\0") }.map(|sym| *sym);
        let TfLiteOperatorSetFree =
            unsafe { __library.get(b"TfLiteOperatorSetFree\0") }.map(|sym| *sym);
        let TfLiteOperatorSetFreeWithData =
            unsafe { __library.get(b"TfLiteOperatorSetFreeWithData\0") }.map(|sym| *sym);
        let TfLiteOperatorSetPrepare =
            unsafe { __library.get(b"TfLiteOperatorSetPrepare\0") }.map(|sym| *sym);
        let TfLiteOperatorSetPrepareWithData =
            unsafe { __library.get(b"TfLiteOperatorSetPrepareWithData\0") }.map(|sym| *sym);
        let TfLiteOperatorSetInvoke =
            unsafe { __library.get(b"TfLiteOperatorSetInvoke\0") }.map(|sym| *sym);
        let TfLiteOperatorSetInvokeWithData =
            unsafe { __library.get(b"TfLiteOperatorSetInvokeWithData\0") }.map(|sym| *sym);
        let TfLiteOperatorSetAsyncKernel =
            unsafe { __library.get(b"TfLiteOperatorSetAsyncKernel\0") }.map(|sym| *sym);
        let TfLiteOperatorSetAsyncKernelWithData =
            unsafe { __library.get(b"TfLiteOperatorSetAsyncKernelWithData\0") }.map(|sym| *sym);
        let TfLiteOperatorSetInplaceOperator =
            unsafe { __library.get(b"TfLiteOperatorSetInplaceOperator\0") }.map(|sym| *sym);
        let TfLiteVersion = unsafe { __library.get(b"TfLiteVersion\0") }.map(|sym| *sym);
        let TfLiteExtensionApisVersion =
            unsafe { __library.get(b"TfLiteExtensionApisVersion\0") }.map(|sym| *sym);
        let TfLiteSchemaVersion =
            unsafe { __library.get(b"TfLiteSchemaVersion\0") }.map(|sym| *sym);
        let TfLiteModelCreate = unsafe { __library.get(b"TfLiteModelCreate\0") }.map(|sym| *sym);
        let TfLiteModelCreateWithErrorReporter =
            unsafe { __library.get(b"TfLiteModelCreateWithErrorReporter\0") }.map(|sym| *sym);
        let TfLiteModelCreateFromFile =
            unsafe { __library.get(b"TfLiteModelCreateFromFile\0") }.map(|sym| *sym);
        let TfLiteModelCreateFromFileWithErrorReporter =
            unsafe { __library.get(b"TfLiteModelCreateFromFileWithErrorReporter\0") }
                .map(|sym| *sym);
        let TfLiteModelDelete = unsafe { __library.get(b"TfLiteModelDelete\0") }.map(|sym| *sym);
        let TfLiteInterpreterOptionsCreate =
            unsafe { __library.get(b"TfLiteInterpreterOptionsCreate\0") }.map(|sym| *sym);
        let TfLiteInterpreterOptionsCopy =
            unsafe { __library.get(b"TfLiteInterpreterOptionsCopy\0") }.map(|sym| *sym);
        let TfLiteInterpreterOptionsDelete =
            unsafe { __library.get(b"TfLiteInterpreterOptionsDelete\0") }.map(|sym| *sym);
        let TfLiteInterpreterOptionsSetNumThreads =
            unsafe { __library.get(b"TfLiteInterpreterOptionsSetNumThreads\0") }.map(|sym| *sym);
        let TfLiteInterpreterOptionsAddDelegate =
            unsafe { __library.get(b"TfLiteInterpreterOptionsAddDelegate\0") }.map(|sym| *sym);
        let TfLiteInterpreterOptionsSetErrorReporter =
            unsafe { __library.get(b"TfLiteInterpreterOptionsSetErrorReporter\0") }.map(|sym| *sym);
        let TfLiteInterpreterOptionsAddOperator =
            unsafe { __library.get(b"TfLiteInterpreterOptionsAddOperator\0") }.map(|sym| *sym);
        let TfLiteInterpreterOptionsEnableCancellation =
            unsafe { __library.get(b"TfLiteInterpreterOptionsEnableCancellation\0") }
                .map(|sym| *sym);
        let TfLiteInterpreterCreate =
            unsafe { __library.get(b"TfLiteInterpreterCreate\0") }.map(|sym| *sym);
        let TfLiteInterpreterDelete =
            unsafe { __library.get(b"TfLiteInterpreterDelete\0") }.map(|sym| *sym);
        let TfLiteInterpreterGetInputTensorCount =
            unsafe { __library.get(b"TfLiteInterpreterGetInputTensorCount\0") }.map(|sym| *sym);
        let TfLiteInterpreterInputTensorIndices =
            unsafe { __library.get(b"TfLiteInterpreterInputTensorIndices\0") }.map(|sym| *sym);
        let TfLiteInterpreterGetInputTensor =
            unsafe { __library.get(b"TfLiteInterpreterGetInputTensor\0") }.map(|sym| *sym);
        let TfLiteInterpreterResizeInputTensor =
            unsafe { __library.get(b"TfLiteInterpreterResizeInputTensor\0") }.map(|sym| *sym);
        let TfLiteInterpreterAllocateTensors =
            unsafe { __library.get(b"TfLiteInterpreterAllocateTensors\0") }.map(|sym| *sym);
        let TfLiteInterpreterInvoke =
            unsafe { __library.get(b"TfLiteInterpreterInvoke\0") }.map(|sym| *sym);
        let TfLiteInterpreterGetOutputTensorCount =
            unsafe { __library.get(b"TfLiteInterpreterGetOutputTensorCount\0") }.map(|sym| *sym);
        let TfLiteInterpreterOutputTensorIndices =
            unsafe { __library.get(b"TfLiteInterpreterOutputTensorIndices\0") }.map(|sym| *sym);
        let TfLiteInterpreterGetOutputTensor =
            unsafe { __library.get(b"TfLiteInterpreterGetOutputTensor\0") }.map(|sym| *sym);
        let TfLiteInterpreterGetTensor =
            unsafe { __library.get(b"TfLiteInterpreterGetTensor\0") }.map(|sym| *sym);
        let TfLiteInterpreterCancel =
            unsafe { __library.get(b"TfLiteInterpreterCancel\0") }.map(|sym| *sym);
        let TfLiteInterpreterGetSignatureCount =
            unsafe { __library.get(b"TfLiteInterpreterGetSignatureCount\0") }.map(|sym| *sym);
        let TfLiteInterpreterGetSignatureKey =
            unsafe { __library.get(b"TfLiteInterpreterGetSignatureKey\0") }.map(|sym| *sym);
        let TfLiteInterpreterGetSignatureRunner =
            unsafe { __library.get(b"TfLiteInterpreterGetSignatureRunner\0") }.map(|sym| *sym);
        let TfLiteSignatureRunnerGetInputCount =
            unsafe { __library.get(b"TfLiteSignatureRunnerGetInputCount\0") }.map(|sym| *sym);
        let TfLiteSignatureRunnerGetInputName =
            unsafe { __library.get(b"TfLiteSignatureRunnerGetInputName\0") }.map(|sym| *sym);
        let TfLiteSignatureRunnerResizeInputTensor =
            unsafe { __library.get(b"TfLiteSignatureRunnerResizeInputTensor\0") }.map(|sym| *sym);
        let TfLiteSignatureRunnerAllocateTensors =
            unsafe { __library.get(b"TfLiteSignatureRunnerAllocateTensors\0") }.map(|sym| *sym);
        let TfLiteSignatureRunnerGetInputTensor =
            unsafe { __library.get(b"TfLiteSignatureRunnerGetInputTensor\0") }.map(|sym| *sym);
        let TfLiteSignatureRunnerInvoke =
            unsafe { __library.get(b"TfLiteSignatureRunnerInvoke\0") }.map(|sym| *sym);
        let TfLiteSignatureRunnerGetOutputCount =
            unsafe { __library.get(b"TfLiteSignatureRunnerGetOutputCount\0") }.map(|sym| *sym);
        let TfLiteSignatureRunnerGetOutputName =
            unsafe { __library.get(b"TfLiteSignatureRunnerGetOutputName\0") }.map(|sym| *sym);
        let TfLiteSignatureRunnerGetOutputTensor =
            unsafe { __library.get(b"TfLiteSignatureRunnerGetOutputTensor\0") }.map(|sym| *sym);
        let TfLiteTensorType = unsafe { __library.get(b"TfLiteTensorType\0") }.map(|sym| *sym);
        let TfLiteTensorNumDims =
            unsafe { __library.get(b"TfLiteTensorNumDims\0") }.map(|sym| *sym);
        let TfLiteTensorDim = unsafe { __library.get(b"TfLiteTensorDim\0") }.map(|sym| *sym);
        let TfLiteTensorByteSize =
            unsafe { __library.get(b"TfLiteTensorByteSize\0") }.map(|sym| *sym);
        let TfLiteTensorData = unsafe { __library.get(b"TfLiteTensorData\0") }.map(|sym| *sym);
        let TfLiteTensorName = unsafe { __library.get(b"TfLiteTensorName\0") }.map(|sym| *sym);
        let TfLiteTensorQuantizationParams =
            unsafe { __library.get(b"TfLiteTensorQuantizationParams\0") }.map(|sym| *sym);
        let TfLiteTensorCopyFromBuffer =
            unsafe { __library.get(b"TfLiteTensorCopyFromBuffer\0") }.map(|sym| *sym);
        let TfLiteTensorCopyToBuffer =
            unsafe { __library.get(b"TfLiteTensorCopyToBuffer\0") }.map(|sym| *sym);
        let TfLiteSignatureRunnerDelete =
            unsafe { __library.get(b"TfLiteSignatureRunnerDelete\0") }.map(|sym| *sym);
        let TfLiteIntArrayGetSizeInBytes =
            unsafe { __library.get(b"TfLiteIntArrayGetSizeInBytes\0") }.map(|sym| *sym);
        let TfLiteIntArrayCreate =
            unsafe { __library.get(b"TfLiteIntArrayCreate\0") }.map(|sym| *sym);
        let TfLiteIntArrayEqual =
            unsafe { __library.get(b"TfLiteIntArrayEqual\0") }.map(|sym| *sym);
        let TfLiteIntArrayEqualsArray =
            unsafe { __library.get(b"TfLiteIntArrayEqualsArray\0") }.map(|sym| *sym);
        let TfLiteIntArrayCopy = unsafe { __library.get(b"TfLiteIntArrayCopy\0") }.map(|sym| *sym);
        let TfLiteIntArrayFree = unsafe { __library.get(b"TfLiteIntArrayFree\0") }.map(|sym| *sym);
        let TfLiteFloatArrayGetSizeInBytes =
            unsafe { __library.get(b"TfLiteFloatArrayGetSizeInBytes\0") }.map(|sym| *sym);
        let TfLiteFloatArrayCreate =
            unsafe { __library.get(b"TfLiteFloatArrayCreate\0") }.map(|sym| *sym);
        let TfLiteFloatArrayCopy =
            unsafe { __library.get(b"TfLiteFloatArrayCopy\0") }.map(|sym| *sym);
        let TfLiteFloatArrayFree =
            unsafe { __library.get(b"TfLiteFloatArrayFree\0") }.map(|sym| *sym);
        let TfLiteTypeGetName = unsafe { __library.get(b"TfLiteTypeGetName\0") }.map(|sym| *sym);
        let TfLiteTensorDataFree =
            unsafe { __library.get(b"TfLiteTensorDataFree\0") }.map(|sym| *sym);
        let TfLiteQuantizationFree =
            unsafe { __library.get(b"TfLiteQuantizationFree\0") }.map(|sym| *sym);
        let TfLiteSparsityFree = unsafe { __library.get(b"TfLiteSparsityFree\0") }.map(|sym| *sym);
        let TfLiteTensorFree = unsafe { __library.get(b"TfLiteTensorFree\0") }.map(|sym| *sym);
        let TfLiteTensorReset = unsafe { __library.get(b"TfLiteTensorReset\0") }.map(|sym| *sym);
        let TfLiteTensorCopy = unsafe { __library.get(b"TfLiteTensorCopy\0") }.map(|sym| *sym);
        let TfLiteTensorResizeMaybeCopy =
            unsafe { __library.get(b"TfLiteTensorResizeMaybeCopy\0") }.map(|sym| *sym);
        let TfLiteTensorRealloc =
            unsafe { __library.get(b"TfLiteTensorRealloc\0") }.map(|sym| *sym);
        let TfLiteDelegateCreate =
            unsafe { __library.get(b"TfLiteDelegateCreate\0") }.map(|sym| *sym);
        let TfLiteOpaqueDelegateCreate =
            unsafe { __library.get(b"TfLiteOpaqueDelegateCreate\0") }.map(|sym| *sym);
        let TfLiteOpaqueDelegateDelete =
            unsafe { __library.get(b"TfLiteOpaqueDelegateDelete\0") }.map(|sym| *sym);
        let TfLiteOpaqueDelegateGetData =
            unsafe { __library.get(b"TfLiteOpaqueDelegateGetData\0") }.map(|sym| *sym);
        let TfLiteTensorGetAllocationStrategy =
            unsafe { __library.get(b"TfLiteTensorGetAllocationStrategy\0") }.map(|sym| *sym);
        let TfLiteTensorGetBufferAddressStability =
            unsafe { __library.get(b"TfLiteTensorGetBufferAddressStability\0") }.map(|sym| *sym);
        let TfLiteTensorGetDataStability =
            unsafe { __library.get(b"TfLiteTensorGetDataStability\0") }.map(|sym| *sym);
        let TfLiteTensorGetDataKnownStep =
            unsafe { __library.get(b"TfLiteTensorGetDataKnownStep\0") }.map(|sym| *sym);
        let TfLiteTensorGetShapeKnownStep =
            unsafe { __library.get(b"TfLiteTensorGetShapeKnownStep\0") }.map(|sym| *sym);
        let TfLiteOpaqueTensorType =
            unsafe { __library.get(b"TfLiteOpaqueTensorType\0") }.map(|sym| *sym);
        let TfLiteOpaqueTensorNumDims =
            unsafe { __library.get(b"TfLiteOpaqueTensorNumDims\0") }.map(|sym| *sym);
        let TfLiteOpaqueTensorDim =
            unsafe { __library.get(b"TfLiteOpaqueTensorDim\0") }.map(|sym| *sym);
        let TfLiteOpaqueTensorGetNumDimsSignature =
            unsafe { __library.get(b"TfLiteOpaqueTensorGetNumDimsSignature\0") }.map(|sym| *sym);
        let TfLiteOpaqueTensorGetDimSignature =
            unsafe { __library.get(b"TfLiteOpaqueTensorGetDimSignature\0") }.map(|sym| *sym);
        let TfLiteOpaqueTensorIsVariable =
            unsafe { __library.get(b"TfLiteOpaqueTensorIsVariable\0") }.map(|sym| *sym);
        let TfLiteOpaqueTensorByteSize =
            unsafe { __library.get(b"TfLiteOpaqueTensorByteSize\0") }.map(|sym| *sym);
        let TfLiteOpaqueTensorData =
            unsafe { __library.get(b"TfLiteOpaqueTensorData\0") }.map(|sym| *sym);
        let TfLiteOpaqueTensorGetAllocationType =
            unsafe { __library.get(b"TfLiteOpaqueTensorGetAllocationType\0") }.map(|sym| *sym);
        let TfLiteOpaqueTensorGetAllocationStrategy =
            unsafe { __library.get(b"TfLiteOpaqueTensorGetAllocationStrategy\0") }.map(|sym| *sym);
        let TfLiteOpaqueTensorGetBufferAddressStability =
            unsafe { __library.get(b"TfLiteOpaqueTensorGetBufferAddressStability\0") }
                .map(|sym| *sym);
        let TfLiteOpaqueTensorGetDataStability =
            unsafe { __library.get(b"TfLiteOpaqueTensorGetDataStability\0") }.map(|sym| *sym);
        let TfLiteOpaqueTensorGetDataKnownStep =
            unsafe { __library.get(b"TfLiteOpaqueTensorGetDataKnownStep\0") }.map(|sym| *sym);
        let TfLiteOpaqueTensorGetShapeKnownStep =
            unsafe { __library.get(b"TfLiteOpaqueTensorGetShapeKnownStep\0") }.map(|sym| *sym);
        let TfLiteOpaqueTensorName =
            unsafe { __library.get(b"TfLiteOpaqueTensorName\0") }.map(|sym| *sym);
        let TfLiteOpaqueTensorGetQuantization =
            unsafe { __library.get(b"TfLiteOpaqueTensorGetQuantization\0") }.map(|sym| *sym);
        let TfLiteOpaqueTensorGetQuantizationParams =
            unsafe { __library.get(b"TfLiteOpaqueTensorGetQuantizationParams\0") }.map(|sym| *sym);
        let TfLiteOpaqueTensorCopyFromBuffer =
            unsafe { __library.get(b"TfLiteOpaqueTensorCopyFromBuffer\0") }.map(|sym| *sym);
        let TfLiteOpaqueTensorCopyToBuffer =
            unsafe { __library.get(b"TfLiteOpaqueTensorCopyToBuffer\0") }.map(|sym| *sym);
        let TfLiteOpaqueTensorGetStringCount =
            unsafe { __library.get(b"TfLiteOpaqueTensorGetStringCount\0") }.map(|sym| *sym);
        let TfLiteOpaqueTensorGetString =
            unsafe { __library.get(b"TfLiteOpaqueTensorGetString\0") }.map(|sym| *sym);
        let TfLiteOpaqueTensorWriteStrings =
            unsafe { __library.get(b"TfLiteOpaqueTensorWriteStrings\0") }.map(|sym| *sym);
        let TfLiteOpaqueTensorWriteString =
            unsafe { __library.get(b"TfLiteOpaqueTensorWriteString\0") }.map(|sym| *sym);
        let TfLiteOpaqueTensorBuilderCreate =
            unsafe { __library.get(b"TfLiteOpaqueTensorBuilderCreate\0") }.map(|sym| *sym);
        let TfLiteOpaqueTensorBuilderDelete =
            unsafe { __library.get(b"TfLiteOpaqueTensorBuilderDelete\0") }.map(|sym| *sym);
        let TfLiteOpaqueTensorBuilderSetType =
            unsafe { __library.get(b"TfLiteOpaqueTensorBuilderSetType\0") }.map(|sym| *sym);
        let TfLiteOpaqueTensorBuilderSetData =
            unsafe { __library.get(b"TfLiteOpaqueTensorBuilderSetData\0") }.map(|sym| *sym);
        let TfLiteOpaqueTensorBuilderSetAllocationType =
            unsafe { __library.get(b"TfLiteOpaqueTensorBuilderSetAllocationType\0") }
                .map(|sym| *sym);
        let TfLiteOpaqueTensorBuilderSetQuantizationParams =
            unsafe { __library.get(b"TfLiteOpaqueTensorBuilderSetQuantizationParams\0") }
                .map(|sym| *sym);
        let TfLiteOpaqueTensorBuilderSetQuantization =
            unsafe { __library.get(b"TfLiteOpaqueTensorBuilderSetQuantization\0") }.map(|sym| *sym);
        let TfLiteOpaqueTensorSetAllocationTypeToDynamic =
            unsafe { __library.get(b"TfLiteOpaqueTensorSetAllocationTypeToDynamic\0") }
                .map(|sym| *sym);
        let TfLiteOpaqueNodeGetInput =
            unsafe { __library.get(b"TfLiteOpaqueNodeGetInput\0") }.map(|sym| *sym);
        let TfLiteOpaqueNodeGetOutput =
            unsafe { __library.get(b"TfLiteOpaqueNodeGetOutput\0") }.map(|sym| *sym);
        let TfLiteOpaqueNodeNumberOfInputs =
            unsafe { __library.get(b"TfLiteOpaqueNodeNumberOfInputs\0") }.map(|sym| *sym);
        let TfLiteOpaqueNodeNumberOfOutputs =
            unsafe { __library.get(b"TfLiteOpaqueNodeNumberOfOutputs\0") }.map(|sym| *sym);
        let TfLiteOpaqueNodeGetUserData =
            unsafe { __library.get(b"TfLiteOpaqueNodeGetUserData\0") }.map(|sym| *sym);
        let TfLiteOpaqueNodeGetBuiltinData =
            unsafe { __library.get(b"TfLiteOpaqueNodeGetBuiltinData\0") }.map(|sym| *sym);
        let TfLiteOpaqueNodeGetCustomInitialData =
            unsafe { __library.get(b"TfLiteOpaqueNodeGetCustomInitialData\0") }.map(|sym| *sym);
        let TfLiteOpaqueNodeInputs =
            unsafe { __library.get(b"TfLiteOpaqueNodeInputs\0") }.map(|sym| *sym);
        let TfLiteOpaqueNodeOutputs =
            unsafe { __library.get(b"TfLiteOpaqueNodeOutputs\0") }.map(|sym| *sym);
        let TfLiteOpaqueNodeSetTemporaries =
            unsafe { __library.get(b"TfLiteOpaqueNodeSetTemporaries\0") }.map(|sym| *sym);
        let TfLiteOpaqueNodeTemporaries =
            unsafe { __library.get(b"TfLiteOpaqueNodeTemporaries\0") }.map(|sym| *sym);
        let TfLiteOpaqueNodeGetInputTensorIndex =
            unsafe { __library.get(b"TfLiteOpaqueNodeGetInputTensorIndex\0") }.map(|sym| *sym);
        let TfLiteOpaqueNodeGetOutputTensorIndex =
            unsafe { __library.get(b"TfLiteOpaqueNodeGetOutputTensorIndex\0") }.map(|sym| *sym);
        let TfLiteOpaqueContextGetExecutionPlan =
            unsafe { __library.get(b"TfLiteOpaqueContextGetExecutionPlan\0") }.map(|sym| *sym);
        let TfLiteOpaqueContextGetExternalContext =
            unsafe { __library.get(b"TfLiteOpaqueContextGetExternalContext\0") }.map(|sym| *sym);
        let TfLiteOpaqueContextGetNodeAndRegistration =
            unsafe { __library.get(b"TfLiteOpaqueContextGetNodeAndRegistration\0") }
                .map(|sym| *sym);
        let TfLiteOpaqueContextReplaceNodeSubsetsWithDelegateKernels =
            unsafe { __library.get(b"TfLiteOpaqueContextReplaceNodeSubsetsWithDelegateKernels\0") }
                .map(|sym| *sym);
        let TfLiteOpaqueContextGetOpaqueTensor =
            unsafe { __library.get(b"TfLiteOpaqueContextGetOpaqueTensor\0") }.map(|sym| *sym);
        let TfLiteOpaqueContextGetInputs =
            unsafe { __library.get(b"TfLiteOpaqueContextGetInputs\0") }.map(|sym| *sym);
        let TfLiteOpaqueContextGetOutputs =
            unsafe { __library.get(b"TfLiteOpaqueContextGetOutputs\0") }.map(|sym| *sym);
        let TfLiteOpaqueContextGetVariables =
            unsafe { __library.get(b"TfLiteOpaqueContextGetVariables\0") }.map(|sym| *sym);
        let TfLiteOpaqueContextGetNumNodes =
            unsafe { __library.get(b"TfLiteOpaqueContextGetNumNodes\0") }.map(|sym| *sym);
        let TfLiteOpaqueContextGetNumTensors =
            unsafe { __library.get(b"TfLiteOpaqueContextGetNumTensors\0") }.map(|sym| *sym);
        let TfLiteOpaqueContextGetName =
            unsafe { __library.get(b"TfLiteOpaqueContextGetName\0") }.map(|sym| *sym);
        let TfLiteOpaqueContextResizeTensor =
            unsafe { __library.get(b"TfLiteOpaqueContextResizeTensor\0") }.map(|sym| *sym);
        let TfLiteOpaqueContextAcquireSubgraphContext =
            unsafe { __library.get(b"TfLiteOpaqueContextAcquireSubgraphContext\0") }
                .map(|sym| *sym);
        let TfLiteOpaqueContextReleaseSubgraphContext =
            unsafe { __library.get(b"TfLiteOpaqueContextReleaseSubgraphContext\0") }
                .map(|sym| *sym);
        let TfLiteOpaqueContextMarkSubgraphAsDelegationSkippable =
            unsafe { __library.get(b"TfLiteOpaqueContextMarkSubgraphAsDelegationSkippable\0") }
                .map(|sym| *sym);
        let TfLiteOpaqueContextGetNodeInitDataMmapInfo =
            unsafe { __library.get(b"TfLiteOpaqueContextGetNodeInitDataMmapInfo\0") }
                .map(|sym| *sym);
        let TfLiteOpaqueContextAddTensor =
            unsafe { __library.get(b"TfLiteOpaqueContextAddTensor\0") }.map(|sym| *sym);
        let TfLiteOpaqueContextGetSizeOfType =
            unsafe { __library.get(b"TfLiteOpaqueContextGetSizeOfType\0") }.map(|sym| *sym);
        let TfLiteOpaqueContextGetMetadata =
            unsafe { __library.get(b"TfLiteOpaqueContextGetMetadata\0") }.map(|sym| *sym);
        let TfLiteOpaqueContextReportError =
            unsafe { __library.get(b"TfLiteOpaqueContextReportError\0") }.map(|sym| *sym);
        let TfLiteOpaqueContextReportErrorVa =
            unsafe { __library.get(b"TfLiteOpaqueContextReportErrorVa\0") }.map(|sym| *sym);
        Ok(tensorflowlite_c {
            __library,
            TfLiteOperatorCreate,
            TfLiteOperatorDelete,
            TfLiteOperatorGetBuiltInCode,
            TfLiteOperatorGetCustomName,
            TfLiteOperatorGetVersion,
            TfLiteOperatorGetUserData,
            TfLiteOperatorSetInit,
            TfLiteOperatorSetInitWithData,
            TfLiteOperatorSetFree,
            TfLiteOperatorSetFreeWithData,
            TfLiteOperatorSetPrepare,
            TfLiteOperatorSetPrepareWithData,
            TfLiteOperatorSetInvoke,
            TfLiteOperatorSetInvokeWithData,
            TfLiteOperatorSetAsyncKernel,
            TfLiteOperatorSetAsyncKernelWithData,
            TfLiteOperatorSetInplaceOperator,
            TfLiteVersion,
            TfLiteExtensionApisVersion,
            TfLiteSchemaVersion,
            TfLiteModelCreate,
            TfLiteModelCreateWithErrorReporter,
            TfLiteModelCreateFromFile,
            TfLiteModelCreateFromFileWithErrorReporter,
            TfLiteModelDelete,
            TfLiteInterpreterOptionsCreate,
            TfLiteInterpreterOptionsCopy,
            TfLiteInterpreterOptionsDelete,
            TfLiteInterpreterOptionsSetNumThreads,
            TfLiteInterpreterOptionsAddDelegate,
            TfLiteInterpreterOptionsSetErrorReporter,
            TfLiteInterpreterOptionsAddOperator,
            TfLiteInterpreterOptionsEnableCancellation,
            TfLiteInterpreterCreate,
            TfLiteInterpreterDelete,
            TfLiteInterpreterGetInputTensorCount,
            TfLiteInterpreterInputTensorIndices,
            TfLiteInterpreterGetInputTensor,
            TfLiteInterpreterResizeInputTensor,
            TfLiteInterpreterAllocateTensors,
            TfLiteInterpreterInvoke,
            TfLiteInterpreterGetOutputTensorCount,
            TfLiteInterpreterOutputTensorIndices,
            TfLiteInterpreterGetOutputTensor,
            TfLiteInterpreterGetTensor,
            TfLiteInterpreterCancel,
            TfLiteInterpreterGetSignatureCount,
            TfLiteInterpreterGetSignatureKey,
            TfLiteInterpreterGetSignatureRunner,
            TfLiteSignatureRunnerGetInputCount,
            TfLiteSignatureRunnerGetInputName,
            TfLiteSignatureRunnerResizeInputTensor,
            TfLiteSignatureRunnerAllocateTensors,
            TfLiteSignatureRunnerGetInputTensor,
            TfLiteSignatureRunnerInvoke,
            TfLiteSignatureRunnerGetOutputCount,
            TfLiteSignatureRunnerGetOutputName,
            TfLiteSignatureRunnerGetOutputTensor,
            TfLiteTensorType,
            TfLiteTensorNumDims,
            TfLiteTensorDim,
            TfLiteTensorByteSize,
            TfLiteTensorData,
            TfLiteTensorName,
            TfLiteTensorQuantizationParams,
            TfLiteTensorCopyFromBuffer,
            TfLiteTensorCopyToBuffer,
            TfLiteSignatureRunnerDelete,
            TfLiteIntArrayGetSizeInBytes,
            TfLiteIntArrayCreate,
            TfLiteIntArrayEqual,
            TfLiteIntArrayEqualsArray,
            TfLiteIntArrayCopy,
            TfLiteIntArrayFree,
            TfLiteFloatArrayGetSizeInBytes,
            TfLiteFloatArrayCreate,
            TfLiteFloatArrayCopy,
            TfLiteFloatArrayFree,
            TfLiteTypeGetName,
            TfLiteTensorDataFree,
            TfLiteQuantizationFree,
            TfLiteSparsityFree,
            TfLiteTensorFree,
            TfLiteTensorReset,
            TfLiteTensorCopy,
            TfLiteTensorResizeMaybeCopy,
            TfLiteTensorRealloc,
            TfLiteDelegateCreate,
            TfLiteOpaqueDelegateCreate,
            TfLiteOpaqueDelegateDelete,
            TfLiteOpaqueDelegateGetData,
            TfLiteTensorGetAllocationStrategy,
            TfLiteTensorGetBufferAddressStability,
            TfLiteTensorGetDataStability,
            TfLiteTensorGetDataKnownStep,
            TfLiteTensorGetShapeKnownStep,
            TfLiteOpaqueTensorType,
            TfLiteOpaqueTensorNumDims,
            TfLiteOpaqueTensorDim,
            TfLiteOpaqueTensorGetNumDimsSignature,
            TfLiteOpaqueTensorGetDimSignature,
            TfLiteOpaqueTensorIsVariable,
            TfLiteOpaqueTensorByteSize,
            TfLiteOpaqueTensorData,
            TfLiteOpaqueTensorGetAllocationType,
            TfLiteOpaqueTensorGetAllocationStrategy,
            TfLiteOpaqueTensorGetBufferAddressStability,
            TfLiteOpaqueTensorGetDataStability,
            TfLiteOpaqueTensorGetDataKnownStep,
            TfLiteOpaqueTensorGetShapeKnownStep,
            TfLiteOpaqueTensorName,
            TfLiteOpaqueTensorGetQuantization,
            TfLiteOpaqueTensorGetQuantizationParams,
            TfLiteOpaqueTensorCopyFromBuffer,
            TfLiteOpaqueTensorCopyToBuffer,
            TfLiteOpaqueTensorGetStringCount,
            TfLiteOpaqueTensorGetString,
            TfLiteOpaqueTensorWriteStrings,
            TfLiteOpaqueTensorWriteString,
            TfLiteOpaqueTensorBuilderCreate,
            TfLiteOpaqueTensorBuilderDelete,
            TfLiteOpaqueTensorBuilderSetType,
            TfLiteOpaqueTensorBuilderSetData,
            TfLiteOpaqueTensorBuilderSetAllocationType,
            TfLiteOpaqueTensorBuilderSetQuantizationParams,
            TfLiteOpaqueTensorBuilderSetQuantization,
            TfLiteOpaqueTensorSetAllocationTypeToDynamic,
            TfLiteOpaqueNodeGetInput,
            TfLiteOpaqueNodeGetOutput,
            TfLiteOpaqueNodeNumberOfInputs,
            TfLiteOpaqueNodeNumberOfOutputs,
            TfLiteOpaqueNodeGetUserData,
            TfLiteOpaqueNodeGetBuiltinData,
            TfLiteOpaqueNodeGetCustomInitialData,
            TfLiteOpaqueNodeInputs,
            TfLiteOpaqueNodeOutputs,
            TfLiteOpaqueNodeSetTemporaries,
            TfLiteOpaqueNodeTemporaries,
            TfLiteOpaqueNodeGetInputTensorIndex,
            TfLiteOpaqueNodeGetOutputTensorIndex,
            TfLiteOpaqueContextGetExecutionPlan,
            TfLiteOpaqueContextGetExternalContext,
            TfLiteOpaqueContextGetNodeAndRegistration,
            TfLiteOpaqueContextReplaceNodeSubsetsWithDelegateKernels,
            TfLiteOpaqueContextGetOpaqueTensor,
            TfLiteOpaqueContextGetInputs,
            TfLiteOpaqueContextGetOutputs,
            TfLiteOpaqueContextGetVariables,
            TfLiteOpaqueContextGetNumNodes,
            TfLiteOpaqueContextGetNumTensors,
            TfLiteOpaqueContextGetName,
            TfLiteOpaqueContextResizeTensor,
            TfLiteOpaqueContextAcquireSubgraphContext,
            TfLiteOpaqueContextReleaseSubgraphContext,
            TfLiteOpaqueContextMarkSubgraphAsDelegationSkippable,
            TfLiteOpaqueContextGetNodeInitDataMmapInfo,
            TfLiteOpaqueContextAddTensor,
            TfLiteOpaqueContextGetSizeOfType,
            TfLiteOpaqueContextGetMetadata,
            TfLiteOpaqueContextReportError,
            TfLiteOpaqueContextReportErrorVa,
        })
    }

    #[doc = " Returns a new TfLiteOperator instance.\n\n The returned TfLiteOperator instance represents a definition\n of an operator with the identity (builtin_code/custom_name and\n version) specified by the parameters, but with all callbacks initially\n unset.\n\n Evaluation of any operation using this operator will be done using\n the \"prepare\" and \"invoke\" callbacks, which can be set using\n `TfLiteOperatorSetPrepare` and\n `TfLiteOperatorSetInvoke`, or for async execution\n the \"prepare\", \"eval\", and \"wait\" callbacks of the `TfLiteAsyncKernel`,\n which can be set using `TfLiteOperatorSetAsyncKernel`.\n If the relevant callbacks are not set, then such evaluation will result\n in an error status.  So normally any use of this function should be followed\n by appropriate calls to set those callbacks.\n\n \\note The caller retains ownership and should ensure that\n the lifetime of the `TfLiteOperator` must be at least as long as\n the lifetime of any `TfLiteInterpreter` or `tflite::Interpreter` that it is\n used in.\n\n \\param builtin_code Enumeration code specifying which builtin operator this\n                     defines, or `TfLiteBuiltinCustom` to define a custom op.\n \\param custom_name  Name of the custom op, or `nullptr` for a builtin op.\n                     If `custom_name` is non-null, then `builtin_code` should\n                     be `TfLiteBuiltinCustom`.\n \\param version      Version of the op.  See\n                     https://www.tensorflow.org/lite/guide/ops_version\n \\param user_data    Opaque pointer passed to the operator's callbacks set\n                     with functions such as `TfLiteOperatorSetXXXWithData`.\n                     The user is expected to manage the memory pointed by\n                     this field and the lifetime of that memory should extend\n                     at least from the call to `TfLiteOperatorCreate`\n                     to the invocation of the callback set with\n                     `TfLiteOperatorSetFreeWithData`.\n\n \\return a newly created TfLiteOperator on success, or a nullptr on failure"]
    pub unsafe fn TfLiteOperatorCreate(
        &self,
        builtin_code: TfLiteBuiltinOperator,
        custom_name: *const ::std::os::raw::c_char,
        version: ::std::os::raw::c_int,
        user_data: *mut ::std::os::raw::c_void,
    ) -> *mut TfLiteOperator {
        unsafe {
            (self
                .TfLiteOperatorCreate
                .as_ref()
                .expect("Expected function, got error."))(
                builtin_code,
                custom_name,
                version,
                user_data,
            )
        }
    }

    #[doc = " Destroys the TfLiteOperator instance.\n"]
    pub unsafe fn TfLiteOperatorDelete(&self, registration: *mut TfLiteOperator) {
        unsafe {
            (self
                .TfLiteOperatorDelete
                .as_ref()
                .expect("Expected function, got error."))(registration)
        }
    }

    #[doc = " Return the builtin op code of the provided external 'registration'.\n"]
    pub unsafe fn TfLiteOperatorGetBuiltInCode(
        &self,
        registration: *const TfLiteOperator,
    ) -> TfLiteBuiltinOperator {
        unsafe {
            (self
                .TfLiteOperatorGetBuiltInCode
                .as_ref()
                .expect("Expected function, got error."))(registration)
        }
    }

    #[doc = " Returns the custom name of the provided 'registration'. The returned pointer\n will be non-null iff the op is a custom op.\n"]
    pub unsafe fn TfLiteOperatorGetCustomName(
        &self,
        registration: *const TfLiteOperator,
    ) -> *const ::std::os::raw::c_char {
        unsafe {
            (self
                .TfLiteOperatorGetCustomName
                .as_ref()
                .expect("Expected function, got error."))(registration)
        }
    }

    #[doc = " Return the OP version of the provided external 'registration'.  Return -1\n in case of error, or if the provided address is null.\n"]
    pub unsafe fn TfLiteOperatorGetVersion(
        &self,
        registration: *const TfLiteOperator,
    ) -> ::std::os::raw::c_int {
        unsafe {
            (self
                .TfLiteOperatorGetVersion
                .as_ref()
                .expect("Expected function, got error."))(registration)
        }
    }

    #[doc = " Return the user data field of the provided external 'registration', or\n nullptr if none was set.\n"]
    pub unsafe fn TfLiteOperatorGetUserData(
        &self,
        registration: *const TfLiteOperator,
    ) -> *mut ::std::os::raw::c_void {
        unsafe {
            (self
                .TfLiteOperatorGetUserData
                .as_ref()
                .expect("Expected function, got error."))(registration)
        }
    }

    #[doc = " Sets the initialization callback for the registration.\n\n The callback is called to initialize the op from serialized data.\n Please refer `init` of `TfLiteRegistration` for the detail.\n\n Deprecated: Use `TfLiteOperatorSetInitWithData`"]
    pub unsafe fn TfLiteOperatorSetInit(
        &self,
        registration: *mut TfLiteOperator,
        init: ::std::option::Option<
            unsafe extern "C" fn(
                context: *mut TfLiteOpaqueContext,
                buffer: *const ::std::os::raw::c_char,
                length: usize,
            ) -> *mut ::std::os::raw::c_void,
        >,
    ) {
        unsafe {
            (self
                .TfLiteOperatorSetInit
                .as_ref()
                .expect("Expected function, got error."))(registration, init)
        }
    }

    #[doc = " Sets the initialization callback for the registration. The function returns\n an error upon failure.\n\n The callback is called to initialize the op from serialized data. The value\n passed in the `user_data` parameter is the value that was passed to\n `TfLiteOperatorCreate`.  Please refer `init` of `TfLiteRegistration`\n for the detail.\n"]
    pub unsafe fn TfLiteOperatorSetInitWithData(
        &self,
        registration: *mut TfLiteOperator,
        init: ::std::option::Option<
            unsafe extern "C" fn(
                user_data: *mut ::std::os::raw::c_void,
                context: *mut TfLiteOpaqueContext,
                buffer: *const ::std::os::raw::c_char,
                length: usize,
            ) -> *mut ::std::os::raw::c_void,
        >,
    ) -> TfLiteStatus {
        unsafe {
            (self
                .TfLiteOperatorSetInitWithData
                .as_ref()
                .expect("Expected function, got error."))(registration, init)
        }
    }

    #[doc = " Sets the deallocation callback for the registration.\n\n This callback is called to deallocate the data returned by the init\n callback. The value passed in the `data` parameter is the value that was\n returned by the `init` callback. Please refer `free` of `TfLiteRegistration`\n for the detail.\n\n Deprecated: Use `TfLiteOperatorSetFreeWithData`"]
    pub unsafe fn TfLiteOperatorSetFree(
        &self,
        registration: *mut TfLiteOperator,
        free: ::std::option::Option<
            unsafe extern "C" fn(
                context: *mut TfLiteOpaqueContext,
                data: *mut ::std::os::raw::c_void,
            ),
        >,
    ) {
        unsafe {
            (self
                .TfLiteOperatorSetFree
                .as_ref()
                .expect("Expected function, got error."))(registration, free)
        }
    }

    #[doc = " Sets the deallocation callback for the registration, similarly to\n `TfLiteOperatorSetFree`. The function returns an error upon failure.\n\n This callback is called to deallocate the data returned by the init\n callback. The value passed in the `data` parameter is the value that was\n returned by the `init` callback. The value passed in the `user_data`\n parameter is the value that was passed to `TfLiteOperatorCreate`.\n Please refer `free` of `TfLiteRegistration` for the detail.\n"]
    pub unsafe fn TfLiteOperatorSetFreeWithData(
        &self,
        registration: *mut TfLiteOperator,
        free: ::std::option::Option<
            unsafe extern "C" fn(
                user_data: *mut ::std::os::raw::c_void,
                context: *mut TfLiteOpaqueContext,
                data: *mut ::std::os::raw::c_void,
            ),
        >,
    ) -> TfLiteStatus {
        unsafe {
            (self
                .TfLiteOperatorSetFreeWithData
                .as_ref()
                .expect("Expected function, got error."))(registration, free)
        }
    }

    #[doc = " Sets the preparation callback for the registration.\n\n The callback is called when the inputs of operator have been resized.\n Please refer `prepare` of `TfLiteRegistration` for the detail.\n\n Deprecated: Use `TfLiteOperatorSetPrepareWithData`"]
    pub unsafe fn TfLiteOperatorSetPrepare(
        &self,
        registration: *mut TfLiteOperator,
        prepare: ::std::option::Option<
            unsafe extern "C" fn(
                context: *mut TfLiteOpaqueContext,
                node: *mut TfLiteOpaqueNode,
            ) -> TfLiteStatus,
        >,
    ) {
        unsafe {
            (self
                .TfLiteOperatorSetPrepare
                .as_ref()
                .expect("Expected function, got error."))(registration, prepare)
        }
    }

    #[doc = " Sets the preparation callback for the registration. The function returns an\n error upon failure.\n\n The callback is called when the inputs of operator have been resized.  The\n value passed in the `user_data` parameter is the value that was passed to\n `TfLiteOperatorCreate`.  Please refer `prepare` of\n `TfLiteRegistration` for the detail.\n"]
    pub unsafe fn TfLiteOperatorSetPrepareWithData(
        &self,
        registration: *mut TfLiteOperator,
        prepare: ::std::option::Option<
            unsafe extern "C" fn(
                user_data: *mut ::std::os::raw::c_void,
                context: *mut TfLiteOpaqueContext,
                node: *mut TfLiteOpaqueNode,
            ) -> TfLiteStatus,
        >,
    ) -> TfLiteStatus {
        unsafe {
            (self
                .TfLiteOperatorSetPrepareWithData
                .as_ref()
                .expect("Expected function, got error."))(registration, prepare)
        }
    }

    #[doc = " Sets the invocation callback for the registration.\n\n The callback is called when the operator is executed.\n Please refer `invoke` of `TfLiteRegistration` for the detail.\n\n Deprecated: Use `TfLiteOperatorSetInvokeWithData`"]
    pub unsafe fn TfLiteOperatorSetInvoke(
        &self,
        registration: *mut TfLiteOperator,
        invoke: ::std::option::Option<
            unsafe extern "C" fn(
                context: *mut TfLiteOpaqueContext,
                node: *mut TfLiteOpaqueNode,
            ) -> TfLiteStatus,
        >,
    ) {
        unsafe {
            (self
                .TfLiteOperatorSetInvoke
                .as_ref()
                .expect("Expected function, got error."))(registration, invoke)
        }
    }

    #[doc = " Sets the invocation callback for the registration. The function returns an\n error upon failure.\n\n The callback is called when the operator is executed.  The value passed in\n the `user_data` parameter is the value that was passed to\n `TfLiteOperatorCreate`.  Please refer `invoke` of `TfLiteRegistration` for\n the detail.\n"]
    pub unsafe fn TfLiteOperatorSetInvokeWithData(
        &self,
        registration: *mut TfLiteOperator,
        invoke: ::std::option::Option<
            unsafe extern "C" fn(
                user_data: *mut ::std::os::raw::c_void,
                context: *mut TfLiteOpaqueContext,
                node: *mut TfLiteOpaqueNode,
            ) -> TfLiteStatus,
        >,
    ) -> TfLiteStatus {
        unsafe {
            (self
                .TfLiteOperatorSetInvokeWithData
                .as_ref()
                .expect("Expected function, got error."))(registration, invoke)
        }
    }

    #[doc = " Sets the async kernel accessor callback for the registration.\n\n The callback is called to retrieve the async kernel if the delegate supports\n it. If the delegate does not support async execution, either this function\n should not be called, or `async_kernel` needs to be nullptr.\n `node` is the delegate TfLiteNode created by `ModifyGraphWithDelegate`.\n Please refer `async_kernel` of `TfLiteRegistration` for the detail.\n\n \\warning This is an experimental API and subject to change.\n Deprecated: Use `TfLiteOperatorSetAsyncKernelWithData`"]
    pub unsafe fn TfLiteOperatorSetAsyncKernel(
        &self,
        registration: *mut TfLiteOperator,
        async_kernel: ::std::option::Option<
            unsafe extern "C" fn(
                context: *mut TfLiteOpaqueContext,
                node: *mut TfLiteOpaqueNode,
            ) -> *mut TfLiteAsyncKernel,
        >,
    ) {
        unsafe {
            (self
                .TfLiteOperatorSetAsyncKernel
                .as_ref()
                .expect("Expected function, got error."))(registration, async_kernel)
        }
    }

    #[doc = " Sets the async kernel accessor callback for the registration. The function\n returns an error upon failure.\n\n The callback is called to retrieve the async kernel if the delegate supports\n it. If the delegate does not support async execution, either this function\n should not be called, or `async_kernel` needs to be nullptr.  `node` is the\n delegate TfLiteNode created by `ModifyGraphWithDelegate`.  The value passed\n in the `user_data` parameter is the value that was passed to\n `TfLiteOperatorCreate`.  Please refer `async_kernel` of `TfLiteRegistration`\n for the detail.\n\n \\warning This is an experimental API and subject to change."]
    pub unsafe fn TfLiteOperatorSetAsyncKernelWithData(
        &self,
        registration: *mut TfLiteOperator,
        async_kernel: ::std::option::Option<
            unsafe extern "C" fn(
                user_data: *mut ::std::os::raw::c_void,
                context: *mut TfLiteOpaqueContext,
                node: *mut TfLiteOpaqueNode,
            ) -> *mut TfLiteAsyncKernel,
        >,
    ) -> TfLiteStatus {
        unsafe {
            (self
                .TfLiteOperatorSetAsyncKernelWithData
                .as_ref()
                .expect("Expected function, got error."))(registration, async_kernel)
        }
    }

    #[doc = " Sets the inplace_operator field of the external registration.\n\n This is a bitmask. Please refer to `inplace_operator` field of\n `TfLiteRegistration` for details.\n"]
    pub unsafe fn TfLiteOperatorSetInplaceOperator(
        &self,
        registration: *mut TfLiteOperator,
        inplace_operator: u64,
    ) {
        unsafe {
            (self
                .TfLiteOperatorSetInplaceOperator
                .as_ref()
                .expect("Expected function, got error."))(registration, inplace_operator)
        }
    }

    #[doc = " The TensorFlow Lite Runtime version.\n\n Returns a pointer to a statically allocated string that is the version\n number of the (potentially dynamically loaded) TF Lite Runtime library.\n TensorFlow Lite uses semantic versioning, and the return value should be\n in semver 2 format <http://semver.org>, starting with MAJOR.MINOR.PATCH,\n e.g. \"2.12.0\" or \"2.13.0-rc2\"."]
    pub unsafe fn TfLiteVersion(&self) -> *const ::std::os::raw::c_char {
        unsafe {
            (self
                .TfLiteVersion
                .as_ref()
                .expect("Expected function, got error."))()
        }
    }

    #[doc = " The TensorFlow Lite Extension APIs version.\n\n Returns a pointer to a statically allocated string that is the version\n number of the TF Lite Extension APIs supported by the (potentially\n dynamically loaded) TF Lite Runtime library.  The TF Lite \"Extension APIs\"\n are the APIs for extending TF Lite with custom ops and delegates.\n More specifically, this version number covers the (non-experimental)\n functionality documented in the following header files:\n\n   * lite/c/c_api_opaque.h\n   * lite/c/common.h\n   * lite/c/builtin_op_data.h\n   * lite/builtin_ops.h\n\n This version number uses semantic versioning, and the return value should\n be in semver 2 format <http://semver.org>, starting with MAJOR.MINOR.PATCH,\n e.g. \"2.14.0\" or \"2.15.0-rc2\"."]
    pub unsafe fn TfLiteExtensionApisVersion(&self) -> *const ::std::os::raw::c_char {
        unsafe {
            (self
                .TfLiteExtensionApisVersion
                .as_ref()
                .expect("Expected function, got error."))()
        }
    }

    #[doc = " The supported TensorFlow Lite model file Schema version.\n\n Returns the (major) version number of the Schema used for model\n files that is supported by the (potentially dynamically loaded)\n TensorFlow Lite Runtime.\n\n Model files using schema versions different to this may not be supported by\n the current version of the TF Lite Runtime."]
    pub unsafe fn TfLiteSchemaVersion(&self) -> ::std::os::raw::c_int {
        unsafe {
            (self
                .TfLiteSchemaVersion
                .as_ref()
                .expect("Expected function, got error."))()
        }
    }

    #[doc = " Returns a model from the provided buffer, or null on failure.\n\n \\note The caller retains ownership of the `model_data` buffer and should\n ensure that the lifetime of the `model_data` buffer must be at least as long\n as the lifetime of the `TfLiteModel` and of any `TfLiteInterpreter` objects\n created from that `TfLiteModel`, and furthermore the contents of the\n `model_data` buffer must not be modified during that time.\""]
    pub unsafe fn TfLiteModelCreate(
        &self,
        model_data: *const ::std::os::raw::c_void,
        model_size: usize,
    ) -> *mut TfLiteModel {
        unsafe {
            (self
                .TfLiteModelCreate
                .as_ref()
                .expect("Expected function, got error."))(model_data, model_size)
        }
    }

    #[doc = " Same as `TfLiteModelCreate` with customizble error reporter.\n * `reporter` takes the provided `user_data` object, as well as a C-style\n   format string and arg list (see also vprintf).\n * `user_data` is optional. If non-null, it is owned by the client and must\n   remain valid for the duration of the interpreter lifetime."]
    pub unsafe fn TfLiteModelCreateWithErrorReporter(
        &self,
        model_data: *const ::std::os::raw::c_void,
        model_size: usize,
        reporter: ::std::option::Option<
            unsafe extern "C" fn(
                user_data: *mut ::std::os::raw::c_void,
                format: *const ::std::os::raw::c_char,
                args: *mut __va_list_tag,
            ),
        >,
        user_data: *mut ::std::os::raw::c_void,
    ) -> *mut TfLiteModel {
        unsafe {
            (self
                .TfLiteModelCreateWithErrorReporter
                .as_ref()
                .expect("Expected function, got error."))(
                model_data, model_size, reporter, user_data,
            )
        }
    }

    #[doc = " Returns a model from the provided file, or null on failure.\n\n \\note The file's contents must not be modified during the lifetime of the\n `TfLiteModel` or of any `TfLiteInterpreter` objects created from that\n `TfLiteModel`."]
    pub unsafe fn TfLiteModelCreateFromFile(
        &self,
        model_path: *const ::std::os::raw::c_char,
    ) -> *mut TfLiteModel {
        unsafe {
            (self
                .TfLiteModelCreateFromFile
                .as_ref()
                .expect("Expected function, got error."))(model_path)
        }
    }

    #[doc = " Same as `TfLiteModelCreateFromFile` with customizble error reporter.\n * `reporter` takes the provided `user_data` object, as well as a C-style\n   format string and arg list (see also vprintf).\n * `user_data` is optional. If non-null, it is owned by the client and must\n   remain valid for the duration of the interpreter lifetime."]
    pub unsafe fn TfLiteModelCreateFromFileWithErrorReporter(
        &self,
        model_path: *const ::std::os::raw::c_char,
        reporter: ::std::option::Option<
            unsafe extern "C" fn(
                user_data: *mut ::std::os::raw::c_void,
                format: *const ::std::os::raw::c_char,
                args: *mut __va_list_tag,
            ),
        >,
        user_data: *mut ::std::os::raw::c_void,
    ) -> *mut TfLiteModel {
        unsafe {
            (self
                .TfLiteModelCreateFromFileWithErrorReporter
                .as_ref()
                .expect("Expected function, got error."))(
                model_path, reporter, user_data
            )
        }
    }

    #[doc = " Destroys the model instance."]
    pub unsafe fn TfLiteModelDelete(&self, model: *mut TfLiteModel) {
        unsafe {
            (self
                .TfLiteModelDelete
                .as_ref()
                .expect("Expected function, got error."))(model)
        }
    }

    #[doc = " Returns a new interpreter options instances."]
    pub unsafe fn TfLiteInterpreterOptionsCreate(&self) -> *mut TfLiteInterpreterOptions {
        unsafe {
            (self
                .TfLiteInterpreterOptionsCreate
                .as_ref()
                .expect("Expected function, got error."))()
        }
    }

    #[doc = " Creates and returns a shallow copy of an options object.\n\n The caller is responsible for calling `TfLiteInterpreterOptionsDelete` to\n deallocate the object pointed to by the returned pointer."]
    pub unsafe fn TfLiteInterpreterOptionsCopy(
        &self,
        from: *const TfLiteInterpreterOptions,
    ) -> *mut TfLiteInterpreterOptions {
        unsafe {
            (self
                .TfLiteInterpreterOptionsCopy
                .as_ref()
                .expect("Expected function, got error."))(from)
        }
    }

    #[doc = " Destroys the interpreter options instance."]
    pub unsafe fn TfLiteInterpreterOptionsDelete(&self, options: *mut TfLiteInterpreterOptions) {
        unsafe {
            (self
                .TfLiteInterpreterOptionsDelete
                .as_ref()
                .expect("Expected function, got error."))(options)
        }
    }

    #[doc = " Sets the number of CPU threads to use for the interpreter."]
    pub unsafe fn TfLiteInterpreterOptionsSetNumThreads(
        &self,
        options: *mut TfLiteInterpreterOptions,
        num_threads: i32,
    ) {
        unsafe {
            (self
                .TfLiteInterpreterOptionsSetNumThreads
                .as_ref()
                .expect("Expected function, got error."))(options, num_threads)
        }
    }

    #[doc = " Adds a delegate to be applied during `TfLiteInterpreter` creation.\n\n If delegate application fails, interpreter creation will also fail with an\n associated error logged.\n\n \\note The caller retains ownership of the delegate and should ensure that it\n remains valid for the duration of any created interpreter's lifetime.\n\n If you are NOT using \"TensorFlow Lite in Play Services\", and NOT building\n with `TFLITE_WITH_STABLE_ABI` or `TFLITE_USE_OPAQUE_DELEGATE` macros\n enabled, it is possible to pass a `TfLiteDelegate*` rather than a\n `TfLiteOpaqueDelegate*` to this function, since in those cases,\n `TfLiteOpaqueDelegate` is just a typedef alias for `TfLiteDelegate`.\n This is for compatibility with existing source code\n and existing delegates.  For new delegates, it is recommended to\n use `TfLiteOpaqueDelegate` rather than `TfLiteDelegate`.  (See\n `TfLiteOpaqueDelegate` in tensorflow/lite/core/c/c_api_types.h.)"]
    pub unsafe fn TfLiteInterpreterOptionsAddDelegate(
        &self,
        options: *mut TfLiteInterpreterOptions,
        delegate: *mut TfLiteOpaqueDelegate,
    ) {
        unsafe {
            (self
                .TfLiteInterpreterOptionsAddDelegate
                .as_ref()
                .expect("Expected function, got error."))(options, delegate)
        }
    }

    #[doc = " Sets a custom error reporter for interpreter execution.\n\n * `reporter` takes the provided `user_data` object, as well as a C-style\n   format string and arg list (see also vprintf).\n * `user_data` is optional. If non-null, it is owned by the client and must\n   remain valid for the duration of the interpreter lifetime."]
    pub unsafe fn TfLiteInterpreterOptionsSetErrorReporter(
        &self,
        options: *mut TfLiteInterpreterOptions,
        reporter: ::std::option::Option<
            unsafe extern "C" fn(
                user_data: *mut ::std::os::raw::c_void,
                format: *const ::std::os::raw::c_char,
                args: *mut __va_list_tag,
            ),
        >,
        user_data: *mut ::std::os::raw::c_void,
    ) {
        unsafe {
            (self
                .TfLiteInterpreterOptionsSetErrorReporter
                .as_ref()
                .expect("Expected function, got error."))(options, reporter, user_data)
        }
    }

    #[doc = " Adds an op registration to be applied during `TfLiteInterpreter` creation.\n\n The `TfLiteOperator` object is needed to implement custom op of\n TFLite Interpreter via C API. Calling this function ensures that any\n `TfLiteInterpreter` created with the specified `options` can execute models\n that use the custom operator specified in `registration`.\n Please refer https://www.tensorflow.org/lite/guide/ops_custom for custom op\n support.\n \\note The caller retains ownership of the TfLiteOperator object\n and should ensure that it remains valid for the duration of any created\n interpreter's lifetime.\n \\warning This is an experimental API and subject to change."]
    pub unsafe fn TfLiteInterpreterOptionsAddOperator(
        &self,
        options: *mut TfLiteInterpreterOptions,
        registration: *mut TfLiteOperator,
    ) {
        unsafe {
            (self
                .TfLiteInterpreterOptionsAddOperator
                .as_ref()
                .expect("Expected function, got error."))(options, registration)
        }
    }

    #[doc = " Enables users to cancel in-flight invocations with\n `TfLiteInterpreterCancel`.\n\n By default it is disabled and calling to `TfLiteInterpreterCancel` will\n return kTfLiteError. See `TfLiteInterpreterCancel`."]
    pub unsafe fn TfLiteInterpreterOptionsEnableCancellation(
        &self,
        options: *mut TfLiteInterpreterOptions,
        enable: bool,
    ) -> TfLiteStatus {
        unsafe {
            (self
                .TfLiteInterpreterOptionsEnableCancellation
                .as_ref()
                .expect("Expected function, got error."))(options, enable)
        }
    }

    #[doc = " Returns a new interpreter using the provided model and options, or null on\n failure.\n\n * `model` must be a valid model instance. The caller retains ownership of\n   the object, and may destroy it (via TfLiteModelDelete) immediately after\n   creating the interpreter.  However, if the TfLiteModel was allocated with\n   TfLiteModelCreate, then the `model_data` buffer that was passed to\n   TfLiteModelCreate must outlive the lifetime of the TfLiteInterpreter\n   object that this function returns, and must not be modified during that\n   time; and if the TfLiteModel was allocated with TfLiteModelCreateFromFile,\n   then the contents of the model file must not be modified during the\n   lifetime of the TfLiteInterpreter object that this function returns.\n * `optional_options` may be null. The caller retains ownership of the\n   object, and can safely destroy it (via TfLiteInterpreterOptionsDelete)\n   immediately after creating the interpreter.\n\n \\note The client *must* explicitly allocate tensors before attempting to\n access input tensor data or invoke the interpreter."]
    pub unsafe fn TfLiteInterpreterCreate(
        &self,
        model: *const TfLiteModel,
        optional_options: *const TfLiteInterpreterOptions,
    ) -> *mut TfLiteInterpreter {
        unsafe {
            (self
                .TfLiteInterpreterCreate
                .as_ref()
                .expect("Expected function, got error."))(model, optional_options)
        }
    }

    #[doc = " Destroys the interpreter."]
    pub unsafe fn TfLiteInterpreterDelete(&self, interpreter: *mut TfLiteInterpreter) {
        unsafe {
            (self
                .TfLiteInterpreterDelete
                .as_ref()
                .expect("Expected function, got error."))(interpreter)
        }
    }

    #[doc = " Returns the number of input tensors associated with the model."]
    pub unsafe fn TfLiteInterpreterGetInputTensorCount(
        &self,
        interpreter: *const TfLiteInterpreter,
    ) -> i32 {
        unsafe {
            (self
                .TfLiteInterpreterGetInputTensorCount
                .as_ref()
                .expect("Expected function, got error."))(interpreter)
        }
    }

    #[doc = " Returns a pointer to an array of input tensor indices.  The length of the\n array can be obtained via a call to `TfLiteInterpreterGetInputTensorCount`.\n\n Typically the input tensors associated with an `interpreter` would be set\n during the initialization of the `interpreter`, through a mechanism like the\n `InterpreterBuilder`, and remain unchanged throughout the lifetime of the\n interpreter.  However, there are some circumstances in which the pointer may\n not remain valid throughout the lifetime of the interpreter, because calls\n to `SetInputs` on the interpreter invalidate the returned pointer.\n\n The ownership of the array remains with the TFLite runtime."]
    pub unsafe fn TfLiteInterpreterInputTensorIndices(
        &self,
        interpreter: *const TfLiteInterpreter,
    ) -> *const ::std::os::raw::c_int {
        unsafe {
            (self
                .TfLiteInterpreterInputTensorIndices
                .as_ref()
                .expect("Expected function, got error."))(interpreter)
        }
    }

    #[doc = " Returns the tensor associated with the input index.\n REQUIRES: 0 <= input_index < TfLiteInterpreterGetInputTensorCount(tensor)"]
    pub unsafe fn TfLiteInterpreterGetInputTensor(
        &self,
        interpreter: *const TfLiteInterpreter,
        input_index: i32,
    ) -> *mut TfLiteTensor {
        unsafe {
            (self
                .TfLiteInterpreterGetInputTensor
                .as_ref()
                .expect("Expected function, got error."))(interpreter, input_index)
        }
    }

    #[doc = " Resizes the specified input tensor.\n\n \\note After a resize, the client *must* explicitly allocate tensors before\n attempting to access the resized tensor data or invoke the interpreter.\n\n REQUIRES: 0 <= input_index < TfLiteInterpreterGetInputTensorCount(tensor)\n\n This function makes a copy of the input dimensions, so the client can safely\n deallocate `input_dims` immediately after this function returns."]
    pub unsafe fn TfLiteInterpreterResizeInputTensor(
        &self,
        interpreter: *mut TfLiteInterpreter,
        input_index: i32,
        input_dims: *const ::std::os::raw::c_int,
        input_dims_size: i32,
    ) -> TfLiteStatus {
        unsafe {
            (self
                .TfLiteInterpreterResizeInputTensor
                .as_ref()
                .expect("Expected function, got error."))(
                interpreter,
                input_index,
                input_dims,
                input_dims_size,
            )
        }
    }

    #[doc = " Updates allocations for all tensors, resizing dependent tensors using the\n specified input tensor dimensionality.\n\n This is a relatively expensive operation, and need only be called after\n creating the graph and/or resizing any inputs."]
    pub unsafe fn TfLiteInterpreterAllocateTensors(
        &self,
        interpreter: *mut TfLiteInterpreter,
    ) -> TfLiteStatus {
        unsafe {
            (self
                .TfLiteInterpreterAllocateTensors
                .as_ref()
                .expect("Expected function, got error."))(interpreter)
        }
    }

    #[doc = " Runs inference for the loaded graph.\n\n Before calling this function, the caller should first invoke\n TfLiteInterpreterAllocateTensors() and should also set the values for the\n input tensors.  After successfully calling this function, the values for the\n output tensors will be set.\n\n \\note It is possible that the interpreter is not in a ready state to\n evaluate (e.g., if AllocateTensors() hasn't been called, or if a\n ResizeInputTensor() has been performed without a subsequent call to\n AllocateTensors()).\n\n   If the (experimental!) delegate fallback option was enabled in the\n   interpreter options, then the interpreter will automatically fall back to\n   not using any delegates if execution with delegates fails. For details,\n   see TfLiteInterpreterOptionsSetEnableDelegateFallback in\n   c_api_experimental.h.\n\n Returns one of the following status codes:\n  - kTfLiteOk: Success. Output is valid.\n  - kTfLiteDelegateError: Execution with delegates failed, due to a problem\n    with the delegate(s). If fallback was not enabled, output is invalid.\n    If fallback was enabled, this return value indicates that fallback\n    succeeded, the output is valid, and all delegates previously applied to\n    the interpreter have been undone.\n  - kTfLiteApplicationError: Same as for kTfLiteDelegateError, except that\n    the problem was not with the delegate itself, but rather was\n    due to an incompatibility between the delegate(s) and the\n    interpreter or model.\n  - kTfLiteError: Unexpected/runtime failure. Output is invalid."]
    pub unsafe fn TfLiteInterpreterInvoke(
        &self,
        interpreter: *mut TfLiteInterpreter,
    ) -> TfLiteStatus {
        unsafe {
            (self
                .TfLiteInterpreterInvoke
                .as_ref()
                .expect("Expected function, got error."))(interpreter)
        }
    }

    #[doc = " Returns the number of output tensors associated with the model."]
    pub unsafe fn TfLiteInterpreterGetOutputTensorCount(
        &self,
        interpreter: *const TfLiteInterpreter,
    ) -> i32 {
        unsafe {
            (self
                .TfLiteInterpreterGetOutputTensorCount
                .as_ref()
                .expect("Expected function, got error."))(interpreter)
        }
    }

    #[doc = " Returns a pointer to an array of output tensor indices.  The length of the\n array can be obtained via a call to `TfLiteInterpreterGetOutputTensorCount`.\n\n Typically the output tensors associated with an `interpreter` would be set\n during the initialization of the `interpreter`, through a mechanism like the\n `InterpreterBuilder`, and remain unchanged throughout the lifetime of the\n interpreter.  However, there are some circumstances in which the pointer may\n not remain valid throughout the lifetime of the interpreter, because calls\n to `SetOutputs` on the interpreter invalidate the returned pointer.\n\n The ownership of the array remains with the TFLite runtime."]
    pub unsafe fn TfLiteInterpreterOutputTensorIndices(
        &self,
        interpreter: *const TfLiteInterpreter,
    ) -> *const ::std::os::raw::c_int {
        unsafe {
            (self
                .TfLiteInterpreterOutputTensorIndices
                .as_ref()
                .expect("Expected function, got error."))(interpreter)
        }
    }

    #[doc = " Returns the tensor associated with the output index.\n REQUIRES: 0 <= output_index < TfLiteInterpreterGetOutputTensorCount(tensor)\n\n \\note The shape and underlying data buffer for output tensors may be not\n be available until after the output tensor has been both sized and\n allocated.\n In general, best practice is to interact with the output tensor *after*\n calling TfLiteInterpreterInvoke()."]
    pub unsafe fn TfLiteInterpreterGetOutputTensor(
        &self,
        interpreter: *const TfLiteInterpreter,
        output_index: i32,
    ) -> *const TfLiteTensor {
        unsafe {
            (self
                .TfLiteInterpreterGetOutputTensor
                .as_ref()
                .expect("Expected function, got error."))(interpreter, output_index)
        }
    }

    #[doc = " Returns modifiable access to the tensor that corresponds to the\n specified `index` and is associated with the provided `interpreter`.\n\n This requires the `index` to be between 0 and N - 1, where N is the\n number of tensors in the model.\n\n Typically the tensors associated with the `interpreter` would be set during\n the `interpreter` initialization, through a mechanism like the\n `InterpreterBuilder`, and remain unchanged throughout the lifetime of the\n interpreter.  However, there are some circumstances in which the pointer may\n not remain valid throughout the lifetime of the interpreter, because calls\n to `AddTensors` on the interpreter invalidate the returned pointer.\n\n Note the difference between this function and\n `TfLiteInterpreterGetInputTensor` (or `TfLiteInterpreterGetOutputTensor` for\n that matter): `TfLiteInterpreterGetTensor` takes an index into the array of\n all tensors associated with the `interpreter`'s model, whereas\n `TfLiteInterpreterGetInputTensor` takes an index into the array of input\n tensors.\n\n The ownership of the tensor remains with the TFLite runtime, meaning the\n caller should not deallocate the pointer."]
    pub unsafe fn TfLiteInterpreterGetTensor(
        &self,
        interpreter: *const TfLiteInterpreter,
        index: ::std::os::raw::c_int,
    ) -> *mut TfLiteTensor {
        unsafe {
            (self
                .TfLiteInterpreterGetTensor
                .as_ref()
                .expect("Expected function, got error."))(interpreter, index)
        }
    }

    #[doc = " Tries to cancel any in-flight invocation.\n\n \\note This only cancels `TfLiteInterpreterInvoke` calls that happen before\n calling this and it does not cancel subsequent invocations.\n \\note Calling this function will also cancel any in-flight invocations of\n SignatureRunners constructed from this interpreter.\n Non-blocking and thread safe.\n\n Returns kTfLiteError if cancellation is not enabled via\n `TfLiteInterpreterOptionsEnableCancellation`."]
    pub unsafe fn TfLiteInterpreterCancel(
        &self,
        interpreter: *const TfLiteInterpreter,
    ) -> TfLiteStatus {
        unsafe {
            (self
                .TfLiteInterpreterCancel
                .as_ref()
                .expect("Expected function, got error."))(interpreter)
        }
    }

    #[doc = " Returns the number of signatures defined in the model."]
    pub unsafe fn TfLiteInterpreterGetSignatureCount(
        &self,
        interpreter: *const TfLiteInterpreter,
    ) -> i32 {
        unsafe {
            (self
                .TfLiteInterpreterGetSignatureCount
                .as_ref()
                .expect("Expected function, got error."))(interpreter)
        }
    }

    #[doc = " Returns the key of the Nth signature in the model, where N is specified as\n `signature_index`.\n\n NOTE: The lifetime of the returned key is the same as (and depends on) the\n lifetime of `interpreter`."]
    pub unsafe fn TfLiteInterpreterGetSignatureKey(
        &self,
        interpreter: *const TfLiteInterpreter,
        signature_index: i32,
    ) -> *const ::std::os::raw::c_char {
        unsafe {
            (self
                .TfLiteInterpreterGetSignatureKey
                .as_ref()
                .expect("Expected function, got error."))(interpreter, signature_index)
        }
    }

    #[doc = " Returns a new signature runner using the provided interpreter and signature\n key, or nullptr on failure.\n\n NOTE: `signature_key` is a null-terminated C string that must match the\n key of a signature in the interpreter's model.\n\n NOTE: The returned signature runner should be destroyed, by calling\n TfLiteSignatureRunnerDelete(), before the interpreter is destroyed."]
    pub unsafe fn TfLiteInterpreterGetSignatureRunner(
        &self,
        interpreter: *const TfLiteInterpreter,
        signature_key: *const ::std::os::raw::c_char,
    ) -> *mut TfLiteSignatureRunner {
        unsafe {
            (self
                .TfLiteInterpreterGetSignatureRunner
                .as_ref()
                .expect("Expected function, got error."))(interpreter, signature_key)
        }
    }

    #[doc = " Returns the number of inputs associated with a signature."]
    pub unsafe fn TfLiteSignatureRunnerGetInputCount(
        &self,
        signature_runner: *const TfLiteSignatureRunner,
    ) -> usize {
        unsafe {
            (self
                .TfLiteSignatureRunnerGetInputCount
                .as_ref()
                .expect("Expected function, got error."))(signature_runner)
        }
    }

    #[doc = " Returns the (null-terminated) name of the Nth input in a signature, where N\n is specified as `input_index`.\n\n NOTE: The lifetime of the returned name is the same as (and depends on) the\n lifetime of `signature_runner`."]
    pub unsafe fn TfLiteSignatureRunnerGetInputName(
        &self,
        signature_runner: *const TfLiteSignatureRunner,
        input_index: i32,
    ) -> *const ::std::os::raw::c_char {
        unsafe {
            (self
                .TfLiteSignatureRunnerGetInputName
                .as_ref()
                .expect("Expected function, got error."))(signature_runner, input_index)
        }
    }

    #[doc = " Resizes the input tensor identified as `input_name` to be the dimensions\n specified by `input_dims` and `input_dims_size`. Only unknown dimensions can\n be resized with this function. Unknown dimensions are indicated as `-1` in\n the `dims_signature` attribute of a TfLiteTensor.\n\n Returns status of failure or success. Note that this doesn't actually resize\n any existing buffers. A call to TfLiteSignatureRunnerAllocateTensors() is\n required to change the tensor input buffer.\n\n NOTE: This function is similar to TfLiteInterpreterResizeInputTensorStrict()\n and not TfLiteInterpreterResizeInputTensor().\n\n NOTE: `input_name` must match the name of an input in the signature.\n\n NOTE: This function makes a copy of the input dimensions, so the caller can\n safely deallocate `input_dims` immediately after this function returns."]
    pub unsafe fn TfLiteSignatureRunnerResizeInputTensor(
        &self,
        signature_runner: *mut TfLiteSignatureRunner,
        input_name: *const ::std::os::raw::c_char,
        input_dims: *const ::std::os::raw::c_int,
        input_dims_size: i32,
    ) -> TfLiteStatus {
        unsafe {
            (self
                .TfLiteSignatureRunnerResizeInputTensor
                .as_ref()
                .expect("Expected function, got error."))(
                signature_runner,
                input_name,
                input_dims,
                input_dims_size,
            )
        }
    }

    #[doc = " Updates allocations for tensors associated with a signature and resizes\n dependent tensors using the specified input tensor dimensionality.\n This is a relatively expensive operation and hence should only be called\n after initializing the signature runner object and/or resizing any inputs."]
    pub unsafe fn TfLiteSignatureRunnerAllocateTensors(
        &self,
        signature_runner: *mut TfLiteSignatureRunner,
    ) -> TfLiteStatus {
        unsafe {
            (self
                .TfLiteSignatureRunnerAllocateTensors
                .as_ref()
                .expect("Expected function, got error."))(signature_runner)
        }
    }

    #[doc = " Returns the input tensor identified by `input_name` in the given signature.\n Returns nullptr if the given name is not valid.\n\n NOTE: The lifetime of the returned tensor is the same as (and depends on)\n the lifetime of `signature_runner`."]
    pub unsafe fn TfLiteSignatureRunnerGetInputTensor(
        &self,
        signature_runner: *mut TfLiteSignatureRunner,
        input_name: *const ::std::os::raw::c_char,
    ) -> *mut TfLiteTensor {
        unsafe {
            (self
                .TfLiteSignatureRunnerGetInputTensor
                .as_ref()
                .expect("Expected function, got error."))(signature_runner, input_name)
        }
    }

    #[doc = " Runs inference on a given signature.\n\n Before calling this function, the caller should first invoke\n TfLiteSignatureRunnerAllocateTensors() and should also set the values for\n the input tensors. After successfully calling this function, the values for\n the output tensors will be set."]
    pub unsafe fn TfLiteSignatureRunnerInvoke(
        &self,
        signature_runner: *mut TfLiteSignatureRunner,
    ) -> TfLiteStatus {
        unsafe {
            (self
                .TfLiteSignatureRunnerInvoke
                .as_ref()
                .expect("Expected function, got error."))(signature_runner)
        }
    }

    #[doc = " Returns the number of output tensors associated with the signature."]
    pub unsafe fn TfLiteSignatureRunnerGetOutputCount(
        &self,
        signature_runner: *const TfLiteSignatureRunner,
    ) -> usize {
        unsafe {
            (self
                .TfLiteSignatureRunnerGetOutputCount
                .as_ref()
                .expect("Expected function, got error."))(signature_runner)
        }
    }

    #[doc = " Returns the (null-terminated) name of the Nth output in a signature, where\n N is specified as `output_index`.\n\n NOTE: The lifetime of the returned name is the same as (and depends on) the\n lifetime of `signature_runner`."]
    pub unsafe fn TfLiteSignatureRunnerGetOutputName(
        &self,
        signature_runner: *const TfLiteSignatureRunner,
        output_index: i32,
    ) -> *const ::std::os::raw::c_char {
        unsafe {
            (self
                .TfLiteSignatureRunnerGetOutputName
                .as_ref()
                .expect("Expected function, got error."))(signature_runner, output_index)
        }
    }

    #[doc = " Returns the output tensor identified by `output_name` in the given\n signature. Returns nullptr if the given name is not valid.\n\n NOTE: The lifetime of the returned tensor is the same as (and depends on)\n the lifetime of `signature_runner`."]
    pub unsafe fn TfLiteSignatureRunnerGetOutputTensor(
        &self,
        signature_runner: *const TfLiteSignatureRunner,
        output_name: *const ::std::os::raw::c_char,
    ) -> *const TfLiteTensor {
        unsafe {
            (self
                .TfLiteSignatureRunnerGetOutputTensor
                .as_ref()
                .expect("Expected function, got error."))(signature_runner, output_name)
        }
    }

    #[doc = " Returns the type of a tensor element."]
    pub unsafe fn TfLiteTensorType(&self, tensor: *const TfLiteTensor) -> TfLiteType {
        unsafe {
            (self
                .TfLiteTensorType
                .as_ref()
                .expect("Expected function, got error."))(tensor)
        }
    }

    #[doc = " Returns the number of dimensions that the tensor has.  Returns -1 in case\n the 'opaque_tensor' does not have its dimensions property set."]
    pub unsafe fn TfLiteTensorNumDims(&self, tensor: *const TfLiteTensor) -> i32 {
        unsafe {
            (self
                .TfLiteTensorNumDims
                .as_ref()
                .expect("Expected function, got error."))(tensor)
        }
    }

    #[doc = " Returns the length of the tensor in the \"dim_index\" dimension.\n REQUIRES: 0 <= dim_index < TFLiteTensorNumDims(tensor)"]
    pub unsafe fn TfLiteTensorDim(&self, tensor: *const TfLiteTensor, dim_index: i32) -> i32 {
        unsafe {
            (self
                .TfLiteTensorDim
                .as_ref()
                .expect("Expected function, got error."))(tensor, dim_index)
        }
    }

    #[doc = " Returns the size of the underlying data in bytes."]
    pub unsafe fn TfLiteTensorByteSize(&self, tensor: *const TfLiteTensor) -> usize {
        unsafe {
            (self
                .TfLiteTensorByteSize
                .as_ref()
                .expect("Expected function, got error."))(tensor)
        }
    }

    #[doc = " Returns a pointer to the underlying data buffer.\n\n \\note The result may be null if tensors have not yet been allocated, e.g.,\n if the Tensor has just been created or resized and `TfLiteAllocateTensors()`\n has yet to be called, or if the output tensor is dynamically sized and the\n interpreter hasn't been invoked."]
    pub unsafe fn TfLiteTensorData(
        &self,
        tensor: *const TfLiteTensor,
    ) -> *mut ::std::os::raw::c_void {
        unsafe {
            (self
                .TfLiteTensorData
                .as_ref()
                .expect("Expected function, got error."))(tensor)
        }
    }

    #[doc = " Returns the (null-terminated) name of the tensor."]
    pub unsafe fn TfLiteTensorName(
        &self,
        tensor: *const TfLiteTensor,
    ) -> *const ::std::os::raw::c_char {
        unsafe {
            (self
                .TfLiteTensorName
                .as_ref()
                .expect("Expected function, got error."))(tensor)
        }
    }

    #[doc = " Returns the parameters for asymmetric quantization. The quantization\n parameters are only valid when the tensor type is `kTfLiteUInt8` and the\n `scale != 0`. Quantized values can be converted back to float using:\n    real_value = scale * (quantized_value - zero_point);"]
    pub unsafe fn TfLiteTensorQuantizationParams(
        &self,
        tensor: *const TfLiteTensor,
    ) -> TfLiteQuantizationParams {
        unsafe {
            (self
                .TfLiteTensorQuantizationParams
                .as_ref()
                .expect("Expected function, got error."))(tensor)
        }
    }

    #[doc = " Copies from the provided input buffer into the tensor's buffer.\n REQUIRES: input_data_size == TfLiteTensorByteSize(tensor)"]
    pub unsafe fn TfLiteTensorCopyFromBuffer(
        &self,
        tensor: *mut TfLiteTensor,
        input_data: *const ::std::os::raw::c_void,
        input_data_size: usize,
    ) -> TfLiteStatus {
        unsafe {
            (self
                .TfLiteTensorCopyFromBuffer
                .as_ref()
                .expect("Expected function, got error."))(
                tensor, input_data, input_data_size
            )
        }
    }

    #[doc = " Copies to the provided output buffer from the tensor's buffer.\n REQUIRES: output_data_size == TfLiteTensorByteSize(tensor)"]
    pub unsafe fn TfLiteTensorCopyToBuffer(
        &self,
        output_tensor: *const TfLiteTensor,
        output_data: *mut ::std::os::raw::c_void,
        output_data_size: usize,
    ) -> TfLiteStatus {
        unsafe {
            (self
                .TfLiteTensorCopyToBuffer
                .as_ref()
                .expect("Expected function, got error."))(
                output_tensor,
                output_data,
                output_data_size,
            )
        }
    }

    #[doc = " Destroys the signature runner."]
    pub unsafe fn TfLiteSignatureRunnerDelete(&self, signature_runner: *mut TfLiteSignatureRunner) {
        unsafe {
            (self
                .TfLiteSignatureRunnerDelete
                .as_ref()
                .expect("Expected function, got error."))(signature_runner)
        }
    }

    #[doc = " Given the size (number of elements) in a TfLiteIntArray, calculate its size\n in bytes."]
    pub unsafe fn TfLiteIntArrayGetSizeInBytes(&self, size: ::std::os::raw::c_int) -> usize {
        unsafe {
            (self
                .TfLiteIntArrayGetSizeInBytes
                .as_ref()
                .expect("Expected function, got error."))(size)
        }
    }

    #[doc = " Create a array of a given `size` (uninitialized entries).\n This returns a pointer, that you must free using TfLiteIntArrayFree()."]
    pub unsafe fn TfLiteIntArrayCreate(&self, size: ::std::os::raw::c_int) -> *mut TfLiteIntArray {
        unsafe {
            (self
                .TfLiteIntArrayCreate
                .as_ref()
                .expect("Expected function, got error."))(size)
        }
    }

    #[doc = " Check if two intarrays are equal. Returns 1 if they are equal, 0 otherwise."]
    pub unsafe fn TfLiteIntArrayEqual(
        &self,
        a: *const TfLiteIntArray,
        b: *const TfLiteIntArray,
    ) -> ::std::os::raw::c_int {
        unsafe {
            (self
                .TfLiteIntArrayEqual
                .as_ref()
                .expect("Expected function, got error."))(a, b)
        }
    }

    #[doc = " Check if an intarray equals an array. Returns 1 if equals, 0 otherwise."]
    pub unsafe fn TfLiteIntArrayEqualsArray(
        &self,
        a: *const TfLiteIntArray,
        b_size: ::std::os::raw::c_int,
        b_data: *const ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int {
        unsafe {
            (self
                .TfLiteIntArrayEqualsArray
                .as_ref()
                .expect("Expected function, got error."))(a, b_size, b_data)
        }
    }

    #[doc = " Create a copy of an array passed as `src`.\n You are expected to free memory with TfLiteIntArrayFree"]
    pub unsafe fn TfLiteIntArrayCopy(&self, src: *const TfLiteIntArray) -> *mut TfLiteIntArray {
        unsafe {
            (self
                .TfLiteIntArrayCopy
                .as_ref()
                .expect("Expected function, got error."))(src)
        }
    }

    #[doc = " Free memory of array `a`."]
    pub unsafe fn TfLiteIntArrayFree(&self, a: *mut TfLiteIntArray) {
        unsafe {
            (self
                .TfLiteIntArrayFree
                .as_ref()
                .expect("Expected function, got error."))(a)
        }
    }

    #[doc = " Given the size (number of elements) in a TfLiteFloatArray, calculate its\n size in bytes."]
    pub unsafe fn TfLiteFloatArrayGetSizeInBytes(
        &self,
        size: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int {
        unsafe {
            (self
                .TfLiteFloatArrayGetSizeInBytes
                .as_ref()
                .expect("Expected function, got error."))(size)
        }
    }

    #[doc = " Create a array of a given `size` (uninitialized entries).\n This returns a pointer, that you must free using TfLiteFloatArrayFree()."]
    pub unsafe fn TfLiteFloatArrayCreate(
        &self,
        size: ::std::os::raw::c_int,
    ) -> *mut TfLiteFloatArray {
        unsafe {
            (self
                .TfLiteFloatArrayCreate
                .as_ref()
                .expect("Expected function, got error."))(size)
        }
    }

    #[doc = " Create a copy of an array passed as `src`.\n You are expected to free memory with TfLiteFloatArrayFree."]
    pub unsafe fn TfLiteFloatArrayCopy(
        &self,
        src: *const TfLiteFloatArray,
    ) -> *mut TfLiteFloatArray {
        unsafe {
            (self
                .TfLiteFloatArrayCopy
                .as_ref()
                .expect("Expected function, got error."))(src)
        }
    }

    #[doc = " Free memory of array `a`."]
    pub unsafe fn TfLiteFloatArrayFree(&self, a: *mut TfLiteFloatArray) {
        unsafe {
            (self
                .TfLiteFloatArrayFree
                .as_ref()
                .expect("Expected function, got error."))(a)
        }
    }

    #[doc = " Return the name of a given type, for error reporting purposes."]
    pub unsafe fn TfLiteTypeGetName(&self, type_: TfLiteType) -> *const ::std::os::raw::c_char {
        unsafe {
            (self
                .TfLiteTypeGetName
                .as_ref()
                .expect("Expected function, got error."))(type_)
        }
    }

    #[doc = " Free data memory of tensor `t`."]
    pub unsafe fn TfLiteTensorDataFree(&self, t: *mut TfLiteTensor) {
        unsafe {
            (self
                .TfLiteTensorDataFree
                .as_ref()
                .expect("Expected function, got error."))(t)
        }
    }

    #[doc = " Free quantization data."]
    pub unsafe fn TfLiteQuantizationFree(&self, quantization: *mut TfLiteQuantization) {
        unsafe {
            (self
                .TfLiteQuantizationFree
                .as_ref()
                .expect("Expected function, got error."))(quantization)
        }
    }

    #[doc = " Free sparsity parameters."]
    pub unsafe fn TfLiteSparsityFree(&self, sparsity: *mut TfLiteSparsity) {
        unsafe {
            (self
                .TfLiteSparsityFree
                .as_ref()
                .expect("Expected function, got error."))(sparsity)
        }
    }

    #[doc = " Free memory of tensor `t`."]
    pub unsafe fn TfLiteTensorFree(&self, t: *mut TfLiteTensor) {
        unsafe {
            (self
                .TfLiteTensorFree
                .as_ref()
                .expect("Expected function, got error."))(t)
        }
    }

    #[doc = " Set all of a tensor's fields (and free any previously allocated data)."]
    pub unsafe fn TfLiteTensorReset(
        &self,
        type_: TfLiteType,
        name: *const ::std::os::raw::c_char,
        dims: *mut TfLiteIntArray,
        quantization: TfLiteQuantizationParams,
        buffer: *mut ::std::os::raw::c_char,
        size: usize,
        allocation_type: TfLiteAllocationType,
        allocation: *const ::std::os::raw::c_void,
        is_variable: bool,
        tensor: *mut TfLiteTensor,
    ) {
        unsafe {
            (self
                .TfLiteTensorReset
                .as_ref()
                .expect("Expected function, got error."))(
                type_,
                name,
                dims,
                quantization,
                buffer,
                size,
                allocation_type,
                allocation,
                is_variable,
                tensor,
            )
        }
    }

    #[doc = " Copies the contents of `src` in `dst`.\n Function does nothing if either `src` or `dst` is passed as nullptr and\n return `kTfLiteOk`.\n Returns `kTfLiteError` if `src` and `dst` doesn't have matching data size.\n Note function copies contents, so it won't create new data pointer\n or change allocation type.\n All Tensor related properties will be copied from `src` to `dst` like\n quantization, sparsity, ..."]
    pub unsafe fn TfLiteTensorCopy(
        &self,
        src: *const TfLiteTensor,
        dst: *mut TfLiteTensor,
    ) -> TfLiteStatus {
        unsafe {
            (self
                .TfLiteTensorCopy
                .as_ref()
                .expect("Expected function, got error."))(src, dst)
        }
    }

    #[doc = " Change the size of the memory block owned by `tensor` to `num_bytes`.\n Tensors with allocation types other than `kTfLiteDynamic` will be ignored\n and a `kTfLiteOk` will be returned. `tensor`'s internal data buffer will be\n assigned a pointer which can safely be passed to free or realloc if\n `num_bytes` is zero. If `preserve_data` is true, tensor data will be\n unchanged in the range from the start of the region up to the minimum of the\n old and new sizes. In the case of NULL tensor, or an error allocating new\n memory, returns `kTfLiteError`."]
    pub unsafe fn TfLiteTensorResizeMaybeCopy(
        &self,
        num_bytes: usize,
        tensor: *mut TfLiteTensor,
        preserve_data: bool,
    ) -> TfLiteStatus {
        unsafe {
            (self
                .TfLiteTensorResizeMaybeCopy
                .as_ref()
                .expect("Expected function, got error."))(
                num_bytes, tensor, preserve_data
            )
        }
    }

    #[doc = " Change the size of the memory block owned by `tensor` to `num_bytes`.\n Tensors with allocation types other than `kTfLiteDynamic` will be ignored\n and a `kTfLiteOk` will be returned. `tensor`'s internal data buffer will be\n assigned a pointer which can safely be passed to free or realloc if\n `num_bytes` is zero. Tensor data will be unchanged in the range from the\n start of the region up to the minimum of the old and new sizes. In the case\n of NULL tensor, or an error allocating new memory, returns `kTfLiteError`."]
    pub unsafe fn TfLiteTensorRealloc(
        &self,
        num_bytes: usize,
        tensor: *mut TfLiteTensor,
    ) -> TfLiteStatus {
        unsafe {
            (self
                .TfLiteTensorRealloc
                .as_ref()
                .expect("Expected function, got error."))(num_bytes, tensor)
        }
    }

    #[doc = " Build a `null` delegate, with all the fields properly set to their default\n values."]
    pub unsafe fn TfLiteDelegateCreate(&self) -> TfLiteDelegate {
        unsafe {
            (self
                .TfLiteDelegateCreate
                .as_ref()
                .expect("Expected function, got error."))()
        }
    }

    #[doc = " Creates an opaque delegate and returns its address.  The opaque delegate\n will behave according to the provided `opaque_delegate_builder`.  The\n lifetime of the objects pointed to by any of the fields within the\n `opaque_delegate_builder` must outlive the returned\n `TfLiteOpaqueDelegate` and any `TfLiteInterpreter`,\n `TfLiteInterpreterOptions`, `tflite::Interpreter`, or\n `tflite::InterpreterBuilder` that the delegate is added to.  The returned\n address should be passed to `TfLiteOpaqueDelegateDelete` for deletion.  If\n `opaque_delegate_builder` is a null pointer, then a null pointer will be\n returned."]
    pub unsafe fn TfLiteOpaqueDelegateCreate(
        &self,
        opaque_delegate_builder: *const TfLiteOpaqueDelegateBuilder,
    ) -> *mut TfLiteOpaqueDelegate {
        unsafe {
            (self
                .TfLiteOpaqueDelegateCreate
                .as_ref()
                .expect("Expected function, got error."))(opaque_delegate_builder)
        }
    }

    #[doc = " Deletes the provided opaque `delegate`.  This function has no effect if the\n `delegate` is a null pointer."]
    pub unsafe fn TfLiteOpaqueDelegateDelete(&self, delegate: *mut TfLiteOpaqueDelegate) {
        unsafe {
            (self
                .TfLiteOpaqueDelegateDelete
                .as_ref()
                .expect("Expected function, got error."))(delegate)
        }
    }

    #[doc = " Returns a pointer to the data associated with the provided opaque\n `delegate`.\n\n A null pointer will be returned when:\n - The `delegate` is null.\n - The `data` field of the `TfLiteOpaqueDelegateBuilder` used to construct\n   the `delegate` was null.\n - Or in case of any other error.\n - The `delegate` has been constructed via a `TfLiteOpaqueDelegateBuilder`,\n   but the `data` field of the `TfLiteOpaqueDelegateBuilder` is null.\n\n  The data_ field of `delegate` will be returned if the\n  `opaque_delegate_builder` field is null."]
    pub unsafe fn TfLiteOpaqueDelegateGetData(
        &self,
        delegate: *const TfLiteOpaqueDelegate,
    ) -> *mut ::std::os::raw::c_void {
        unsafe {
            (self
                .TfLiteOpaqueDelegateGetData
                .as_ref()
                .expect("Expected function, got error."))(delegate)
        }
    }

    #[doc = " Returns a tensor data allocation strategy."]
    pub unsafe fn TfLiteTensorGetAllocationStrategy(
        &self,
        t: *const TfLiteTensor,
    ) -> TfLiteAllocationStrategy {
        unsafe {
            (self
                .TfLiteTensorGetAllocationStrategy
                .as_ref()
                .expect("Expected function, got error."))(t)
        }
    }

    #[doc = " Returns how stable a tensor data buffer address is across runs."]
    pub unsafe fn TfLiteTensorGetBufferAddressStability(
        &self,
        t: *const TfLiteTensor,
    ) -> TfLiteRunStability {
        unsafe {
            (self
                .TfLiteTensorGetBufferAddressStability
                .as_ref()
                .expect("Expected function, got error."))(t)
        }
    }

    #[doc = " Returns how stable a tensor data values are across runs."]
    pub unsafe fn TfLiteTensorGetDataStability(
        &self,
        t: *const TfLiteTensor,
    ) -> TfLiteRunStability {
        unsafe {
            (self
                .TfLiteTensorGetDataStability
                .as_ref()
                .expect("Expected function, got error."))(t)
        }
    }

    #[doc = " Returns the operation step when the data of a tensor is populated.\n\n Some operations can precompute their results before the evaluation step.\n This makes the data available earlier for subsequent operations."]
    pub unsafe fn TfLiteTensorGetDataKnownStep(&self, t: *const TfLiteTensor) -> TfLiteRunStep {
        unsafe {
            (self
                .TfLiteTensorGetDataKnownStep
                .as_ref()
                .expect("Expected function, got error."))(t)
        }
    }

    #[doc = " Returns the operation steop when the shape of a tensor is computed.\n\n Some operations can precompute the shape of their results before the\n evaluation step. This makes the shape available earlier for subsequent\n operations."]
    pub unsafe fn TfLiteTensorGetShapeKnownStep(&self, t: *const TfLiteTensor) -> TfLiteRunStep {
        unsafe {
            (self
                .TfLiteTensorGetShapeKnownStep
                .as_ref()
                .expect("Expected function, got error."))(t)
        }
    }

    #[doc = " Returns the type of a tensor element."]
    pub unsafe fn TfLiteOpaqueTensorType(
        &self,
        opaque_tensor: *const TfLiteOpaqueTensor,
    ) -> TfLiteType {
        unsafe {
            (self
                .TfLiteOpaqueTensorType
                .as_ref()
                .expect("Expected function, got error."))(opaque_tensor)
        }
    }

    #[doc = " Returns the number of dimensions that the tensor has.  Returns -1 in case\n the 'opaque_tensor' does not have its dimensions property set."]
    pub unsafe fn TfLiteOpaqueTensorNumDims(
        &self,
        opaque_tensor: *const TfLiteOpaqueTensor,
    ) -> i32 {
        unsafe {
            (self
                .TfLiteOpaqueTensorNumDims
                .as_ref()
                .expect("Expected function, got error."))(opaque_tensor)
        }
    }

    #[doc = " Returns the length of the tensor in the \"dim_index\" dimension."]
    pub unsafe fn TfLiteOpaqueTensorDim(
        &self,
        opaque_tensor: *const TfLiteOpaqueTensor,
        dim_index: i32,
    ) -> i32 {
        unsafe {
            (self
                .TfLiteOpaqueTensorDim
                .as_ref()
                .expect("Expected function, got error."))(opaque_tensor, dim_index)
        }
    }

    #[doc = " Loads into the provided 'num_dims' the number of dimensions that the\n tensor's signature has. Returns 'kTfLiteOk' if 'num_dims' was successfully\n loaded. Any other return code indicates an error and 'num_dims' won't be\n loaded.\n\n A tensor's dimension signature encodes shapes with unknown dimensions with\n -1.  E.g. for a tensor with three dimensions, whose first dimension has an\n unknown size, and the second and third dimension have a size of 2, the\n dimension signature is [-1,2,2], and 'TfLiteOpaqueTensorGetNumDimsSignature'\n loads 3 into 'num_dims'. If the tensor does not have its dimension signature\n field set then 'num_dims' is set to -1."]
    pub unsafe fn TfLiteOpaqueTensorGetNumDimsSignature(
        &self,
        opaque_tensor: *const TfLiteOpaqueTensor,
        num_dims: *mut i32,
    ) -> TfLiteStatus {
        unsafe {
            (self
                .TfLiteOpaqueTensorGetNumDimsSignature
                .as_ref()
                .expect("Expected function, got error."))(opaque_tensor, num_dims)
        }
    }

    #[doc = " Loads into the provided 'dim_length' the length of the tensor in the\n 'dim_index' signature dimension or -1 if that dimension has unknown length.\n Returns 'kTfLiteOk' if 'dim_length' was successfully loaded. Any\n other return code indicates an error and 'dim_length' won't be loaded."]
    pub unsafe fn TfLiteOpaqueTensorGetDimSignature(
        &self,
        opaque_tensor: *const TfLiteOpaqueTensor,
        dim_index: i32,
        dim_length: *mut i32,
    ) -> TfLiteStatus {
        unsafe {
            (self
                .TfLiteOpaqueTensorGetDimSignature
                .as_ref()
                .expect("Expected function, got error."))(
                opaque_tensor, dim_index, dim_length
            )
        }
    }

    #[doc = " Returns 'non-zero' if the provided 'opaque_tensor' is a variable, and\n returns zero otherwise."]
    pub unsafe fn TfLiteOpaqueTensorIsVariable(
        &self,
        opaque_tensor: *const TfLiteOpaqueTensor,
    ) -> ::std::os::raw::c_int {
        unsafe {
            (self
                .TfLiteOpaqueTensorIsVariable
                .as_ref()
                .expect("Expected function, got error."))(opaque_tensor)
        }
    }

    #[doc = " Returns the size of the underlying data in bytes."]
    pub unsafe fn TfLiteOpaqueTensorByteSize(
        &self,
        opaque_tensor: *const TfLiteOpaqueTensor,
    ) -> usize {
        unsafe {
            (self
                .TfLiteOpaqueTensorByteSize
                .as_ref()
                .expect("Expected function, got error."))(opaque_tensor)
        }
    }

    #[doc = " Returns a pointer to the underlying data buffer.\n Returns nullptr if input is also nullptr."]
    pub unsafe fn TfLiteOpaqueTensorData(
        &self,
        opaque_tensor: *const TfLiteOpaqueTensor,
    ) -> *mut ::std::os::raw::c_void {
        unsafe {
            (self
                .TfLiteOpaqueTensorData
                .as_ref()
                .expect("Expected function, got error."))(opaque_tensor)
        }
    }

    #[doc = " Returns the 'opaque_tensor's allocation type."]
    pub unsafe fn TfLiteOpaqueTensorGetAllocationType(
        &self,
        opaque_tensor: *const TfLiteOpaqueTensor,
    ) -> TfLiteAllocationType {
        unsafe {
            (self
                .TfLiteOpaqueTensorGetAllocationType
                .as_ref()
                .expect("Expected function, got error."))(opaque_tensor)
        }
    }

    #[doc = " Returns a tensor data allocation strategy."]
    pub unsafe fn TfLiteOpaqueTensorGetAllocationStrategy(
        &self,
        t: *const TfLiteOpaqueTensor,
    ) -> TfLiteAllocationStrategy {
        unsafe {
            (self
                .TfLiteOpaqueTensorGetAllocationStrategy
                .as_ref()
                .expect("Expected function, got error."))(t)
        }
    }

    #[doc = " Returns how stable a tensor data buffer address is across runs."]
    pub unsafe fn TfLiteOpaqueTensorGetBufferAddressStability(
        &self,
        t: *const TfLiteOpaqueTensor,
    ) -> TfLiteRunStability {
        unsafe {
            (self
                .TfLiteOpaqueTensorGetBufferAddressStability
                .as_ref()
                .expect("Expected function, got error."))(t)
        }
    }

    #[doc = " Returns how stable a tensor data values are across runs."]
    pub unsafe fn TfLiteOpaqueTensorGetDataStability(
        &self,
        t: *const TfLiteOpaqueTensor,
    ) -> TfLiteRunStability {
        unsafe {
            (self
                .TfLiteOpaqueTensorGetDataStability
                .as_ref()
                .expect("Expected function, got error."))(t)
        }
    }

    #[doc = " Returns the operation step when the data of a tensor is populated."]
    pub unsafe fn TfLiteOpaqueTensorGetDataKnownStep(
        &self,
        t: *const TfLiteOpaqueTensor,
    ) -> TfLiteRunStep {
        unsafe {
            (self
                .TfLiteOpaqueTensorGetDataKnownStep
                .as_ref()
                .expect("Expected function, got error."))(t)
        }
    }

    #[doc = " Returns the operation step when the shape of a tensor is computed."]
    pub unsafe fn TfLiteOpaqueTensorGetShapeKnownStep(
        &self,
        t: *const TfLiteOpaqueTensor,
    ) -> TfLiteRunStep {
        unsafe {
            (self
                .TfLiteOpaqueTensorGetShapeKnownStep
                .as_ref()
                .expect("Expected function, got error."))(t)
        }
    }

    #[doc = " Returns the (null-terminated) name of the tensor."]
    pub unsafe fn TfLiteOpaqueTensorName(
        &self,
        opaque_tensor: *const TfLiteOpaqueTensor,
    ) -> *const ::std::os::raw::c_char {
        unsafe {
            (self
                .TfLiteOpaqueTensorName
                .as_ref()
                .expect("Expected function, got error."))(opaque_tensor)
        }
    }

    #[doc = " Returns the 'opaque_tensor's quantization information."]
    pub unsafe fn TfLiteOpaqueTensorGetQuantization(
        &self,
        opaque_tensor: *const TfLiteOpaqueTensor,
    ) -> TfLiteQuantization {
        unsafe {
            (self
                .TfLiteOpaqueTensorGetQuantization
                .as_ref()
                .expect("Expected function, got error."))(opaque_tensor)
        }
    }

    #[doc = " Returns the 'opaque_tensor's quantization parameters."]
    pub unsafe fn TfLiteOpaqueTensorGetQuantizationParams(
        &self,
        opaque_tensor: *const TfLiteOpaqueTensor,
    ) -> TfLiteQuantizationParams {
        unsafe {
            (self
                .TfLiteOpaqueTensorGetQuantizationParams
                .as_ref()
                .expect("Expected function, got error."))(opaque_tensor)
        }
    }

    #[doc = " Copies from the provided input buffer into the tensor's buffer."]
    pub unsafe fn TfLiteOpaqueTensorCopyFromBuffer(
        &self,
        opaque_tensor: *mut TfLiteOpaqueTensor,
        input_data: *const ::std::os::raw::c_void,
        input_data_size: usize,
    ) -> TfLiteStatus {
        unsafe {
            (self
                .TfLiteOpaqueTensorCopyFromBuffer
                .as_ref()
                .expect("Expected function, got error."))(
                opaque_tensor,
                input_data,
                input_data_size,
            )
        }
    }

    #[doc = " Copies to the provided output buffer from the tensor's buffer."]
    pub unsafe fn TfLiteOpaqueTensorCopyToBuffer(
        &self,
        opaque_tensor: *const TfLiteOpaqueTensor,
        output_data: *mut ::std::os::raw::c_void,
        output_data_size: usize,
    ) -> TfLiteStatus {
        unsafe {
            (self
                .TfLiteOpaqueTensorCopyToBuffer
                .as_ref()
                .expect("Expected function, got error."))(
                opaque_tensor,
                output_data,
                output_data_size,
            )
        }
    }

    #[doc = " Returns the number of strings stored in the provided 'tensor'.\n Returns -1 in case of failure."]
    pub unsafe fn TfLiteOpaqueTensorGetStringCount(
        &self,
        tensor: *const TfLiteOpaqueTensor,
    ) -> ::std::os::raw::c_int {
        unsafe {
            (self
                .TfLiteOpaqueTensorGetStringCount
                .as_ref()
                .expect("Expected function, got error."))(tensor)
        }
    }

    #[doc = " Stores the address of the n-th (denoted by the provided 'index') string\n contained in the provided 'tensor' in the provided '*str' pointer.  Stores\n the length of the string in the provided '*len' argument.\n\n Returns 'kTfLiteOk' if '*str' and '*len' have been set successfully.  Any\n other return value indicates a failure, which leaves '*str' and '*len' in an\n unspecified state.\n\n The range of valid indices is defined by the half open interval [0, N),\n where N == TfLiteOpaqueTensorGetStringCount(tensor).\n\n Note that 'str' is not guaranteed to be null-terminated. Also note that this\n function will not create a copy of the underlying string data.  The data is\n owned by the 'tensor'."]
    pub unsafe fn TfLiteOpaqueTensorGetString(
        &self,
        tensor: *const TfLiteOpaqueTensor,
        index: ::std::os::raw::c_int,
        str_: *mut *const ::std::os::raw::c_char,
        len: *mut ::std::os::raw::c_int,
    ) -> TfLiteStatus {
        unsafe {
            (self
                .TfLiteOpaqueTensorGetString
                .as_ref()
                .expect("Expected function, got error."))(tensor, index, str_, len)
        }
    }

    #[doc = " Writes the array of strings specified by 'str_array' into\n the specified 'tensor'.  The strings provided via the 'str_array' are being\n copied into the 'tensor'. Returns 'kTfLiteOk' in case of success.  Any other\n return value indicates a failure.\n\n The provided 'str_array_len' must denote the length of 'str_array'\n and 'str_n_len[i]' must denote the length of the i-th string.\n\n The provided strings don't need to be null terminated and may contain\n embedded null characters.  The amount of bytes copied into the 'tensor' is\n entirely determined by 'str_n_len[i]' and it is the caller's responsibility\n to set this value correctly to avoid undefined behavior.\n\n Also note that calling 'TfLiteOpaqueTensorWriteStrings' deallocates any\n previously stored data in the 'tensor'."]
    pub unsafe fn TfLiteOpaqueTensorWriteStrings(
        &self,
        tensor: *mut TfLiteOpaqueTensor,
        str_array: *const *const ::std::os::raw::c_char,
        str_array_len: ::std::os::raw::c_int,
        str_n_len: *const ::std::os::raw::c_int,
    ) -> TfLiteStatus {
        unsafe {
            (self
                .TfLiteOpaqueTensorWriteStrings
                .as_ref()
                .expect("Expected function, got error."))(
                tensor,
                str_array,
                str_array_len,
                str_n_len,
            )
        }
    }

    #[doc = " Writes the string pointed to by the provided 'str' pointer of length 'len'\n into the provided 'tensor'.  The string provided via 'str' is\n copied into the 'tensor'.  Returns 'kTfLiteOk' in case of success. Any\n other return value indicates a failure.\n\n Note that calling 'TfLiteOpaqueTensorWriteString' deallocates any\n previously stored data in the 'tensor'.  E.g. suppose 't' denotes a\n 'TfLiteOpaqueTensor*', then calling 'TfLiteOpaqueTensorWriteString(t, \"AB\",\n 2)' followed by a call to 'TfLiteOpaqueTensorWriteString(t, \"CD\", 2)' will\n lead to 't' containing 'CD', not 'ABCD'.\n\n 'TfLiteOpaqueTensorWriteString' is a convenience function for the use case\n of writing a single string to a tensor and its effects are identical to\n calling 'TfLiteOpaqueTensorWriteStrings' with an array of a single string."]
    pub unsafe fn TfLiteOpaqueTensorWriteString(
        &self,
        tensor: *mut TfLiteOpaqueTensor,
        str_: *const ::std::os::raw::c_char,
        len: ::std::os::raw::c_int,
    ) -> TfLiteStatus {
        unsafe {
            (self
                .TfLiteOpaqueTensorWriteString
                .as_ref()
                .expect("Expected function, got error."))(tensor, str_, len)
        }
    }

    #[doc = " Creates an opaque tensor builder object."]
    pub unsafe fn TfLiteOpaqueTensorBuilderCreate(&self) -> *mut TfLiteOpaqueTensorBuilder {
        unsafe {
            (self
                .TfLiteOpaqueTensorBuilderCreate
                .as_ref()
                .expect("Expected function, got error."))()
        }
    }

    #[doc = " Deletes an opaque tensor builder object."]
    pub unsafe fn TfLiteOpaqueTensorBuilderDelete(&self, builder: *mut TfLiteOpaqueTensorBuilder) {
        unsafe {
            (self
                .TfLiteOpaqueTensorBuilderDelete
                .as_ref()
                .expect("Expected function, got error."))(builder)
        }
    }

    #[doc = " Sets the 'TfLiteType' of the provided 'builder' to the provided 'type'.\n Returns the address of the provided 'builder', so that builder calls can be\n chained together."]
    pub unsafe fn TfLiteOpaqueTensorBuilderSetType(
        &self,
        builder: *mut TfLiteOpaqueTensorBuilder,
        type_: TfLiteType,
    ) -> *mut TfLiteOpaqueTensorBuilder {
        unsafe {
            (self
                .TfLiteOpaqueTensorBuilderSetType
                .as_ref()
                .expect("Expected function, got error."))(builder, type_)
        }
    }

    #[doc = " Sets the raw data of the provided 'builder' to the provided 'data'. Returns\n the address of the provided 'builder', so that builder calls can be chained\n together."]
    pub unsafe fn TfLiteOpaqueTensorBuilderSetData(
        &self,
        builder: *mut TfLiteOpaqueTensorBuilder,
        data: *mut ::std::os::raw::c_void,
    ) -> *mut TfLiteOpaqueTensorBuilder {
        unsafe {
            (self
                .TfLiteOpaqueTensorBuilderSetData
                .as_ref()
                .expect("Expected function, got error."))(builder, data)
        }
    }

    #[doc = " Sets the allocation type of the provided 'builder' to the provided\n 'allocation_type'.  The 'allocation_type' must be one of the following:\n 'kTfLiteDynamic', 'kTfLiteArenaRw' or 'kTfLiteArenaRwPersistent'.  If the\n provided 'allocation_type' is not one of those values then\n 'TfLiteOpaqueContextAddTensor' will return an error. Returns the address of\n the provided 'builder', so that builder calls can be chained together."]
    pub unsafe fn TfLiteOpaqueTensorBuilderSetAllocationType(
        &self,
        builder: *mut TfLiteOpaqueTensorBuilder,
        allocation_type: TfLiteAllocationType,
    ) -> *mut TfLiteOpaqueTensorBuilder {
        unsafe {
            (self
                .TfLiteOpaqueTensorBuilderSetAllocationType
                .as_ref()
                .expect("Expected function, got error."))(builder, allocation_type)
        }
    }

    #[doc = " Sets the quantization params of the provided 'builder' to the provided\n 'params'. Returns the address of the provided 'builder', so that builder\n calls can be chained together."]
    pub unsafe fn TfLiteOpaqueTensorBuilderSetQuantizationParams(
        &self,
        builder: *mut TfLiteOpaqueTensorBuilder,
        params: TfLiteQuantizationParams,
    ) -> *mut TfLiteOpaqueTensorBuilder {
        unsafe {
            (self
                .TfLiteOpaqueTensorBuilderSetQuantizationParams
                .as_ref()
                .expect("Expected function, got error."))(builder, params)
        }
    }

    #[doc = " Sets the quantization of the provided 'builder' to the provided\n 'quantization'. Returns the address of the provided 'builder', so that\n builder calls can be chained together."]
    pub unsafe fn TfLiteOpaqueTensorBuilderSetQuantization(
        &self,
        builder: *mut TfLiteOpaqueTensorBuilder,
        quantization: TfLiteQuantization,
    ) -> *mut TfLiteOpaqueTensorBuilder {
        unsafe {
            (self
                .TfLiteOpaqueTensorBuilderSetQuantization
                .as_ref()
                .expect("Expected function, got error."))(builder, quantization)
        }
    }

    #[doc = " Sets the allocation type of the provided 'tensor' to 'kTfLiteDynamic'.\n This function has no effect if the 'tensor's allocation type is already\n 'kTfLiteDynamic'.  The provided 'tensor' must not be null."]
    pub unsafe fn TfLiteOpaqueTensorSetAllocationTypeToDynamic(
        &self,
        tensor: *mut TfLiteOpaqueTensor,
    ) {
        unsafe {
            (self
                .TfLiteOpaqueTensorSetAllocationTypeToDynamic
                .as_ref()
                .expect("Expected function, got error."))(tensor)
        }
    }

    #[doc = " Returns the input tensor of the given node."]
    pub unsafe fn TfLiteOpaqueNodeGetInput(
        &self,
        opaque_context: *const TfLiteOpaqueContext,
        opaque_node: *const TfLiteOpaqueNode,
        index: ::std::os::raw::c_int,
    ) -> *const TfLiteOpaqueTensor {
        unsafe {
            (self
                .TfLiteOpaqueNodeGetInput
                .as_ref()
                .expect("Expected function, got error."))(
                opaque_context, opaque_node, index
            )
        }
    }

    #[doc = " Returns the output tensor of the given node."]
    pub unsafe fn TfLiteOpaqueNodeGetOutput(
        &self,
        opaque_context: *mut TfLiteOpaqueContext,
        opaque_node: *const TfLiteOpaqueNode,
        index: ::std::os::raw::c_int,
    ) -> *mut TfLiteOpaqueTensor {
        unsafe {
            (self
                .TfLiteOpaqueNodeGetOutput
                .as_ref()
                .expect("Expected function, got error."))(
                opaque_context, opaque_node, index
            )
        }
    }

    #[doc = " Gets the number of input tensors of the provided 'opaque_node'."]
    pub unsafe fn TfLiteOpaqueNodeNumberOfInputs(
        &self,
        opaque_node: *const TfLiteOpaqueNode,
    ) -> ::std::os::raw::c_int {
        unsafe {
            (self
                .TfLiteOpaqueNodeNumberOfInputs
                .as_ref()
                .expect("Expected function, got error."))(opaque_node)
        }
    }

    #[doc = " Gets the number of output tensors of the provided 'opaque_node'."]
    pub unsafe fn TfLiteOpaqueNodeNumberOfOutputs(
        &self,
        opaque_node: *const TfLiteOpaqueNode,
    ) -> ::std::os::raw::c_int {
        unsafe {
            (self
                .TfLiteOpaqueNodeNumberOfOutputs
                .as_ref()
                .expect("Expected function, got error."))(opaque_node)
        }
    }

    #[doc = " Returns opaque data provided by the node implementer. The value returned\n from this function is the value that was returned from the `init` callback\n that was passed to `TfLiteOperatorSetInit`."]
    pub unsafe fn TfLiteOpaqueNodeGetUserData(
        &self,
        opaque_node: *const TfLiteOpaqueNode,
    ) -> *mut ::std::os::raw::c_void {
        unsafe {
            (self
                .TfLiteOpaqueNodeGetUserData
                .as_ref()
                .expect("Expected function, got error."))(opaque_node)
        }
    }

    #[doc = " Returns the builtin data associated with the provided 'opaque_node'.\n\n The builtin init data associated with a node would typically be set during\n the creation of the associated interpreter, through a mechanism like the\n interpreter builder that loads a TFLite model and initialises the\n interpreter's nodes accordingly.  Under these conditions the returned\n address remains valid throughout the lifetime of the 'opaque_node'."]
    pub unsafe fn TfLiteOpaqueNodeGetBuiltinData(
        &self,
        opaque_node: *const TfLiteOpaqueNode,
    ) -> *mut ::std::os::raw::c_void {
        unsafe {
            (self
                .TfLiteOpaqueNodeGetBuiltinData
                .as_ref()
                .expect("Expected function, got error."))(opaque_node)
        }
    }

    #[doc = " Loads into the provided '*init_data' pointer the address of the custom init\n data associated with the provided 'opaque_node'.  The length of data is\n loaded into the provided 'size' pointer.  Returns 'kTfLiteOk' in case\n of success.  Any other return value indicates a failure and will leave\n 'init_data' and 'size' in an unspecified state.\n\n The custom init data associated with a node would typically be set during\n the creation of the associated interpreter, through a mechanism like the\n interpreter builder that loads a TFLite model and initialises the\n interpreter's nodes accordingly.  Under these conditions the returned\n address remains valid throughout the lifetime of the 'opaque_node'."]
    pub unsafe fn TfLiteOpaqueNodeGetCustomInitialData(
        &self,
        opaque_node: *const TfLiteOpaqueNode,
        init_data: *mut *const ::std::os::raw::c_void,
        size: *mut ::std::os::raw::c_int,
    ) -> TfLiteStatus {
        unsafe {
            (self
                .TfLiteOpaqueNodeGetCustomInitialData
                .as_ref()
                .expect("Expected function, got error."))(opaque_node, init_data, size)
        }
    }

    #[doc = " Loads into the provided '*inputs' pointer the starting address of an array\n of indices representing the tensors that are inputs of the provided\n 'opaque_node'. The length of the array is loaded into the provided\n 'num_inputs' pointer. Returns 'kTfLiteOk' in case of success.  Any other\n return value indicates a failure and will leave 'inputs' and\n 'num_inputs' in an unspecified state.\n\n The input tensors associated with a node would typically be set during the\n creation of the associated interpreter, through a mechanism like the\n interpreter builder that loads a TFLite model and initialises the\n interpreter's nodes accordingly.  Under these conditions the loaded address\n remains valid throughout the lifetime of the 'opaque_node'."]
    pub unsafe fn TfLiteOpaqueNodeInputs(
        &self,
        opaque_node: *const TfLiteOpaqueNode,
        inputs: *mut *const ::std::os::raw::c_int,
        num_inputs: *mut ::std::os::raw::c_int,
    ) -> TfLiteStatus {
        unsafe {
            (self
                .TfLiteOpaqueNodeInputs
                .as_ref()
                .expect("Expected function, got error."))(
                opaque_node, inputs, num_inputs
            )
        }
    }

    #[doc = " Loads into the provided '*outputs' pointer the starting address of an array\n of indices representing the tensors that are outputs of the provided\n 'opaque_node'. The length of the array is loaded into the provided\n 'num_outputs' pointer. Returns 'kTfLiteOk' in case of success.  Any other\n return value indicates a failure and will leave 'outputs' and\n 'num_outputs' in an unspecified state.\n\n The output tensors associated with a node would typically be set during the\n creation of the associated interpreter, through a mechanism like the\n interpreter builder that loads a TFLite model and initialises the\n interpreter's nodes accordingly.  Under these conditions the loaded address\n remains valid throughout the lifetime of the 'opaque_node'."]
    pub unsafe fn TfLiteOpaqueNodeOutputs(
        &self,
        opaque_node: *const TfLiteOpaqueNode,
        outputs: *mut *const ::std::os::raw::c_int,
        num_outputs: *mut ::std::os::raw::c_int,
    ) -> TfLiteStatus {
        unsafe {
            (self
                .TfLiteOpaqueNodeOutputs
                .as_ref()
                .expect("Expected function, got error."))(
                opaque_node, outputs, num_outputs
            )
        }
    }

    #[doc = " Set tensor indices of temporary tensors used during the computations.\n These temporary tensors should be allocated using AddTensors().\n By default nodes don't have any temporary tensors, tensors, but ops are\n allowed to change that if they need scratch space of any sort.\n This will make a copy of the contents of the array pointed to by\n `temporaries`."]
    pub unsafe fn TfLiteOpaqueNodeSetTemporaries(
        &self,
        opaque_node: *mut TfLiteOpaqueNode,
        temporaries: *const ::std::os::raw::c_int,
        num_temporaries: ::std::os::raw::c_int,
    ) -> TfLiteStatus {
        unsafe {
            (self
                .TfLiteOpaqueNodeSetTemporaries
                .as_ref()
                .expect("Expected function, got error."))(
                opaque_node, temporaries, num_temporaries
            )
        }
    }

    #[doc = " Loads into the provided '*temporaries' pointer the starting address of an\n array of indices representing the temporary tensors associated with the\n provided 'opaque_node'. The length of the array is loaded into the provided\n 'num_temporaries' pointer. Returns 'kTfLiteOk' in case of success.  Any\n other return value indicates a failure and will leave 'temporaries' and\n 'num_temporaries' in an unspecified state.\n\n The temporary tensors associated with a node would typically be set during\n the creation of the associated interpreter, through a mechanism like the\n interpreter builder that loads a TFLite model and initialises the\n interpreter's nodes accordingly.  Under these conditions the loaded address\n remains valid throughout the lifetime of the 'opaque_node'."]
    pub unsafe fn TfLiteOpaqueNodeTemporaries(
        &self,
        opaque_node: *const TfLiteOpaqueNode,
        temporaries: *mut *const ::std::os::raw::c_int,
        num_temporaries: *mut ::std::os::raw::c_int,
    ) -> TfLiteStatus {
        unsafe {
            (self
                .TfLiteOpaqueNodeTemporaries
                .as_ref()
                .expect("Expected function, got error."))(
                opaque_node, temporaries, num_temporaries
            )
        }
    }

    #[doc = " Given an 'index_of_input', which must be in the range of [0, N), where N is\n the number of input tensors of the provided 'opaque_node', returns the\n (global) index of the tensor that holds the input.  Returns -1 if\n 'index_of_input' is not within the [0, N) range."]
    pub unsafe fn TfLiteOpaqueNodeGetInputTensorIndex(
        &self,
        opaque_node: *const TfLiteOpaqueNode,
        index_of_input: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int {
        unsafe {
            (self
                .TfLiteOpaqueNodeGetInputTensorIndex
                .as_ref()
                .expect("Expected function, got error."))(opaque_node, index_of_input)
        }
    }

    #[doc = " Given an 'index_of_output', which must be in the range of [0, N), where N is\n the number of output tensors of the provided 'opaque_node', returns the\n (global) index of the tensor that holds the output. Returns -1 if\n 'index_of_output' is not within the [0, N) range."]
    pub unsafe fn TfLiteOpaqueNodeGetOutputTensorIndex(
        &self,
        opaque_node: *const TfLiteOpaqueNode,
        index_of_output: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int {
        unsafe {
            (self
                .TfLiteOpaqueNodeGetOutputTensorIndex
                .as_ref()
                .expect("Expected function, got error."))(opaque_node, index_of_output)
        }
    }

    #[doc = " Loads the provided `execution_plan` associated with the provided\n `opaque_context`.  Returns `kTfLiteOk` if the `execution_plan` was\n successfully loaded.  A return value different from `kTfLiteOk` indicates a\n failure and the `execution_plan` will be left in an unspecified state."]
    pub unsafe fn TfLiteOpaqueContextGetExecutionPlan(
        &self,
        opaque_context: *mut TfLiteOpaqueContext,
        execution_plan: *mut *mut TfLiteIntArray,
    ) -> TfLiteStatus {
        unsafe {
            (self
                .TfLiteOpaqueContextGetExecutionPlan
                .as_ref()
                .expect("Expected function, got error."))(opaque_context, execution_plan)
        }
    }

    #[doc = " Returns the external context of the specified type associated with the\n provided `opaque_context`. Returns `kTfLiteOk` if the external context was\n successfully loaded. A return value different from `kTfLiteOk` indicates a\n failure and the `external_context` will be left in an unspecified state."]
    pub unsafe fn TfLiteOpaqueContextGetExternalContext(
        &self,
        opaque_context: *mut TfLiteOpaqueContext,
        external_context: *mut *mut ::std::os::raw::c_void,
        type_: TfLiteExternalContextType,
    ) -> TfLiteStatus {
        unsafe {
            (self
                .TfLiteOpaqueContextGetExternalContext
                .as_ref()
                .expect("Expected function, got error."))(
                opaque_context, external_context, type_
            )
        }
    }

    #[doc = " Given the specified 'opaque_context' and 'node_index', load the caller's\n opaque '*node' and '*registration_external' pointer.  Return 'kTfLiteOk' if\n both the '*node' as well as the '*registration_external' have been loaded\n correctly.  Any other return code indicates a failure and both '*node' as\n well as '*registration_external' will be in an unspecified state.\n\n A caller can obtain a node's index by calling\n 'TfLiteOpaqueContextGetExecutionPlan', which provides an array of node\n indices, sorted in execution order.  A node index might also come from the\n data structures passed to the delegate kernel's callback parameters, like\n the delegate parameters data structure passed to the 'init' callback that\n contains an array of node indices that are meant to be handled by the\n delegate kernel.\n\n This function is expected to be called from within a delegate callback, like\n 'Prepare', or a delegate kernel callback (i.e., a callback registered with\n a 'TfLiteOperator' object).\n\n The loaded '*node' and '*registration_external' pointers will generally\n remain valid for the lifetime of the associated 'opaque_context', but can be\n invalidated through API calls where delegates get un-applied, like API calls\n that modify the model graph via a delegate, or if input tensors get\n re-sized.\n"]
    pub unsafe fn TfLiteOpaqueContextGetNodeAndRegistration(
        &self,
        opaque_context: *mut TfLiteOpaqueContext,
        node_index: ::std::os::raw::c_int,
        node: *mut *mut TfLiteOpaqueNode,
        registration_external: *mut *mut TfLiteOperator,
    ) -> TfLiteStatus {
        unsafe {
            (self
                .TfLiteOpaqueContextGetNodeAndRegistration
                .as_ref()
                .expect("Expected function, got error."))(
                opaque_context,
                node_index,
                node,
                registration_external,
            )
        }
    }

    #[doc = " Entry point for C API ReplaceNodeSubsetsWithDelegateKernels\n\n Replaces the specified `nodes_to_replace` that are associated with the\n provided `opaque_context` with delegate kernels.  The provided\n `registration_external` represents the delegate kernel and will be used for\n each node subset that will be delegate to the provided `opaque_delegate`.\n\n The TF Lite runtime will take ownership of the `registration_external` and\n will delete it when the associated `opaque_context` gets destroyed.\n\n The ownership of the `nodes_to_replace` and the `opaque_delegate` remains\n with the caller."]
    pub unsafe fn TfLiteOpaqueContextReplaceNodeSubsetsWithDelegateKernels(
        &self,
        opaque_context: *mut TfLiteOpaqueContext,
        registration_external: *mut TfLiteOperator,
        nodes_to_replace: *const TfLiteIntArray,
        opaque_delegate: *mut TfLiteOpaqueDelegate,
    ) -> TfLiteStatus {
        unsafe {
            (self
                .TfLiteOpaqueContextReplaceNodeSubsetsWithDelegateKernels
                .as_ref()
                .expect("Expected function, got error."))(
                opaque_context,
                registration_external,
                nodes_to_replace,
                opaque_delegate,
            )
        }
    }

    #[doc = " Returns modifiable access to the opaque tensor that corresponds to the\n specified `index` and is associated with the provided `opaque_context`.\n\n This requires the `index` to be between 0 and N - 1, where N is the\n number of tensors in the model.\n\n Typically the tensors associated with the `context` would be set\n during the initialization of the `interpreter` that the `context` belongs\n to, through a mechanism like the `InterpreterBuilder`, and remain unchanged\n throughout the lifetime of the interpreter.  However, there are some\n circumstances in which the pointer may not remain valid throughout the\n lifetime of the interpreter, because calls to `AddTensors` on the\n interpreter invalidate the returned pointer.\n\n The ownership of the tensor remains with the TFLite runtime, meaning the\n caller should not deallocate the pointer."]
    pub unsafe fn TfLiteOpaqueContextGetOpaqueTensor(
        &self,
        opaque_context: *const TfLiteOpaqueContext,
        index: ::std::os::raw::c_int,
    ) -> *mut TfLiteOpaqueTensor {
        unsafe {
            (self
                .TfLiteOpaqueContextGetOpaqueTensor
                .as_ref()
                .expect("Expected function, got error."))(opaque_context, index)
        }
    }

    #[doc = " Loads into the provided '*inputs' pointer the starting address of an array\n of indices representing the tensors that are inputs to the subgraph that is\n associated with the provided 'opaque_context'.  The length of the array is\n loaded into the provided 'num_inputs' pointer.  Returns 'kTfLiteOk' in case\n of success.  Any other return value indicates a failure and will leave\n 'inputs' and 'num_inputs' in an unspecified state.  Calls to 'SetInputs' on\n the associated subgraph invalidate the loaded pointers."]
    pub unsafe fn TfLiteOpaqueContextGetInputs(
        &self,
        opaque_context: *const TfLiteOpaqueContext,
        inputs: *mut *const ::std::os::raw::c_int,
        num_inputs: *mut ::std::os::raw::c_int,
    ) -> TfLiteStatus {
        unsafe {
            (self
                .TfLiteOpaqueContextGetInputs
                .as_ref()
                .expect("Expected function, got error."))(
                opaque_context, inputs, num_inputs
            )
        }
    }

    #[doc = " Loads into the provided '*outputs' pointer the starting address of an array\n of indices representing the tensors that are outputs to the subgraph that is\n associated with the provided 'opaque_context'.  The length of the array is\n loaded into the provided 'num_outputs' pointer.  Returns 'kTfLiteOk' in case\n of success.  Any other return value indicates a failure and will leave\n 'outputs' and 'num_outputs' in an unspecified state.  Calls to 'SetOutputs'\n on the associated subgraph invalidate the loaded pointers."]
    pub unsafe fn TfLiteOpaqueContextGetOutputs(
        &self,
        opaque_context: *const TfLiteOpaqueContext,
        outputs: *mut *const ::std::os::raw::c_int,
        num_outputs: *mut ::std::os::raw::c_int,
    ) -> TfLiteStatus {
        unsafe {
            (self
                .TfLiteOpaqueContextGetOutputs
                .as_ref()
                .expect("Expected function, got error."))(
                opaque_context, outputs, num_outputs
            )
        }
    }

    #[doc = " Loads into the provided '*variables' pointer the starting address of an\n array of indices representing the tensors that are variables to the subgraph\n that is associated with the provided 'opaque_context'.  The length of the\n array is loaded into the provided 'num_variables' pointer.  Returns\n 'kTfLiteOk' in case of success.  Any other return value indicates a failure\n and will leave 'variables' and 'num_variables' in an unspecified state.\n Calls to 'SetVariables' on the associated subgraph invalidate the loaded\n pointers."]
    pub unsafe fn TfLiteOpaqueContextGetVariables(
        &self,
        opaque_context: *const TfLiteOpaqueContext,
        variables: *mut *const ::std::os::raw::c_int,
        num_variables: *mut ::std::os::raw::c_int,
    ) -> TfLiteStatus {
        unsafe {
            (self
                .TfLiteOpaqueContextGetVariables
                .as_ref()
                .expect("Expected function, got error."))(
                opaque_context, variables, num_variables
            )
        }
    }

    #[doc = " Returns the number of nodes associated with the provided 'opaque_context'."]
    pub unsafe fn TfLiteOpaqueContextGetNumNodes(
        &self,
        opaque_context: *const TfLiteOpaqueContext,
    ) -> usize {
        unsafe {
            (self
                .TfLiteOpaqueContextGetNumNodes
                .as_ref()
                .expect("Expected function, got error."))(opaque_context)
        }
    }

    #[doc = " Returns the number of tensors associated with the provided 'opaque_context'."]
    pub unsafe fn TfLiteOpaqueContextGetNumTensors(
        &self,
        opaque_context: *const TfLiteOpaqueContext,
    ) -> usize {
        unsafe {
            (self
                .TfLiteOpaqueContextGetNumTensors
                .as_ref()
                .expect("Expected function, got error."))(opaque_context)
        }
    }

    #[doc = " Returns the name of the subgraph that is associated with the provided\n 'opaque_context'.  Typically the returned pointer will remain valid\n throughout the lifetime of the subgraph, but may be invalidated by a call to\n 'Subgraph::SetName'."]
    pub unsafe fn TfLiteOpaqueContextGetName(
        &self,
        opaque_context: *const TfLiteOpaqueContext,
    ) -> *const ::std::os::raw::c_char {
        unsafe {
            (self
                .TfLiteOpaqueContextGetName
                .as_ref()
                .expect("Expected function, got error."))(opaque_context)
        }
    }

    #[doc = " Resizes the provided 'tensor' that is associated with the provided\n 'context' so that the 'tensor's shape matches the dimensionality specified\n via the provided 'new_size' array.  Returns 'kTfLiteOk' in\n case of success.  Any other return value indicates a failure and will leave\n the 'tensor' in an unspecified state.  The TF Lite runtime takes ownership\n of the 'new_size' array, even in case of failure."]
    pub unsafe fn TfLiteOpaqueContextResizeTensor(
        &self,
        context: *mut TfLiteOpaqueContext,
        tensor: *mut TfLiteOpaqueTensor,
        new_size: *mut TfLiteIntArray,
    ) -> TfLiteStatus {
        unsafe {
            (self
                .TfLiteOpaqueContextResizeTensor
                .as_ref()
                .expect("Expected function, got error."))(context, tensor, new_size)
        }
    }

    #[doc = " Entry point for C API AcquireSubgraphContext.\n\n Retrieves the corresponding TfLiteOpaqueContext of a subgraph given a\n subgraph index and switches to the delegate context for this subgraph. If an\n invalid subgraph index is given, then returns kTfLiteError.\n\n NOTE: This function is expected to be paired with\n TfLiteOpaqueContextReleaseSubgraphContext() once the delegate preparation is\n done and/or the delegate context functions are no longer needed."]
    pub unsafe fn TfLiteOpaqueContextAcquireSubgraphContext(
        &self,
        opaque_context: *mut TfLiteOpaqueContext,
        subgraph_index: ::std::os::raw::c_int,
        acquired_opaque_context: *mut *mut TfLiteOpaqueContext,
    ) -> TfLiteStatus {
        unsafe {
            (self
                .TfLiteOpaqueContextAcquireSubgraphContext
                .as_ref()
                .expect("Expected function, got error."))(
                opaque_context,
                subgraph_index,
                acquired_opaque_context,
            )
        }
    }

    #[doc = " Entry point for C API ReleaseSubgraphContext.\n\n Releases the corresponding TfLiteOpaqueContext by switching back to the\n TFLite kernel context for this specified subgraph.\n\n NOTE: This function is expected to be used after\n TfLiteOpaqueContextAcquireSubgraphContext() once the delegate preparation is\n done and/or the delegate context functions are no longer needed."]
    pub unsafe fn TfLiteOpaqueContextReleaseSubgraphContext(
        &self,
        opaque_context: *mut TfLiteOpaqueContext,
        subgraph_index: ::std::os::raw::c_int,
    ) -> TfLiteStatus {
        unsafe {
            (self
                .TfLiteOpaqueContextReleaseSubgraphContext
                .as_ref()
                .expect("Expected function, got error."))(opaque_context, subgraph_index)
        }
    }

    #[doc = " Entry point for C API MarkSubgraphAsDelegationSkippable\n\n Marks the subgraph with the given index as \"delegation-skippable\". Returns\n kTfLiteOk if the given subgraph index is valid and is successfully marked\n as delegation-skippable, and an error status if the subgraph index is\n invalid.\n If a subgraph is delegation-skippable, then the subgraph will be handled by\n a specific TfLiteOpaqueDelegate that is already supposed to be\n aware of this condition, and therefore, TfLiteInterpreter can skip invoking\n `ModifyGraphWithDelegate` on this subgraph.\n\n NOTE: This function is expected to be called only when the subgraph that\n `subgraph_index` is pointing to should be skipped by\n interpreter::ModifyGraphWithDelegate (e.g. the subgraph is part of the list\n of callee subgraphs of the same control flow node, and all of those callees\n are supported by the same delegate at once).\n\n For  example, this function can be used when the delegate is handling\n control flow ops such as while ops. For instance, a while op has a condition\n subgraph indexed at `i` and a body subgraph indexed at `j`. The op can be\n delegated when the following conditions hold:\n   1. The delegate supports while op\n   2. Both condition subgraph `i` and body subgraph `j` can be fully\n   delegated to the delegate.\n\n Then if the delegate decides to support the while node along with both body\n and condition subgraphs, it should mark subgraphs `i` and `j` skippable so\n that those two subgraphs won't be delegated to another delegate.\n\n WARNING: It is the delegate's responsibility to define when to skip\n `Subgraph::ModifyGraphWithDelegate`, to check for any edge cases (i.e.\n multiple references to the subgraph that `subgraph_index` is pointing to),\n and to mark a subgraph as skippable by using this function."]
    pub unsafe fn TfLiteOpaqueContextMarkSubgraphAsDelegationSkippable(
        &self,
        opaque_context: *mut TfLiteOpaqueContext,
        subgraph_index: ::std::os::raw::c_int,
    ) -> TfLiteStatus {
        unsafe {
            (self
                .TfLiteOpaqueContextMarkSubgraphAsDelegationSkippable
                .as_ref()
                .expect("Expected function, got error."))(opaque_context, subgraph_index)
        }
    }

    #[doc = " Loads metadata of a TF Lite node's custom initialization data. Specifically:\n * Loads into the supplied 'fd' the file descriptor of the file that stores\n   the 'node's custom  initialization data.  This output parameter will be\n   loaded if the TF Lite runtime has access to the file descriptor, though\n   this is not always the case, e.g. if a client provides a tflite::Model\n   directly to the TF Lite runtime.  If 'fd' can be loaded then 'kTfLiteOk'\n   will be returned, otherwise 'kTfLiteError' is returned.\n * Loads into the supplied 'custom_initial_data_offset_in_file' pointer the\n   offset of the 'node's custom init data in the file associated with 'fd'.\n   This output parameter will be set to -1 if the 'node' does not have custom\n   init data set.\n * Loads into the supplied 'custom_initial_data_size' the size of the\n   custom initialization data.  This output parameter will be set to -1 if\n   the 'node' does not have custom init data set.\n\n Returns 'kTfLiteOk' when 'fd' has been loaded successfully and\n 'kTfLiteError' otherwise.  Note that this means that 'kTfLiteOk' can be\n returned, even if the 'node' does not have custom init data set."]
    pub unsafe fn TfLiteOpaqueContextGetNodeInitDataMmapInfo(
        &self,
        context: *const TfLiteOpaqueContext,
        node: *const TfLiteOpaqueNode,
        fd: *mut ::std::os::raw::c_int,
        custom_initial_data_offset_in_file: *mut i64,
        custom_initial_data_size: *mut i64,
    ) -> TfLiteStatus {
        unsafe {
            (self
                .TfLiteOpaqueContextGetNodeInitDataMmapInfo
                .as_ref()
                .expect("Expected function, got error."))(
                context,
                node,
                fd,
                custom_initial_data_offset_in_file,
                custom_initial_data_size,
            )
        }
    }

    #[doc = " Adds an additional tensor and configures its properties based on the\n provided 'builder', preserving pre-existing Tensor entries. If non-null,\n the value pointed to by 'new_tensor_index' will be set to the index of the\n new tensor.  Returns 'kTfLiteOk' when the tensor has been added\n successfully.  Returns 'kTfLiteError' in case of failure."]
    pub unsafe fn TfLiteOpaqueContextAddTensor(
        &self,
        context: *mut TfLiteOpaqueContext,
        builder: *mut TfLiteOpaqueTensorBuilder,
        new_tensor_index: *mut ::std::os::raw::c_int,
    ) -> TfLiteStatus {
        unsafe {
            (self
                .TfLiteOpaqueContextAddTensor
                .as_ref()
                .expect("Expected function, got error."))(
                context, builder, new_tensor_index
            )
        }
    }

    #[doc = " Populates the size in bytes of a provide 'type' into 'bytes'.  Returns\n 'kTfLiteOk' for valid types, and 'kTfLiteError' otherwise."]
    pub unsafe fn TfLiteOpaqueContextGetSizeOfType(
        &self,
        context: *mut TfLiteOpaqueContext,
        type_: TfLiteType,
        bytes: *mut usize,
    ) -> TfLiteStatus {
        unsafe {
            (self
                .TfLiteOpaqueContextGetSizeOfType
                .as_ref()
                .expect("Expected function, got error."))(context, type_, bytes)
        }
    }

    #[doc = " Retrieves named metadata buffer from the TFLite model.\n Returns kTfLiteOk if metadata is successfully obtained from the flatbuffer\n model. That is, there exists a `metadata` entry with given `name` string.\n (see TFLite's schema.fbs).\n The corresponding `buffer` information is populated in `ptr` & `bytes`.\n The data from `ptr` is valid for the lifetime of the Interpreter."]
    pub unsafe fn TfLiteOpaqueContextGetMetadata(
        &self,
        context: *mut TfLiteOpaqueContext,
        name: *const ::std::os::raw::c_char,
        ptr: *mut *const ::std::os::raw::c_char,
        bytes: *mut usize,
    ) -> TfLiteStatus {
        unsafe {
            (self
                .TfLiteOpaqueContextGetMetadata
                .as_ref()
                .expect("Expected function, got error."))(context, name, ptr, bytes)
        }
    }

    #[doc = " Same as `TfLiteOpaqueContextReportError`, but with the variable arguments\n passed via a `va_list` instead of directly.\n\n Callers that receive an ellipsis and want to forward it to\n to the opaque context error reporting API can add the ellipsis content to a\n `va_list` and then call `TfLiteOpaqueContextReportErrorVa`. E.g.:\n\n```text\n     void MyErrorReporter(struct TfLiteOpaqueContext* opaque_context,\n                                      const char* format, ...) {\n       va_list vlist;\n       va_start(vlist, format);\n       TfLiteOpaqueContextReportErrorVa(opaque_context, format, vlist);\n       va_end(vlist);\n     }\n```"]
    pub unsafe fn TfLiteOpaqueContextReportErrorVa(
        &self,
        opaque_context: *mut TfLiteOpaqueContext,
        format: *const ::std::os::raw::c_char,
        vlist: *mut __va_list_tag,
    ) {
        unsafe {
            (self
                .TfLiteOpaqueContextReportErrorVa
                .as_ref()
                .expect("Expected function, got error."))(opaque_context, format, vlist)
        }
    }
}