The solution is to convert the data used:
original:
prediction, h_state = rnn(x, h_state)
Plus type conversion:
x = torch.tensor(x, dtype=torch.float32)
prediction, h_state = rnn(x, h_state)
The solution is to convert the data used:
original:
prediction, h_state = rnn(x, h_state)
Plus type conversion:
x = torch.tensor(x, dtype=torch.float32)
prediction, h_state = rnn(x, h_state)