Function nvcv::TensorWrapData

Function Documentation

inline Tensor nvcv::TensorWrapData(const TensorData &data, TensorDataCleanupCallback &&cleanup = {})

Wraps tensor data into a tensor object.

Parameters:
  • dataTensor data to be wrapped.

  • cleanup – Cleanup callback to manage the tensor data’s lifecycle.

Returns:

A tensor object wrapping the given data.