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

Method MergeAsync

library/cpp/par/par_util.h:55–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53 dcNotify->DistrCmdComplete(reqId, &buf);
54 }
55 void MergeAsync(TVector<TVector<char>>* src, IDCResultNotify* dcNotify, int reqId) const override {
56 CHROMIUM_TRACE_FUNCTION();
57 TVector<TOutputArg> srcData;
58 int count = src->ysize();
59 srcData.resize(count);
60 for (int i = 0; i < count; ++i)
61 SerializeFromMem(&(*src)[i], srcData[i]);
62 TOutputArg outp;
63 DoReduce(&srcData, &outp);
64 TVector<char> buf;
65 SerializeToMem(&buf, outp);
66 dcNotify->DistrCmdComplete(reqId, &buf);
67 }
68
69 public:
70 using TInput = TInputArg;

Callers

nothing calls this directly

Calls 5

SerializeFromMemFunction · 0.85
SerializeToMemFunction · 0.85
ysizeMethod · 0.45
resizeMethod · 0.45
DistrCmdCompleteMethod · 0.45

Tested by

no test coverage detected