zetyquickly:

Here is an answer, that might work for you.
You should create Tensor from NumPy array and then transfer it to device
Converting numpy array to tensor on GPU


Hi, I create a tensor from numpy array. But the tensor to cuda device don’t work.