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

Method GetRemoteMapResults

library/cpp/par/par_util.h:170–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168 }
169 template <class T>
170 void GetRemoteMapResults(TVector<T>* res) {
171 CHROMIUM_TRACE_FUNCTION();
172 TVector<TVector<char>> groups;
173 GetRawResult(&groups);
174 for (int g = 0; g < groups.ysize(); ++g) {
175 TVector<TVector<char>> buf;
176 SerializeFromMem(&groups[g], buf);
177 int startIdx = res->ysize();
178 res->resize(startIdx + buf.ysize());
179 for (int i = 0; i < buf.ysize(); ++i)
180 SerializeFromMem(&buf[i], (*res)[startIdx + i]);
181 }
182 }
183 };
184
185 template <class TInput, class TOutput>

Callers 1

Calls 3

SerializeFromMemFunction · 0.85
ysizeMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected