Function nvcv::TensorWrapData
Function Documentation
-
inline Tensor nvcv::TensorWrapData(const TensorData &data, TensorDataCleanupCallback &&cleanup = {})
Wraps tensor data into a tensor object.
- Parameters:
data – Tensor data to be wrapped.
cleanup – Cleanup callback to manage the tensor data’s lifecycle.
- Returns:
A tensor object wrapping the given data.