MCPcopy Create free account
hub / github.com/NVIDIA/DALI / daliTensorCreate

Function daliTensorCreate

dali/c_api_2/data_objects.cc:89–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87//////////////////////////////////////////////////////////////////////////////
88
89daliResult_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
97daliResult_t daliTensorIncRef(daliTensor_h t, int *new_ref) {
98 DALI_PROLOG();

Callers 2

TESTFunction · 0.85
CreateTensorFunction · 0.85

Calls 2

CreateFunction · 0.85
releaseMethod · 0.45

Tested by 2

TESTFunction · 0.68
CreateTensorFunction · 0.68