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

Function daliTensorDecRef

dali/c_api_2/data_objects.cc:106–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106daliResult_t daliTensorDecRef(daliTensor_h t, int *new_ref) {
107 DALI_PROLOG();
108 auto *ptr = ToPointer(t);
109 int r = ptr->DecRef();
110 if (new_ref)
111 *new_ref = r;
112 DALI_EPILOG();
113}
114
115daliResult_t daliTensorRefCount(daliTensor_h t, int *ref) {
116 DALI_PROLOG();

Callers 1

TESTFunction · 0.85

Calls 2

DecRefMethod · 0.80
ToPointerFunction · 0.70

Tested by 1

TESTFunction · 0.68