Problem with get_minirocket_features while using CUDA in training #153
Labels
bug
Something isn't working
documentation
Improvements or additions to documentation
good first issue
Good for newcomers
Hi!
So this code is working:
but I cannot do:
X_feat = get_minirocket_features(np.asarray(X_train), mrf, chunksize=1024)
I get the following error:
TypeError: can't convert cuda:0 device type tensor to numpy. Use Tensor.cpu() to copy the tensor to host memory first.
While when I put everything on the CPU :
X_feat = get_minirocket_features(np.asarray(X_train), mrf, chunksize=1024)
It works perfectly.
So the issue is that when the model is train using the GPU (CUDA) it work, but I cannot use the get_minirocket_features function.
While when the model is train using the CPU, I can use the get_minirocket_features but the GPU acceleration is lost.
Thanks for your help.
Kind regards,
Sébastien de Blois
The text was updated successfully, but these errors were encountered: