You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, When I run LSTNet 'python main.py --gpu 0 --horizon 24 --data data/electricity.txt --save save/elec.pt --output_fun Linear' return error as follows.
Traceback (most recent call last):
File "main.py", line 150, in
val_loss, val_rae, val_corr = evaluate(Data, Data.valid[0], Data.valid[1], model, evaluateL2, evaluateL1, args.batch_size);
File "main.py", line 36, in evaluate
rae = (total_loss_l1/n_samples)/data.rae
RuntimeError: Expected object of type torch.cuda.FloatTensor but found type torch.FloatTensor for argument #2 'other'
Have you ever had a similar error? How to solve this problem?
The text was updated successfully, but these errors were encountered:
Hello, When I run LSTNet 'python main.py --gpu 0 --horizon 24 --data data/electricity.txt --save save/elec.pt --output_fun Linear' return error as follows.
Traceback (most recent call last):
File "main.py", line 150, in
val_loss, val_rae, val_corr = evaluate(Data, Data.valid[0], Data.valid[1], model, evaluateL2, evaluateL1, args.batch_size);
File "main.py", line 36, in evaluate
rae = (total_loss_l1/n_samples)/data.rae
RuntimeError: Expected object of type torch.cuda.FloatTensor but found type torch.FloatTensor for argument #2 'other'
Have you ever had a similar error? How to solve this problem?
The text was updated successfully, but these errors were encountered: