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

Method GetResultVec

library/cpp/par/par_util.h:160–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158 }
159 template <class T>
160 void GetResultVec(TVector<T>* res) {
161 CHROMIUM_TRACE_FUNCTION();
162 TVector<TVector<char>> buf;
163 GetRawResult(&buf);
164 int resultCount = buf.ysize();
165 res->resize(resultCount);
166 for (int i = 0; i < resultCount; ++i)
167 SerializeFromMem(&buf[i], (*res)[i]);
168 }
169 template <class T>
170 void GetRemoteMapResults(TVector<T>* res) {
171 CHROMIUM_TRACE_FUNCTION();

Callers 3

RunMapFunction · 0.80
CalcDistributedFunction · 0.80
ApplyMapperFunction · 0.80

Calls 3

SerializeFromMemFunction · 0.85
ysizeMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected