Skip to content

Commit

Permalink
depsrl fix ios::binary
Browse files Browse the repository at this point in the history
  • Loading branch information
liu946 committed Dec 8, 2017
1 parent df962e9 commit e31e337
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/srl/DepSRL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ int DepSRL::LoadResource(const string &modelFile)
params.mem_descriptor = "2000";
dynet::initialize(params);

ifstream in(modelFile);
ifstream in(modelFile, ios::binary);
if (!in) { return -1;}
boost::archive::binary_iarchive ia(in);
ia >> piConfig;
Expand Down

0 comments on commit e31e337

Please sign in to comment.