| 87 | ////////////////////////////////////////////////////////////////////////////// |
| 88 | |
| 89 | daliResult_t daliTensorCreate(daliTensor_h *out, daliBufferPlacement_t placement) { |
| 90 | DALI_PROLOG(); |
| 91 | CHECK_OUTPUT(out); |
| 92 | auto t = dali::c_api::ITensor::Create(placement); |
| 93 | *out = t.release(); // no throwing allowed after this line! |
| 94 | DALI_EPILOG(); |
| 95 | } |
| 96 | |
| 97 | daliResult_t daliTensorIncRef(daliTensor_h t, int *new_ref) { |
| 98 | DALI_PROLOG(); |