Fix the bug during loadCheckPointFile. It try to putMarker in the old file.

This commit is contained in:
yzhang87 2015-01-21 23:03:28 -05:00
Родитель 032a0e8ede
Коммит 8b8f20138b
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -1314,9 +1314,9 @@ protected:
File fstream(checkPointFileName, FileOptions::fileOptionsBinary | FileOptions::fileOptionsRead);
fstream.GetMarker(FileMarker::fileMarkerBeginSection, L"BCKP");
fstream.PutMarker(FileMarker::fileMarkerBeginSection, L"BLearnRate");
fstream.GetMarker(FileMarker::fileMarkerBeginSection, L"BLearnRate");
fstream >> totalSamplesSeen >> learnRatePerSample >> prevCriterion;
fstream.PutMarker(FileMarker::fileMarkerEndSection, L"ELearnRate");
fstream.GetMarker(FileMarker::fileMarkerEndSection, L"ELearnRate");
fstream.GetMarker(FileMarker::fileMarkerBeginSection, L"BGradient");