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

Method AssignData

library/cpp/par/par_context.cpp:252–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250 }
251
252 void TContextDistributor::AssignData(TCtxDataPart* part, TFullCtxInfo& dst, const IObjectBase* data) {
253 CHROMIUM_TRACE_FUNCTION();
254 part->Info = new TContextDataHolder;
255 part->Info->Computer2HostId = dst.Computer2HostId;
256 Y_ASSERT(data == nullptr || part->Info->Data != data); // otherwise stale execution can get wrong context data
257 part->Info->Data = const_cast<IObjectBase*>(data);
258 SerializeToMem(&part->BinData, *part->Info);
259 }
260
261 void TContextDistributor::SetContextData(int envId, int hostId, const IObjectBase* data, EKeepDataFlags keepContextRawData) {
262 CHROMIUM_TRACE_FUNCTION();

Callers

nothing calls this directly

Calls 1

SerializeToMemFunction · 0.85

Tested by

no test coverage detected