MCPcopy Create free account
hub / github.com/dmlc/xgboost / WarnOldSerialization

Function WarnOldSerialization

src/common/error_msg.h:76–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76inline void WarnOldSerialization() {
77 // Display it once is enough. Otherwise this can be really verbose in distributed
78 // environments.
79 static thread_local bool logged{false};
80 if (logged) {
81 return;
82 }
83 LOG(WARNING) << OldSerialization();
84 logged = true;
85}
86
87[[nodiscard]] std::string InvalidModel(StringView fname);
88

Callers 3

LoadConfigMethod · 0.85
LoadMethod · 0.85
LoadConfigMethod · 0.85

Calls 1

OldSerializationFunction · 0.85

Tested by

no test coverage detected