Skip to content

Commit

Permalink
open without 'rb' caused Python 3 to open this in text mode and fail (p…
Browse files Browse the repository at this point in the history
  • Loading branch information
dnouri authored and soumith committed Apr 7, 2017
1 parent 046abef commit 50afe29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion time_sequence_prediction/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def forward(self, input, future = 0):
np.random.seed(0)
torch.manual_seed(0)
# load data and make training set
data = torch.load(open('traindata.pt'))
data = torch.load('traindata.pt')
input = Variable(torch.from_numpy(data[3:, :-1]), requires_grad=False)
target = Variable(torch.from_numpy(data[3:, 1:]), requires_grad=False)
# build the model
Expand Down

0 comments on commit 50afe29

Please sign in to comment.