| 463 | } |
| 464 | |
| 465 | daliResult_t daliTensorListViewAsTensor( |
| 466 | daliTensorList_h tensor_list, |
| 467 | daliTensor_h *out_tensor) { |
| 468 | DALI_PROLOG(); |
| 469 | auto *ptr = ToPointer(tensor_list); |
| 470 | CHECK_OUTPUT(out_tensor); |
| 471 | auto t = ptr->ViewAsTensor(); |
| 472 | *out_tensor = t.release(); // no throwing allowed after this line |
| 473 | DALI_EPILOG(); |
| 474 | } |
| 475 | |
| 476 | daliResult_t daliTensorListCopyOut( |
| 477 | daliTensorList_h tensor_list, |