Skip to content

Commit

Permalink
Bug fix: kbmira failed to load dense weights.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tetsuo Kiso committed Jun 9, 2012
1 parent 48faedb commit 2599ef6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mert/kbmira.cpp
Expand Up @@ -129,13 +129,14 @@ int main(int argc, char** argv)
vector<parameter_t> initParams;
if(!denseInitFile.empty()) {
ifstream opt(denseInitFile.c_str());
string buffer; istringstream strstrm(buffer);
string buffer;
if (opt.fail()) {
cerr << "could not open dense initfile: " << denseInitFile << endl;
exit(3);
}
parameter_t val;
getline(opt,buffer);
istringstream strstrm(buffer);
while(strstrm >> val) initParams.push_back(val);
opt.close();
}
Expand Down

0 comments on commit 2599ef6

Please sign in to comment.