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

Function MakeDLTensor

dali/pipeline/data/dltensor.h:220–225  ·  view source on GitHub ↗

Constructs a DLManagedTensor WITHOUT data ownership. */

Source from the content-addressed store, hash-verified

218
219/** Constructs a DLManagedTensor WITHOUT data ownership. */
220inline DLMTensorPtr MakeDLTensor(void *data, DALIDataType type,
221 bool device, bool pinned, int device_id,
222 const TensorShape<> &shape,
223 const TensorShape<> &strides = {}) {
224 return ToDLMTensor(MakeDLTensorResource(data, type, device, pinned, device_id, shape, strides));
225}
226
227/** Constructs a DLTensorResource sharing the data ownership. */
228inline auto MakeDLTensorResource(std::shared_ptr<void> data, DALIDataType type,

Callers 2

TESTFunction · 0.85
AsDlTensorFunction · 0.85

Calls 2

MakeDLTensorResourceFunction · 0.85
ToDLMTensorFunction · 0.70

Tested by 2

TESTFunction · 0.68
AsDlTensorFunction · 0.68