Tensor Tiling Library
Loading...
Searching...
No Matches
pipelines/TTL_double_scheme.h
Go to the documentation of this file.
1/*
2 * TTL_double_scheme.h
3 *
4 * Copyright (c) 2025 Mobileye
5 *
6 * Licensed under the Apache License, Version 2.0 (the License);
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an AS IS BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18
19// This file presumes that the following have been pre included.
20// this is not done here for path reasons.
21// #include "TTL_core.h"
22// #include "TTL_import_export.h"
23// #include TTL_IMPORT_EXPORT_INCLUDE_H
24
25/**
26 * @brief Wait for the previous import operation to complete before beginning an
27 * import of the next tile.
28 *
29 * @param db TTL_import_double_buffering_t describing the attributes of the
30 * transfer
31 * @param next_tile A description of the tile to begin importing.
32 *
33 */
34static inline TTL_int_void_sub_tensor_t __attribute__((overloadable)) TTL_step_buffering(
36 // For performance, compute everything possible before waiting for the
37 // previous operations to finish.
38 const TTL_layout_t int_layout = TTL_create_layout(next_tile.shape.width, next_tile.shape.height);
39 const TTL_int_void_sub_tensor_t import_to = TTL_create_int_sub_tensor(
40 db->common.int_base[db->common.index], next_tile.shape, int_layout, db->common.ext_tensor_in, next_tile.offset);
41 const TTL_const_ext_void_tensor_t import_from = TTL_create_const_ext_tensor(db->common.ext_tensor_in.base,
42 next_tile.shape,
43 db->common.ext_tensor_in.layout,
44 next_tile.offset,
45 db->common.ext_tensor_in.elem_size);
46
47 TTL_wait(1, db->event);
48
49 if (TTL_tile_empty(next_tile) == false) {
50 TTL_import_sub_tensor(import_to, import_from, db->event);
51 }
52
53 db->common.index = (db->common.index + 1) % 2; // TTL_ARRAYSIZE(db->common.int_base);
54
55 const TTL_layout_t prev_int_layout = TTL_create_layout(db->prev_tile.shape.width, db->prev_tile.shape.height);
56 const TTL_int_void_sub_tensor_t result = TTL_create_int_sub_tensor(db->common.int_base[db->common.index],
57 db->prev_tile.shape,
58 prev_int_layout,
59 db->common.ext_tensor_in,
60 db->prev_tile.offset);
61
62 db->prev_tile = next_tile;
63
64 return result;
65}
66
67/**
68 * @brief Wait for the previous import operation to complete before beginning an
69 * export of next tile.
70 *
71 * @param db A TTL_export_double_buffering_t describing the attributes of the
72 * transfer
73 * @param tile_current A description of the tile to begin exporting.
74 *
75 */
76static inline TTL_int_void_sub_tensor_t __attribute__((overloadable)) TTL_step_buffering(
78 const TTL_layout_t int_layout = TTL_create_layout(db->prev_tile.shape.width, db->prev_tile.shape.height);
79 const TTL_const_int_void_tensor_t export_from = TTL_create_const_int_tensor(
80 db->common.int_base[db->common.index], db->prev_tile.shape, int_layout, db->common.ext_tensor_in.elem_size);
81 const TTL_ext_void_tensor_t export_to = TTL_create_ext_tensor(db->common.ext_tensor_in.base,
82 db->prev_tile.shape,
83 db->common.ext_tensor_in.layout,
84 db->prev_tile.offset,
85 db->common.ext_tensor_in.elem_size);
86
87 TTL_wait(1, db->event);
88
89 if (TTL_tile_empty(db->prev_tile) == false)
90 TTL_export(*TTL_to_void_tensor(TTL_to_const_tensor(&export_from)), *TTL_to_void_tensor(&export_to), db->event);
91
92 db->common.index = (db->common.index + 1) % 2; // TTL_ARRAYSIZE(db->common.int_base);
93 const TTL_layout_t curr_int_layout = TTL_create_layout(tile_current.shape.width, tile_current.shape.height);
94 const TTL_int_void_sub_tensor_t result = TTL_create_int_sub_tensor(db->common.int_base[db->common.index],
95 tile_current.shape,
96 curr_int_layout,
97 *TTL_to_const_tensor(&db->common.ext_tensor_in),
98 tile_current.offset);
99 db->prev_tile = tile_current;
100
101 return result;
102}
103
104static inline void __attribute__((overloadable)) TTL_finish_buffering(
105 TTL_import_double_const_void_tensor_buffering_t* import_double_buffering) {
106 (void)import_double_buffering;
107 // Nothing to do.
108}
109
110static inline void __attribute__((overloadable)) TTL_finish_buffering(
111 TTL_export_double_const_void_tensor_buffering_t* export_double_buffering) {
112 TTL_step_buffering(export_double_buffering, TTL_create_empty_tile());
113 TTL_step_buffering(export_double_buffering, TTL_create_empty_tile());
114}
115/*
116 * TTL_double_scheme.h
117 *
118 * Copyright (c) 2025 Mobileye
119 *
120 * Licensed under the Apache License, Version 2.0 (the License);
121 * you may not use this file except in compliance with the License.
122 * You may obtain a copy of the License at
123 *
124 * http://www.apache.org/licenses/LICENSE-2.0
125 *
126 * Unless required by applicable law or agreed to in writing, software
127 * distributed under the License is distributed on an AS IS BASIS,
128 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
129 * See the License for the specific language governing permissions and
130 * limitations under the License.
131 */
132
133// This file presumes that the following have been pre included.
134// this is not done here for path reasons.
135// #include "TTL_core.h"
136// #include "TTL_import_export.h"
137// #include TTL_IMPORT_EXPORT_INCLUDE_H
138
139/**
140 * @brief Wait for the previous import operation to complete before beginning an
141 * import of the next tile.
142 *
143 * @param db TTL_import_double_buffering_t describing the attributes of the
144 * transfer
145 * @param next_tile A description of the tile to begin importing.
146 *
147 */
148static inline TTL_int_char_sub_tensor_t __attribute__((overloadable)) TTL_step_buffering(
150 // For performance, compute everything possible before waiting for the
151 // previous operations to finish.
152 const TTL_layout_t int_layout = TTL_create_layout(next_tile.shape.width, next_tile.shape.height);
153 const TTL_int_char_sub_tensor_t import_to = TTL_create_int_sub_tensor(
154 db->common.int_base[db->common.index], next_tile.shape, int_layout, db->common.ext_tensor_in, next_tile.offset);
155 const TTL_const_ext_char_tensor_t import_from = TTL_create_const_ext_tensor(db->common.ext_tensor_in.base,
156 next_tile.shape,
157 db->common.ext_tensor_in.layout,
158 next_tile.offset,
159 db->common.ext_tensor_in.elem_size);
160
161 TTL_wait(1, db->event);
162
163 if (TTL_tile_empty(next_tile) == false) {
164 TTL_import_sub_tensor(import_to, import_from, db->event);
165 }
166
167 db->common.index = (db->common.index + 1) % 2; // TTL_ARRAYSIZE(db->common.int_base);
168
169 const TTL_layout_t prev_int_layout = TTL_create_layout(db->prev_tile.shape.width, db->prev_tile.shape.height);
170 const TTL_int_char_sub_tensor_t result = TTL_create_int_sub_tensor(db->common.int_base[db->common.index],
171 db->prev_tile.shape,
172 prev_int_layout,
173 db->common.ext_tensor_in,
174 db->prev_tile.offset);
175
176 db->prev_tile = next_tile;
177
178 return result;
179}
180
181/**
182 * @brief Wait for the previous import operation to complete before beginning an
183 * export of next tile.
184 *
185 * @param db A TTL_export_double_buffering_t describing the attributes of the
186 * transfer
187 * @param tile_current A description of the tile to begin exporting.
188 *
189 */
190static inline TTL_int_char_sub_tensor_t __attribute__((overloadable)) TTL_step_buffering(
192 const TTL_layout_t int_layout = TTL_create_layout(db->prev_tile.shape.width, db->prev_tile.shape.height);
193 const TTL_const_int_char_tensor_t export_from = TTL_create_const_int_tensor(
194 db->common.int_base[db->common.index], db->prev_tile.shape, int_layout, db->common.ext_tensor_in.elem_size);
195 const TTL_ext_char_tensor_t export_to = TTL_create_ext_tensor(db->common.ext_tensor_in.base,
196 db->prev_tile.shape,
197 db->common.ext_tensor_in.layout,
198 db->prev_tile.offset,
199 db->common.ext_tensor_in.elem_size);
200
201 TTL_wait(1, db->event);
202
203 if (TTL_tile_empty(db->prev_tile) == false)
204 TTL_export(*TTL_to_void_tensor(TTL_to_const_tensor(&export_from)), *TTL_to_void_tensor(&export_to), db->event);
205
206 db->common.index = (db->common.index + 1) % 2; // TTL_ARRAYSIZE(db->common.int_base);
207 const TTL_layout_t curr_int_layout = TTL_create_layout(tile_current.shape.width, tile_current.shape.height);
208 const TTL_int_char_sub_tensor_t result = TTL_create_int_sub_tensor(db->common.int_base[db->common.index],
209 tile_current.shape,
210 curr_int_layout,
211 *TTL_to_const_tensor(&db->common.ext_tensor_in),
212 tile_current.offset);
213 db->prev_tile = tile_current;
214
215 return result;
216}
217
218static inline void __attribute__((overloadable)) TTL_finish_buffering(
219 TTL_import_double_const_char_tensor_buffering_t* import_double_buffering) {
220 (void)import_double_buffering;
221 // Nothing to do.
222}
223
224static inline void __attribute__((overloadable)) TTL_finish_buffering(
225 TTL_export_double_const_char_tensor_buffering_t* export_double_buffering) {
226 TTL_step_buffering(export_double_buffering, TTL_create_empty_tile());
227 TTL_step_buffering(export_double_buffering, TTL_create_empty_tile());
228}
229/*
230 * TTL_double_scheme.h
231 *
232 * Copyright (c) 2025 Mobileye
233 *
234 * Licensed under the Apache License, Version 2.0 (the License);
235 * you may not use this file except in compliance with the License.
236 * You may obtain a copy of the License at
237 *
238 * http://www.apache.org/licenses/LICENSE-2.0
239 *
240 * Unless required by applicable law or agreed to in writing, software
241 * distributed under the License is distributed on an AS IS BASIS,
242 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
243 * See the License for the specific language governing permissions and
244 * limitations under the License.
245 */
246
247// This file presumes that the following have been pre included.
248// this is not done here for path reasons.
249// #include "TTL_core.h"
250// #include "TTL_import_export.h"
251// #include TTL_IMPORT_EXPORT_INCLUDE_H
252
253/**
254 * @brief Wait for the previous import operation to complete before beginning an
255 * import of the next tile.
256 *
257 * @param db TTL_import_double_buffering_t describing the attributes of the
258 * transfer
259 * @param next_tile A description of the tile to begin importing.
260 *
261 */
262static inline TTL_int_uchar_sub_tensor_t __attribute__((overloadable)) TTL_step_buffering(
264 // For performance, compute everything possible before waiting for the
265 // previous operations to finish.
266 const TTL_layout_t int_layout = TTL_create_layout(next_tile.shape.width, next_tile.shape.height);
267 const TTL_int_uchar_sub_tensor_t import_to = TTL_create_int_sub_tensor(
268 db->common.int_base[db->common.index], next_tile.shape, int_layout, db->common.ext_tensor_in, next_tile.offset);
269 const TTL_const_ext_uchar_tensor_t import_from = TTL_create_const_ext_tensor(db->common.ext_tensor_in.base,
270 next_tile.shape,
271 db->common.ext_tensor_in.layout,
272 next_tile.offset,
273 db->common.ext_tensor_in.elem_size);
274
275 TTL_wait(1, db->event);
276
277 if (TTL_tile_empty(next_tile) == false) {
278 TTL_import_sub_tensor(import_to, import_from, db->event);
279 }
280
281 db->common.index = (db->common.index + 1) % 2; // TTL_ARRAYSIZE(db->common.int_base);
282
283 const TTL_layout_t prev_int_layout = TTL_create_layout(db->prev_tile.shape.width, db->prev_tile.shape.height);
284 const TTL_int_uchar_sub_tensor_t result = TTL_create_int_sub_tensor(db->common.int_base[db->common.index],
285 db->prev_tile.shape,
286 prev_int_layout,
287 db->common.ext_tensor_in,
288 db->prev_tile.offset);
289
290 db->prev_tile = next_tile;
291
292 return result;
293}
294
295/**
296 * @brief Wait for the previous import operation to complete before beginning an
297 * export of next tile.
298 *
299 * @param db A TTL_export_double_buffering_t describing the attributes of the
300 * transfer
301 * @param tile_current A description of the tile to begin exporting.
302 *
303 */
304static inline TTL_int_uchar_sub_tensor_t __attribute__((overloadable)) TTL_step_buffering(
306 const TTL_layout_t int_layout = TTL_create_layout(db->prev_tile.shape.width, db->prev_tile.shape.height);
307 const TTL_const_int_uchar_tensor_t export_from = TTL_create_const_int_tensor(
308 db->common.int_base[db->common.index], db->prev_tile.shape, int_layout, db->common.ext_tensor_in.elem_size);
309 const TTL_ext_uchar_tensor_t export_to = TTL_create_ext_tensor(db->common.ext_tensor_in.base,
310 db->prev_tile.shape,
311 db->common.ext_tensor_in.layout,
312 db->prev_tile.offset,
313 db->common.ext_tensor_in.elem_size);
314
315 TTL_wait(1, db->event);
316
317 if (TTL_tile_empty(db->prev_tile) == false)
318 TTL_export(*TTL_to_void_tensor(TTL_to_const_tensor(&export_from)), *TTL_to_void_tensor(&export_to), db->event);
319
320 db->common.index = (db->common.index + 1) % 2; // TTL_ARRAYSIZE(db->common.int_base);
321 const TTL_layout_t curr_int_layout = TTL_create_layout(tile_current.shape.width, tile_current.shape.height);
322 const TTL_int_uchar_sub_tensor_t result = TTL_create_int_sub_tensor(db->common.int_base[db->common.index],
323 tile_current.shape,
324 curr_int_layout,
325 *TTL_to_const_tensor(&db->common.ext_tensor_in),
326 tile_current.offset);
327 db->prev_tile = tile_current;
328
329 return result;
330}
331
332static inline void __attribute__((overloadable)) TTL_finish_buffering(
333 TTL_import_double_const_uchar_tensor_buffering_t* import_double_buffering) {
334 (void)import_double_buffering;
335 // Nothing to do.
336}
337
338static inline void __attribute__((overloadable)) TTL_finish_buffering(
339 TTL_export_double_const_uchar_tensor_buffering_t* export_double_buffering) {
340 TTL_step_buffering(export_double_buffering, TTL_create_empty_tile());
341 TTL_step_buffering(export_double_buffering, TTL_create_empty_tile());
342}
343/*
344 * TTL_double_scheme.h
345 *
346 * Copyright (c) 2025 Mobileye
347 *
348 * Licensed under the Apache License, Version 2.0 (the License);
349 * you may not use this file except in compliance with the License.
350 * You may obtain a copy of the License at
351 *
352 * http://www.apache.org/licenses/LICENSE-2.0
353 *
354 * Unless required by applicable law or agreed to in writing, software
355 * distributed under the License is distributed on an AS IS BASIS,
356 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
357 * See the License for the specific language governing permissions and
358 * limitations under the License.
359 */
360
361// This file presumes that the following have been pre included.
362// this is not done here for path reasons.
363// #include "TTL_core.h"
364// #include "TTL_import_export.h"
365// #include TTL_IMPORT_EXPORT_INCLUDE_H
366
367/**
368 * @brief Wait for the previous import operation to complete before beginning an
369 * import of the next tile.
370 *
371 * @param db TTL_import_double_buffering_t describing the attributes of the
372 * transfer
373 * @param next_tile A description of the tile to begin importing.
374 *
375 */
376static inline TTL_int_int_sub_tensor_t __attribute__((overloadable)) TTL_step_buffering(
378 // For performance, compute everything possible before waiting for the
379 // previous operations to finish.
380 const TTL_layout_t int_layout = TTL_create_layout(next_tile.shape.width, next_tile.shape.height);
381 const TTL_int_int_sub_tensor_t import_to = TTL_create_int_sub_tensor(
382 db->common.int_base[db->common.index], next_tile.shape, int_layout, db->common.ext_tensor_in, next_tile.offset);
383 const TTL_const_ext_int_tensor_t import_from = TTL_create_const_ext_tensor(db->common.ext_tensor_in.base,
384 next_tile.shape,
385 db->common.ext_tensor_in.layout,
386 next_tile.offset,
387 db->common.ext_tensor_in.elem_size);
388
389 TTL_wait(1, db->event);
390
391 if (TTL_tile_empty(next_tile) == false) {
392 TTL_import_sub_tensor(import_to, import_from, db->event);
393 }
394
395 db->common.index = (db->common.index + 1) % 2; // TTL_ARRAYSIZE(db->common.int_base);
396
397 const TTL_layout_t prev_int_layout = TTL_create_layout(db->prev_tile.shape.width, db->prev_tile.shape.height);
398 const TTL_int_int_sub_tensor_t result = TTL_create_int_sub_tensor(db->common.int_base[db->common.index],
399 db->prev_tile.shape,
400 prev_int_layout,
401 db->common.ext_tensor_in,
402 db->prev_tile.offset);
403
404 db->prev_tile = next_tile;
405
406 return result;
407}
408
409/**
410 * @brief Wait for the previous import operation to complete before beginning an
411 * export of next tile.
412 *
413 * @param db A TTL_export_double_buffering_t describing the attributes of the
414 * transfer
415 * @param tile_current A description of the tile to begin exporting.
416 *
417 */
418static inline TTL_int_int_sub_tensor_t __attribute__((overloadable)) TTL_step_buffering(
420 const TTL_layout_t int_layout = TTL_create_layout(db->prev_tile.shape.width, db->prev_tile.shape.height);
421 const TTL_const_int_int_tensor_t export_from = TTL_create_const_int_tensor(
422 db->common.int_base[db->common.index], db->prev_tile.shape, int_layout, db->common.ext_tensor_in.elem_size);
423 const TTL_ext_int_tensor_t export_to = TTL_create_ext_tensor(db->common.ext_tensor_in.base,
424 db->prev_tile.shape,
425 db->common.ext_tensor_in.layout,
426 db->prev_tile.offset,
427 db->common.ext_tensor_in.elem_size);
428
429 TTL_wait(1, db->event);
430
431 if (TTL_tile_empty(db->prev_tile) == false)
432 TTL_export(*TTL_to_void_tensor(TTL_to_const_tensor(&export_from)), *TTL_to_void_tensor(&export_to), db->event);
433
434 db->common.index = (db->common.index + 1) % 2; // TTL_ARRAYSIZE(db->common.int_base);
435 const TTL_layout_t curr_int_layout = TTL_create_layout(tile_current.shape.width, tile_current.shape.height);
436 const TTL_int_int_sub_tensor_t result = TTL_create_int_sub_tensor(db->common.int_base[db->common.index],
437 tile_current.shape,
438 curr_int_layout,
439 *TTL_to_const_tensor(&db->common.ext_tensor_in),
440 tile_current.offset);
441 db->prev_tile = tile_current;
442
443 return result;
444}
445
446static inline void __attribute__((overloadable)) TTL_finish_buffering(
447 TTL_import_double_const_int_tensor_buffering_t* import_double_buffering) {
448 (void)import_double_buffering;
449 // Nothing to do.
450}
451
452static inline void __attribute__((overloadable)) TTL_finish_buffering(
453 TTL_export_double_const_int_tensor_buffering_t* export_double_buffering) {
454 TTL_step_buffering(export_double_buffering, TTL_create_empty_tile());
455 TTL_step_buffering(export_double_buffering, TTL_create_empty_tile());
456}
457/*
458 * TTL_double_scheme.h
459 *
460 * Copyright (c) 2025 Mobileye
461 *
462 * Licensed under the Apache License, Version 2.0 (the License);
463 * you may not use this file except in compliance with the License.
464 * You may obtain a copy of the License at
465 *
466 * http://www.apache.org/licenses/LICENSE-2.0
467 *
468 * Unless required by applicable law or agreed to in writing, software
469 * distributed under the License is distributed on an AS IS BASIS,
470 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
471 * See the License for the specific language governing permissions and
472 * limitations under the License.
473 */
474
475// This file presumes that the following have been pre included.
476// this is not done here for path reasons.
477// #include "TTL_core.h"
478// #include "TTL_import_export.h"
479// #include TTL_IMPORT_EXPORT_INCLUDE_H
480
481/**
482 * @brief Wait for the previous import operation to complete before beginning an
483 * import of the next tile.
484 *
485 * @param db TTL_import_double_buffering_t describing the attributes of the
486 * transfer
487 * @param next_tile A description of the tile to begin importing.
488 *
489 */
490static inline TTL_int_uint_sub_tensor_t __attribute__((overloadable)) TTL_step_buffering(
492 // For performance, compute everything possible before waiting for the
493 // previous operations to finish.
494 const TTL_layout_t int_layout = TTL_create_layout(next_tile.shape.width, next_tile.shape.height);
495 const TTL_int_uint_sub_tensor_t import_to = TTL_create_int_sub_tensor(
496 db->common.int_base[db->common.index], next_tile.shape, int_layout, db->common.ext_tensor_in, next_tile.offset);
497 const TTL_const_ext_uint_tensor_t import_from = TTL_create_const_ext_tensor(db->common.ext_tensor_in.base,
498 next_tile.shape,
499 db->common.ext_tensor_in.layout,
500 next_tile.offset,
501 db->common.ext_tensor_in.elem_size);
502
503 TTL_wait(1, db->event);
504
505 if (TTL_tile_empty(next_tile) == false) {
506 TTL_import_sub_tensor(import_to, import_from, db->event);
507 }
508
509 db->common.index = (db->common.index + 1) % 2; // TTL_ARRAYSIZE(db->common.int_base);
510
511 const TTL_layout_t prev_int_layout = TTL_create_layout(db->prev_tile.shape.width, db->prev_tile.shape.height);
512 const TTL_int_uint_sub_tensor_t result = TTL_create_int_sub_tensor(db->common.int_base[db->common.index],
513 db->prev_tile.shape,
514 prev_int_layout,
515 db->common.ext_tensor_in,
516 db->prev_tile.offset);
517
518 db->prev_tile = next_tile;
519
520 return result;
521}
522
523/**
524 * @brief Wait for the previous import operation to complete before beginning an
525 * export of next tile.
526 *
527 * @param db A TTL_export_double_buffering_t describing the attributes of the
528 * transfer
529 * @param tile_current A description of the tile to begin exporting.
530 *
531 */
532static inline TTL_int_uint_sub_tensor_t __attribute__((overloadable)) TTL_step_buffering(
534 const TTL_layout_t int_layout = TTL_create_layout(db->prev_tile.shape.width, db->prev_tile.shape.height);
535 const TTL_const_int_uint_tensor_t export_from = TTL_create_const_int_tensor(
536 db->common.int_base[db->common.index], db->prev_tile.shape, int_layout, db->common.ext_tensor_in.elem_size);
537 const TTL_ext_uint_tensor_t export_to = TTL_create_ext_tensor(db->common.ext_tensor_in.base,
538 db->prev_tile.shape,
539 db->common.ext_tensor_in.layout,
540 db->prev_tile.offset,
541 db->common.ext_tensor_in.elem_size);
542
543 TTL_wait(1, db->event);
544
545 if (TTL_tile_empty(db->prev_tile) == false)
546 TTL_export(*TTL_to_void_tensor(TTL_to_const_tensor(&export_from)), *TTL_to_void_tensor(&export_to), db->event);
547
548 db->common.index = (db->common.index + 1) % 2; // TTL_ARRAYSIZE(db->common.int_base);
549 const TTL_layout_t curr_int_layout = TTL_create_layout(tile_current.shape.width, tile_current.shape.height);
550 const TTL_int_uint_sub_tensor_t result = TTL_create_int_sub_tensor(db->common.int_base[db->common.index],
551 tile_current.shape,
552 curr_int_layout,
553 *TTL_to_const_tensor(&db->common.ext_tensor_in),
554 tile_current.offset);
555 db->prev_tile = tile_current;
556
557 return result;
558}
559
560static inline void __attribute__((overloadable)) TTL_finish_buffering(
561 TTL_import_double_const_uint_tensor_buffering_t* import_double_buffering) {
562 (void)import_double_buffering;
563 // Nothing to do.
564}
565
566static inline void __attribute__((overloadable)) TTL_finish_buffering(
567 TTL_export_double_const_uint_tensor_buffering_t* export_double_buffering) {
568 TTL_step_buffering(export_double_buffering, TTL_create_empty_tile());
569 TTL_step_buffering(export_double_buffering, TTL_create_empty_tile());
570}
571/*
572 * TTL_double_scheme.h
573 *
574 * Copyright (c) 2025 Mobileye
575 *
576 * Licensed under the Apache License, Version 2.0 (the License);
577 * you may not use this file except in compliance with the License.
578 * You may obtain a copy of the License at
579 *
580 * http://www.apache.org/licenses/LICENSE-2.0
581 *
582 * Unless required by applicable law or agreed to in writing, software
583 * distributed under the License is distributed on an AS IS BASIS,
584 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
585 * See the License for the specific language governing permissions and
586 * limitations under the License.
587 */
588
589// This file presumes that the following have been pre included.
590// this is not done here for path reasons.
591// #include "TTL_core.h"
592// #include "TTL_import_export.h"
593// #include TTL_IMPORT_EXPORT_INCLUDE_H
594
595/**
596 * @brief Wait for the previous import operation to complete before beginning an
597 * import of the next tile.
598 *
599 * @param db TTL_import_double_buffering_t describing the attributes of the
600 * transfer
601 * @param next_tile A description of the tile to begin importing.
602 *
603 */
604static inline TTL_int_short_sub_tensor_t __attribute__((overloadable)) TTL_step_buffering(
606 // For performance, compute everything possible before waiting for the
607 // previous operations to finish.
608 const TTL_layout_t int_layout = TTL_create_layout(next_tile.shape.width, next_tile.shape.height);
609 const TTL_int_short_sub_tensor_t import_to = TTL_create_int_sub_tensor(
610 db->common.int_base[db->common.index], next_tile.shape, int_layout, db->common.ext_tensor_in, next_tile.offset);
611 const TTL_const_ext_short_tensor_t import_from = TTL_create_const_ext_tensor(db->common.ext_tensor_in.base,
612 next_tile.shape,
613 db->common.ext_tensor_in.layout,
614 next_tile.offset,
615 db->common.ext_tensor_in.elem_size);
616
617 TTL_wait(1, db->event);
618
619 if (TTL_tile_empty(next_tile) == false) {
620 TTL_import_sub_tensor(import_to, import_from, db->event);
621 }
622
623 db->common.index = (db->common.index + 1) % 2; // TTL_ARRAYSIZE(db->common.int_base);
624
625 const TTL_layout_t prev_int_layout = TTL_create_layout(db->prev_tile.shape.width, db->prev_tile.shape.height);
626 const TTL_int_short_sub_tensor_t result = TTL_create_int_sub_tensor(db->common.int_base[db->common.index],
627 db->prev_tile.shape,
628 prev_int_layout,
629 db->common.ext_tensor_in,
630 db->prev_tile.offset);
631
632 db->prev_tile = next_tile;
633
634 return result;
635}
636
637/**
638 * @brief Wait for the previous import operation to complete before beginning an
639 * export of next tile.
640 *
641 * @param db A TTL_export_double_buffering_t describing the attributes of the
642 * transfer
643 * @param tile_current A description of the tile to begin exporting.
644 *
645 */
646static inline TTL_int_short_sub_tensor_t __attribute__((overloadable)) TTL_step_buffering(
648 const TTL_layout_t int_layout = TTL_create_layout(db->prev_tile.shape.width, db->prev_tile.shape.height);
649 const TTL_const_int_short_tensor_t export_from = TTL_create_const_int_tensor(
650 db->common.int_base[db->common.index], db->prev_tile.shape, int_layout, db->common.ext_tensor_in.elem_size);
651 const TTL_ext_short_tensor_t export_to = TTL_create_ext_tensor(db->common.ext_tensor_in.base,
652 db->prev_tile.shape,
653 db->common.ext_tensor_in.layout,
654 db->prev_tile.offset,
655 db->common.ext_tensor_in.elem_size);
656
657 TTL_wait(1, db->event);
658
659 if (TTL_tile_empty(db->prev_tile) == false)
660 TTL_export(*TTL_to_void_tensor(TTL_to_const_tensor(&export_from)), *TTL_to_void_tensor(&export_to), db->event);
661
662 db->common.index = (db->common.index + 1) % 2; // TTL_ARRAYSIZE(db->common.int_base);
663 const TTL_layout_t curr_int_layout = TTL_create_layout(tile_current.shape.width, tile_current.shape.height);
664 const TTL_int_short_sub_tensor_t result = TTL_create_int_sub_tensor(db->common.int_base[db->common.index],
665 tile_current.shape,
666 curr_int_layout,
667 *TTL_to_const_tensor(&db->common.ext_tensor_in),
668 tile_current.offset);
669 db->prev_tile = tile_current;
670
671 return result;
672}
673
674static inline void __attribute__((overloadable)) TTL_finish_buffering(
675 TTL_import_double_const_short_tensor_buffering_t* import_double_buffering) {
676 (void)import_double_buffering;
677 // Nothing to do.
678}
679
680static inline void __attribute__((overloadable)) TTL_finish_buffering(
681 TTL_export_double_const_short_tensor_buffering_t* export_double_buffering) {
682 TTL_step_buffering(export_double_buffering, TTL_create_empty_tile());
683 TTL_step_buffering(export_double_buffering, TTL_create_empty_tile());
684}
685/*
686 * TTL_double_scheme.h
687 *
688 * Copyright (c) 2025 Mobileye
689 *
690 * Licensed under the Apache License, Version 2.0 (the License);
691 * you may not use this file except in compliance with the License.
692 * You may obtain a copy of the License at
693 *
694 * http://www.apache.org/licenses/LICENSE-2.0
695 *
696 * Unless required by applicable law or agreed to in writing, software
697 * distributed under the License is distributed on an AS IS BASIS,
698 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
699 * See the License for the specific language governing permissions and
700 * limitations under the License.
701 */
702
703// This file presumes that the following have been pre included.
704// this is not done here for path reasons.
705// #include "TTL_core.h"
706// #include "TTL_import_export.h"
707// #include TTL_IMPORT_EXPORT_INCLUDE_H
708
709/**
710 * @brief Wait for the previous import operation to complete before beginning an
711 * import of the next tile.
712 *
713 * @param db TTL_import_double_buffering_t describing the attributes of the
714 * transfer
715 * @param next_tile A description of the tile to begin importing.
716 *
717 */
718static inline TTL_int_ushort_sub_tensor_t __attribute__((overloadable)) TTL_step_buffering(
720 // For performance, compute everything possible before waiting for the
721 // previous operations to finish.
722 const TTL_layout_t int_layout = TTL_create_layout(next_tile.shape.width, next_tile.shape.height);
723 const TTL_int_ushort_sub_tensor_t import_to = TTL_create_int_sub_tensor(
724 db->common.int_base[db->common.index], next_tile.shape, int_layout, db->common.ext_tensor_in, next_tile.offset);
725 const TTL_const_ext_ushort_tensor_t import_from = TTL_create_const_ext_tensor(db->common.ext_tensor_in.base,
726 next_tile.shape,
727 db->common.ext_tensor_in.layout,
728 next_tile.offset,
729 db->common.ext_tensor_in.elem_size);
730
731 TTL_wait(1, db->event);
732
733 if (TTL_tile_empty(next_tile) == false) {
734 TTL_import_sub_tensor(import_to, import_from, db->event);
735 }
736
737 db->common.index = (db->common.index + 1) % 2; // TTL_ARRAYSIZE(db->common.int_base);
738
739 const TTL_layout_t prev_int_layout = TTL_create_layout(db->prev_tile.shape.width, db->prev_tile.shape.height);
740 const TTL_int_ushort_sub_tensor_t result = TTL_create_int_sub_tensor(db->common.int_base[db->common.index],
741 db->prev_tile.shape,
742 prev_int_layout,
743 db->common.ext_tensor_in,
744 db->prev_tile.offset);
745
746 db->prev_tile = next_tile;
747
748 return result;
749}
750
751/**
752 * @brief Wait for the previous import operation to complete before beginning an
753 * export of next tile.
754 *
755 * @param db A TTL_export_double_buffering_t describing the attributes of the
756 * transfer
757 * @param tile_current A description of the tile to begin exporting.
758 *
759 */
760static inline TTL_int_ushort_sub_tensor_t __attribute__((overloadable)) TTL_step_buffering(
762 const TTL_layout_t int_layout = TTL_create_layout(db->prev_tile.shape.width, db->prev_tile.shape.height);
763 const TTL_const_int_ushort_tensor_t export_from = TTL_create_const_int_tensor(
764 db->common.int_base[db->common.index], db->prev_tile.shape, int_layout, db->common.ext_tensor_in.elem_size);
765 const TTL_ext_ushort_tensor_t export_to = TTL_create_ext_tensor(db->common.ext_tensor_in.base,
766 db->prev_tile.shape,
767 db->common.ext_tensor_in.layout,
768 db->prev_tile.offset,
769 db->common.ext_tensor_in.elem_size);
770
771 TTL_wait(1, db->event);
772
773 if (TTL_tile_empty(db->prev_tile) == false)
774 TTL_export(*TTL_to_void_tensor(TTL_to_const_tensor(&export_from)), *TTL_to_void_tensor(&export_to), db->event);
775
776 db->common.index = (db->common.index + 1) % 2; // TTL_ARRAYSIZE(db->common.int_base);
777 const TTL_layout_t curr_int_layout = TTL_create_layout(tile_current.shape.width, tile_current.shape.height);
778 const TTL_int_ushort_sub_tensor_t result =
779 TTL_create_int_sub_tensor(db->common.int_base[db->common.index],
780 tile_current.shape,
781 curr_int_layout,
782 *TTL_to_const_tensor(&db->common.ext_tensor_in),
783 tile_current.offset);
784 db->prev_tile = tile_current;
785
786 return result;
787}
788
789static inline void __attribute__((overloadable)) TTL_finish_buffering(
790 TTL_import_double_const_ushort_tensor_buffering_t* import_double_buffering) {
791 (void)import_double_buffering;
792 // Nothing to do.
793}
794
795static inline void __attribute__((overloadable)) TTL_finish_buffering(
796 TTL_export_double_const_ushort_tensor_buffering_t* export_double_buffering) {
797 TTL_step_buffering(export_double_buffering, TTL_create_empty_tile());
798 TTL_step_buffering(export_double_buffering, TTL_create_empty_tile());
799}
800/*
801 * TTL_double_scheme.h
802 *
803 * Copyright (c) 2025 Mobileye
804 *
805 * Licensed under the Apache License, Version 2.0 (the License);
806 * you may not use this file except in compliance with the License.
807 * You may obtain a copy of the License at
808 *
809 * http://www.apache.org/licenses/LICENSE-2.0
810 *
811 * Unless required by applicable law or agreed to in writing, software
812 * distributed under the License is distributed on an AS IS BASIS,
813 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
814 * See the License for the specific language governing permissions and
815 * limitations under the License.
816 */
817
818// This file presumes that the following have been pre included.
819// this is not done here for path reasons.
820// #include "TTL_core.h"
821// #include "TTL_import_export.h"
822// #include TTL_IMPORT_EXPORT_INCLUDE_H
823
824/**
825 * @brief Wait for the previous import operation to complete before beginning an
826 * import of the next tile.
827 *
828 * @param db TTL_import_double_buffering_t describing the attributes of the
829 * transfer
830 * @param next_tile A description of the tile to begin importing.
831 *
832 */
833static inline TTL_int_long_sub_tensor_t __attribute__((overloadable)) TTL_step_buffering(
835 // For performance, compute everything possible before waiting for the
836 // previous operations to finish.
837 const TTL_layout_t int_layout = TTL_create_layout(next_tile.shape.width, next_tile.shape.height);
838 const TTL_int_long_sub_tensor_t import_to = TTL_create_int_sub_tensor(
839 db->common.int_base[db->common.index], next_tile.shape, int_layout, db->common.ext_tensor_in, next_tile.offset);
840 const TTL_const_ext_long_tensor_t import_from = TTL_create_const_ext_tensor(db->common.ext_tensor_in.base,
841 next_tile.shape,
842 db->common.ext_tensor_in.layout,
843 next_tile.offset,
844 db->common.ext_tensor_in.elem_size);
845
846 TTL_wait(1, db->event);
847
848 if (TTL_tile_empty(next_tile) == false) {
849 TTL_import_sub_tensor(import_to, import_from, db->event);
850 }
851
852 db->common.index = (db->common.index + 1) % 2; // TTL_ARRAYSIZE(db->common.int_base);
853
854 const TTL_layout_t prev_int_layout = TTL_create_layout(db->prev_tile.shape.width, db->prev_tile.shape.height);
855 const TTL_int_long_sub_tensor_t result = TTL_create_int_sub_tensor(db->common.int_base[db->common.index],
856 db->prev_tile.shape,
857 prev_int_layout,
858 db->common.ext_tensor_in,
859 db->prev_tile.offset);
860
861 db->prev_tile = next_tile;
862
863 return result;
864}
865
866/**
867 * @brief Wait for the previous import operation to complete before beginning an
868 * export of next tile.
869 *
870 * @param db A TTL_export_double_buffering_t describing the attributes of the
871 * transfer
872 * @param tile_current A description of the tile to begin exporting.
873 *
874 */
875static inline TTL_int_long_sub_tensor_t __attribute__((overloadable)) TTL_step_buffering(
877 const TTL_layout_t int_layout = TTL_create_layout(db->prev_tile.shape.width, db->prev_tile.shape.height);
878 const TTL_const_int_long_tensor_t export_from = TTL_create_const_int_tensor(
879 db->common.int_base[db->common.index], db->prev_tile.shape, int_layout, db->common.ext_tensor_in.elem_size);
880 const TTL_ext_long_tensor_t export_to = TTL_create_ext_tensor(db->common.ext_tensor_in.base,
881 db->prev_tile.shape,
882 db->common.ext_tensor_in.layout,
883 db->prev_tile.offset,
884 db->common.ext_tensor_in.elem_size);
885
886 TTL_wait(1, db->event);
887
888 if (TTL_tile_empty(db->prev_tile) == false)
889 TTL_export(*TTL_to_void_tensor(TTL_to_const_tensor(&export_from)), *TTL_to_void_tensor(&export_to), db->event);
890
891 db->common.index = (db->common.index + 1) % 2; // TTL_ARRAYSIZE(db->common.int_base);
892 const TTL_layout_t curr_int_layout = TTL_create_layout(tile_current.shape.width, tile_current.shape.height);
893 const TTL_int_long_sub_tensor_t result = TTL_create_int_sub_tensor(db->common.int_base[db->common.index],
894 tile_current.shape,
895 curr_int_layout,
896 *TTL_to_const_tensor(&db->common.ext_tensor_in),
897 tile_current.offset);
898 db->prev_tile = tile_current;
899
900 return result;
901}
902
903static inline void __attribute__((overloadable)) TTL_finish_buffering(
904 TTL_import_double_const_long_tensor_buffering_t* import_double_buffering) {
905 (void)import_double_buffering;
906 // Nothing to do.
907}
908
909static inline void __attribute__((overloadable)) TTL_finish_buffering(
910 TTL_export_double_const_long_tensor_buffering_t* export_double_buffering) {
911 TTL_step_buffering(export_double_buffering, TTL_create_empty_tile());
912 TTL_step_buffering(export_double_buffering, TTL_create_empty_tile());
913}
914/*
915 * TTL_double_scheme.h
916 *
917 * Copyright (c) 2025 Mobileye
918 *
919 * Licensed under the Apache License, Version 2.0 (the License);
920 * you may not use this file except in compliance with the License.
921 * You may obtain a copy of the License at
922 *
923 * http://www.apache.org/licenses/LICENSE-2.0
924 *
925 * Unless required by applicable law or agreed to in writing, software
926 * distributed under the License is distributed on an AS IS BASIS,
927 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
928 * See the License for the specific language governing permissions and
929 * limitations under the License.
930 */
931
932// This file presumes that the following have been pre included.
933// this is not done here for path reasons.
934// #include "TTL_core.h"
935// #include "TTL_import_export.h"
936// #include TTL_IMPORT_EXPORT_INCLUDE_H
937
938/**
939 * @brief Wait for the previous import operation to complete before beginning an
940 * import of the next tile.
941 *
942 * @param db TTL_import_double_buffering_t describing the attributes of the
943 * transfer
944 * @param next_tile A description of the tile to begin importing.
945 *
946 */
947static inline TTL_int_ulong_sub_tensor_t __attribute__((overloadable)) TTL_step_buffering(
949 // For performance, compute everything possible before waiting for the
950 // previous operations to finish.
951 const TTL_layout_t int_layout = TTL_create_layout(next_tile.shape.width, next_tile.shape.height);
952 const TTL_int_ulong_sub_tensor_t import_to = TTL_create_int_sub_tensor(
953 db->common.int_base[db->common.index], next_tile.shape, int_layout, db->common.ext_tensor_in, next_tile.offset);
954 const TTL_const_ext_ulong_tensor_t import_from = TTL_create_const_ext_tensor(db->common.ext_tensor_in.base,
955 next_tile.shape,
956 db->common.ext_tensor_in.layout,
957 next_tile.offset,
958 db->common.ext_tensor_in.elem_size);
959
960 TTL_wait(1, db->event);
961
962 if (TTL_tile_empty(next_tile) == false) {
963 TTL_import_sub_tensor(import_to, import_from, db->event);
964 }
965
966 db->common.index = (db->common.index + 1) % 2; // TTL_ARRAYSIZE(db->common.int_base);
967
968 const TTL_layout_t prev_int_layout = TTL_create_layout(db->prev_tile.shape.width, db->prev_tile.shape.height);
969 const TTL_int_ulong_sub_tensor_t result = TTL_create_int_sub_tensor(db->common.int_base[db->common.index],
970 db->prev_tile.shape,
971 prev_int_layout,
972 db->common.ext_tensor_in,
973 db->prev_tile.offset);
974
975 db->prev_tile = next_tile;
976
977 return result;
978}
979
980/**
981 * @brief Wait for the previous import operation to complete before beginning an
982 * export of next tile.
983 *
984 * @param db A TTL_export_double_buffering_t describing the attributes of the
985 * transfer
986 * @param tile_current A description of the tile to begin exporting.
987 *
988 */
989static inline TTL_int_ulong_sub_tensor_t __attribute__((overloadable)) TTL_step_buffering(
991 const TTL_layout_t int_layout = TTL_create_layout(db->prev_tile.shape.width, db->prev_tile.shape.height);
992 const TTL_const_int_ulong_tensor_t export_from = TTL_create_const_int_tensor(
993 db->common.int_base[db->common.index], db->prev_tile.shape, int_layout, db->common.ext_tensor_in.elem_size);
994 const TTL_ext_ulong_tensor_t export_to = TTL_create_ext_tensor(db->common.ext_tensor_in.base,
995 db->prev_tile.shape,
996 db->common.ext_tensor_in.layout,
997 db->prev_tile.offset,
998 db->common.ext_tensor_in.elem_size);
999
1000 TTL_wait(1, db->event);
1001
1002 if (TTL_tile_empty(db->prev_tile) == false)
1003 TTL_export(*TTL_to_void_tensor(TTL_to_const_tensor(&export_from)), *TTL_to_void_tensor(&export_to), db->event);
1004
1005 db->common.index = (db->common.index + 1) % 2; // TTL_ARRAYSIZE(db->common.int_base);
1006 const TTL_layout_t curr_int_layout = TTL_create_layout(tile_current.shape.width, tile_current.shape.height);
1007 const TTL_int_ulong_sub_tensor_t result = TTL_create_int_sub_tensor(db->common.int_base[db->common.index],
1008 tile_current.shape,
1009 curr_int_layout,
1010 *TTL_to_const_tensor(&db->common.ext_tensor_in),
1011 tile_current.offset);
1012 db->prev_tile = tile_current;
1013
1014 return result;
1015}
1016
1017static inline void __attribute__((overloadable)) TTL_finish_buffering(
1018 TTL_import_double_const_ulong_tensor_buffering_t* import_double_buffering) {
1019 (void)import_double_buffering;
1020 // Nothing to do.
1021}
1022
1023static inline void __attribute__((overloadable)) TTL_finish_buffering(
1024 TTL_export_double_const_ulong_tensor_buffering_t* export_double_buffering) {
1025 TTL_step_buffering(export_double_buffering, TTL_create_empty_tile());
1026 TTL_step_buffering(export_double_buffering, TTL_create_empty_tile());
1027}
static void TTL_wait(const int num_events, TTL_event_t *const events)
void TTL_export(const TTL_tensor< TENSORTYPE > &internal_tensor, const TTL_tensor< TENSORTYPE > &external_tensor, TTL_event *event)
Export the external tensor to the internal tensor returning when complete.
void TTL_import_sub_tensor(const TTL_sub_tensor< TENSORTYPE > &internal_sub_tensor, const TTL_tensor< TENSORTYPE > const_external_tensor, TTL_event *event)
Implementation of TTL_import_sub_tensor.
static void TTL_finish_buffering(TTL_import_double_const_void_tensor_buffering_t *import_double_buffering)
static TTL_int_void_sub_tensor_t TTL_step_buffering(TTL_import_double_const_void_tensor_buffering_t *const db, const TTL_tile_t next_tile)
Wait for the previous import operation to complete before beginning an import of the next tile.
Data required to perform double buffer pipelining.
TTL_event_t * event
A pointer to the event that is used to track the progress of the transfer.
TTL_tile_t prev_tile
Store of the previous imported/exported tile *‍/.
struct TTL_export_double_const_char_tensor_buffering_t::@160154101326270036264221032306317063372216237232 common
The information that is common to all pipeline schemes.
Data required to perform double buffer pipelining.
TTL_tile_t prev_tile
Store of the previous imported/exported tile *‍/.
TTL_event_t * event
A pointer to the event that is used to track the progress of the transfer.
struct TTL_export_double_const_int_tensor_buffering_t::@071262151353075217322340250025222337274100012130 common
The information that is common to all pipeline schemes.
Data required to perform double buffer pipelining.
struct TTL_export_double_const_long_tensor_buffering_t::@065143001252313033341066336064146017302051066367 common
The information that is common to all pipeline schemes.
TTL_tile_t prev_tile
Store of the previous imported/exported tile *‍/.
TTL_event_t * event
A pointer to the event that is used to track the progress of the transfer.
Data required to perform double buffer pipelining.
TTL_event_t * event
A pointer to the event that is used to track the progress of the transfer.
struct TTL_export_double_const_short_tensor_buffering_t::@211272151362336024106343152102051052133017112125 common
The information that is common to all pipeline schemes.
TTL_tile_t prev_tile
Store of the previous imported/exported tile *‍/.
Data required to perform double buffer pipelining.
struct TTL_export_double_const_uchar_tensor_buffering_t::@307077303372362006377174344104374311250225213161 common
The information that is common to all pipeline schemes.
TTL_tile_t prev_tile
Store of the previous imported/exported tile *‍/.
TTL_event_t * event
A pointer to the event that is used to track the progress of the transfer.
Data required to perform double buffer pipelining.
struct TTL_export_double_const_uint_tensor_buffering_t::@043155102335103276112154220062127161010106272205 common
The information that is common to all pipeline schemes.
TTL_tile_t prev_tile
Store of the previous imported/exported tile *‍/.
TTL_event_t * event
A pointer to the event that is used to track the progress of the transfer.
Data required to perform double buffer pipelining.
TTL_event_t * event
A pointer to the event that is used to track the progress of the transfer.
struct TTL_export_double_const_ulong_tensor_buffering_t::@352117156101072044275050165374275111222242155126 common
The information that is common to all pipeline schemes.
TTL_tile_t prev_tile
Store of the previous imported/exported tile *‍/.
Data required to perform double buffer pipelining.
struct TTL_export_double_const_ushort_tensor_buffering_t::@141006375232351231037231023230011023170303300356 common
The information that is common to all pipeline schemes.
TTL_tile_t prev_tile
Store of the previous imported/exported tile *‍/.
TTL_event_t * event
A pointer to the event that is used to track the progress of the transfer.
Data required to perform double buffer pipelining.
TTL_event_t * event
A pointer to the event that is used to track the progress of the transfer.
TTL_tile_t prev_tile
Store of the previous imported/exported tile *‍/.
struct TTL_export_double_const_void_tensor_buffering_t::@241206111125103313337031251346125366162340321171 common
The information that is common to all pipeline schemes.
const and non-const tensors in the appropriate address space
const and non-const tensors in the appropriate address space
const and non-const tensors in the appropriate address space
const and non-const tensors in the appropriate address space
const and non-const tensors in the appropriate address space
const and non-const tensors in the appropriate address space
const and non-const tensors in the appropriate address space
const and non-const tensors in the appropriate address space
const and non-const tensors in the appropriate address space
Data required to perform double buffer pipelining.
TTL_event_t * event
A pointer to the event that is used to track the progress of the transfer.
TTL_tile_t prev_tile
Store of the previous imported/exported tile *‍/.
struct TTL_import_double_const_char_tensor_buffering_t::@323253337265031262301151062362275112104023201353 common
The information that is common to all pipeline schemes.
Data required to perform double buffer pipelining.
TTL_tile_t prev_tile
Store of the previous imported/exported tile *‍/.
struct TTL_import_double_const_int_tensor_buffering_t::@267123132304000160270113322217360363163015045157 common
The information that is common to all pipeline schemes.
TTL_event_t * event
A pointer to the event that is used to track the progress of the transfer.
Data required to perform double buffer pipelining.
TTL_tile_t prev_tile
Store of the previous imported/exported tile *‍/.
TTL_event_t * event
A pointer to the event that is used to track the progress of the transfer.
struct TTL_import_double_const_long_tensor_buffering_t::@211023162361135005012012023155355375233264221364 common
The information that is common to all pipeline schemes.
Data required to perform double buffer pipelining.
struct TTL_import_double_const_short_tensor_buffering_t::@354364154166001277036346273107352314050307371274 common
The information that is common to all pipeline schemes.
TTL_event_t * event
A pointer to the event that is used to track the progress of the transfer.
TTL_tile_t prev_tile
Store of the previous imported/exported tile *‍/.
Data required to perform double buffer pipelining.
TTL_tile_t prev_tile
Store of the previous imported/exported tile *‍/.
TTL_event_t * event
A pointer to the event that is used to track the progress of the transfer.
struct TTL_import_double_const_uchar_tensor_buffering_t::@054267161227024021070176267343354255152077165343 common
The information that is common to all pipeline schemes.
Data required to perform double buffer pipelining.
struct TTL_import_double_const_uint_tensor_buffering_t::@324156252367372320246261116313130124374132375356 common
The information that is common to all pipeline schemes.
TTL_tile_t prev_tile
Store of the previous imported/exported tile *‍/.
TTL_event_t * event
A pointer to the event that is used to track the progress of the transfer.
Data required to perform double buffer pipelining.
TTL_tile_t prev_tile
Store of the previous imported/exported tile *‍/.
struct TTL_import_double_const_ulong_tensor_buffering_t::@224045012304212364152210234224100032245225152127 common
The information that is common to all pipeline schemes.
TTL_event_t * event
A pointer to the event that is used to track the progress of the transfer.
Data required to perform double buffer pipelining.
TTL_tile_t prev_tile
Store of the previous imported/exported tile *‍/.
TTL_event_t * event
A pointer to the event that is used to track the progress of the transfer.
struct TTL_import_double_const_ushort_tensor_buffering_t::@133025167037064107110164363032345357011036003066 common
The information that is common to all pipeline schemes.
Data required to perform double buffer pipelining.
struct TTL_import_double_const_void_tensor_buffering_t::@203300061232242366253374042065104065001166324352 common
The information that is common to all pipeline schemes.
TTL_tile_t prev_tile
Store of the previous imported/exported tile *‍/.
TTL_event_t * event
A pointer to the event that is used to track the progress of the transfer.
const and non-const sub tensors in the appropriate address space
const and non-const sub tensors in the appropriate address space
const and non-const sub tensors in the appropriate address space
const and non-const sub tensors in the appropriate address space
const and non-const sub tensors in the appropriate address space
const and non-const sub tensors in the appropriate address space
const and non-const sub tensors in the appropriate address space
const and non-const sub tensors in the appropriate address space
const and non-const sub tensors in the appropriate address space
Description of a Tensor layout in memory.
TTL_dim_t width
Number of elements along dimension x.
TTL_dim_t height
Number of rows along dimension y.
TTL_offset_t offset
TTL_shape_t shape