The error message points to the model parameters and expects them to be LongTensors, since your input is already a LongTensor. Transform the inputs toFloatTensors and it should work:
X_train_tensor = torch.from_numpy(X_train).float()