MCPcopy Create free account
hub / github.com/catboost/catboost / Load

Method Load

catboost/private/libs/text_features/feature_calcer.cpp:15–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13 }
14
15 TTextFeatureCalcerPtr TTextCalcerSerializer::Load(IInputStream* stream) {
16 ReadMagic(CalcerMagic.data(), MagicSize, Alignment, stream);
17
18 static_assert(sizeof(EFeatureCalcerType) == sizeof(ui32));
19 EFeatureCalcerType calcerType;
20 ::Load(stream, calcerType);
21
22 TTextFeatureCalcer* calcer = TTextFeatureCalcerFactory::Construct(calcerType);
23 ::Load(stream, *calcer);
24
25 return calcer;
26 }
27
28 void TTextFeatureCalcer::Save(IOutputStream* stream) const {
29 flatbuffers::FlatBufferBuilder builder;

Callers 1

Y_UNIT_TESTFunction · 0.45

Calls 9

ReadMagicFunction · 0.85
GuidFromFbsFunction · 0.85
LoadFunction · 0.50
ConstructClass · 0.50
dataMethod · 0.45
GetMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
IdMethod · 0.45

Tested by

no test coverage detected