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

Method Load

catboost/libs/model/ctr_value_table.cpp:50–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50void TCtrValueTable::Load(IInputStream* s) {
51 const ui32 size = LoadSize(s);
52 TArrayHolder<ui8> arrayHolder = TArrayHolder<ui8>(new ui8[size]);
53 s->LoadOrFail(arrayHolder.Get(), size);
54 LoadSolid(arrayHolder.Get(), size);
55}
56
57void TCtrValueTable::LoadSolid(void* buf, size_t length) {
58 Y_UNUSED(length); // TODO(kirillovs): add length validation

Callers

nothing calls this directly

Calls 3

LoadSizeFunction · 0.85
LoadOrFailMethod · 0.80
GetMethod · 0.45

Tested by

no test coverage detected