I’m trying to train a classifier via PyTorch. However, I am experiencing problems with training when I feed the model with training data.
I get this error on y_pred = model(X_trainTensor):
RuntimeError: Expected object of scalar type Float but got scalar type Double for argument #4 ‘mat1’
Here are key parts of my code: