You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RuntimeError: Input type (torch.FloatTensor) and weight type (torch.cuda.FloatTensor) should be the same or input should be a MKLDNN tensor and weight is a dense tensor
Hi @arikhalperin, Did you manage to solve this issue? I couldn't reproduce your error on my machine. Maybe this issue is related to your environment. Please send me more info about the version of your Cuda, PyTorch, etc. so that may I can help you to figure out what's going on :)
Another good option is to try to reproduce this issue on a Colab and send me the link
RuntimeError: Input type (torch.FloatTensor) and weight type (torch.cuda.FloatTensor) should be the same or input should be a MKLDNN tensor and weight is a dense tensor
Which means that the data did not move to GPU.
My code:
torch.device("cuda")
Managing to work around this by adding a move to cuda of my dataset inside huggingsound code. If I can make it work I'll create a PR
The text was updated successfully, but these errors were encountered: