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

Function daliTensorResize

dali/c_api_2/data_objects.cc:138–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138daliResult_t daliTensorResize(
139 daliTensor_h tensor,
140 int ndim,
141 const int64_t *shape,
142 daliDataType_t dtype,
143 const char *layout) {
144 DALI_PROLOG();
145 auto *ptr = ToPointer(tensor);
146 ptr->Resize(ndim, shape, dtype, layout);
147 DALI_EPILOG();
148}
149
150daliResult_t daliTensorGetBufferPlacement(
151 daliTensor_h tensor,

Callers 1

TestTensorResizeFunction · 0.85

Calls 2

ToPointerFunction · 0.70
ResizeMethod · 0.45

Tested by 1

TestTensorResizeFunction · 0.68