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

Function daliTensorGetShape

dali/c_api_2/data_objects.cc:211–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209}
210
211daliResult_t daliTensorGetShape(
212 daliTensor_h tensor,
213 int *out_ndim,
214 const int64_t **out_shape) {
215 DALI_PROLOG();
216 auto *ptr = ToPointer(tensor);
217 auto &shape = ptr->GetShape();
218 if (out_ndim)
219 *out_ndim = shape.sample_dim();
220 if (out_shape)
221 *out_shape = shape.data();
222 DALI_EPILOG();
223}
224
225daliResult_t daliTensorGetByteSize(
226 daliTensor_h tensor,

Callers 1

TESTFunction · 0.85

Calls 4

ToPointerFunction · 0.70
GetShapeMethod · 0.45
sample_dimMethod · 0.45
dataMethod · 0.45

Tested by 1

TESTFunction · 0.68