Sometimes when trying to perform testing, the following error occurred: "model version is different: 0 vs 100".
This error was first generated in the file feature_index.cpp, in the method EncoderFeatureIndex::save when saving the model file. At a certain point, bofs.write(.) would erase the buffer, and the beginning of the model file would not be written. In order to work this around, doing bofs.flush() seemed to solve the problem.
Log in to post a comment.