[QUESTION] How to Convert a CV-CUDA Tensor to numpy array and pycuda tensor without torch.as_tensor
#143
Labels
question
Further information is requested
While using CV-CUDA for GPU acceleration, a notable limitation is the absence of a direct conversion method from CV-CUDA tensor to PyTorch Tensor or PyCUDA GPUArray. While
cvcuda.as_tensor
facilitates the conversion from PyTorch Tensor or PyCUDA GPUArray to CV-CUDA tensor, a direct reverse conversion is not readily available. Additionally, converting to a NumPy array typically involves usingtorch.as_tensor
followed by.cpu().numpy()
.While studying the CV-CUDA source code it seems that the primary conversion method involves using
torch.as_tensor
. Is there an alternative conversion approach that doesn't rely ontorch.as_tensor
and enables direct conversion of a CV-CUDA tensor to PyCUDA GPUArray and NumPy array?The text was updated successfully, but these errors were encountered: