| 265 | ////////////////////////////////////////////////////////////////////////////// |
| 266 | |
| 267 | daliResult_t daliTensorListCreate(daliTensorList_h *out, daliBufferPlacement_t placement) { |
| 268 | DALI_PROLOG(); |
| 269 | CHECK_OUTPUT(out); |
| 270 | auto tl = dali::c_api::ITensorList::Create(placement); |
| 271 | *out = tl.release(); // no throwing allowed after this line! |
| 272 | DALI_EPILOG(); |
| 273 | } |
| 274 | |
| 275 | daliResult_t daliTensorListIncRef(daliTensorList_h tl, int *new_ref) { |
| 276 | DALI_PROLOG(); |