Fix the bug during loadCheckPointFile. It try to putMarker in the old file.
This commit is contained in:
Родитель
032a0e8ede
Коммит
8b8f20138b
|
@ -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");
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче