Skip to content

Commit a2f5496

Browse files
authored
Write binary header. (#5532)
1 parent 1b1969f commit a2f5496

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/learner.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,8 @@ class LearnerIO : public LearnerConfiguration {
777777
}
778778
extra_attr.emplace_back("metrics", os.str());
779779
}
780-
780+
std::string header {"binf"};
781+
fo->Write(header.data(), 4);
781782
fo->Write(&mparam, sizeof(LearnerModelParamLegacy));
782783
fo->Write(tparam_.objective);
783784
fo->Write(tparam_.booster);

0 commit comments

Comments
 (0)