Skip to content

Commit

Permalink
Update Infer.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeevesh8 authored May 12, 2020
1 parent aed40b3 commit c55316c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Infer.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,7 @@ def predict_next(t, date_lis, test_dataset) :
from Models import LSTM
t = LSTM.lstm(seq_len = args.seq_len, ini_len=args.ini_len, final_len=model_final_len).to(device)

if path.exists(args.param_file) :
t.load_state_dict(torch.load(args.param_file))
t.load_state_dict(torch.load(args.param_file))

t = t.double()

Expand Down

0 comments on commit c55316c

Please sign in to comment.