MCPcopy Create free account
hub / github.com/alibaba/zvec / feed

Method feed

src/ailego/algorithm/binary_quantizer.cc:27–32  ·  view source on GitHub ↗

Feed the training data

Source from the content-addressed store, hash-verified

25
26//! Feed the training data
27bool BinaryQuantizer::feed(const float *vec, size_t dim) {
28 for (size_t i = 0; i < dim; ++i) {
29 data_.emplace_back(vec[i]);
30 }
31 return true;
32}
33
34//! Train the quantizer
35bool BinaryQuantizer::train(void) {

Callers 4

do_reduceFunction · 0.45
trainMethod · 0.45
TESTFunction · 0.45
TEST_FFunction · 0.45

Calls

no outgoing calls

Tested by 2

TESTFunction · 0.36
TEST_FFunction · 0.36