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

Function daliTensorAttachBuffer

dali/c_api_2/data_objects.cc:124–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124daliResult_t daliTensorAttachBuffer(
125 daliTensor_h tensor,
126 int ndim,
127 const int64_t *shape,
128 daliDataType_t dtype,
129 const char *layout,
130 void *data,
131 daliDeleter_t deleter) {
132 DALI_PROLOG();
133 auto *ptr = ToPointer(tensor);
134 ptr->AttachBuffer(ndim, shape, dtype, layout, data, deleter);
135 DALI_EPILOG();
136}
137
138daliResult_t daliTensorResize(
139 daliTensor_h tensor,

Callers

nothing calls this directly

Calls 2

ToPointerFunction · 0.70
AttachBufferMethod · 0.45

Tested by

no test coverage detected