I am facing a similar issue, but I’m not even using LongTensor yet I get :



 pp18:

log_softmax_forward is not implemented for type torch.LongTensor


Code:
hidden = tuple([each.data for each in hidden])
output, hidden = rnn(inp, hidden)

output = output.cpu()
output = np.argmax(output.detach().numpy(), axis=1)
output = torch.from_numpy(output)

loss = criterion(output.squeeze(), target.float())