I use X_train_torch = torch.from_numpy(X_train).long() and it’s not working.
I tried to use also .type(torch.LongTensor) but it doesn’t work anyway.
RuntimeError: Expected object of type torch.LongTensor but found type torch.FloatTensor for argument #2 ‘mat2’
What’s the problem?