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

Method feed

src/ailego/algorithm/binary_quantizer.cc:26–31  ·  view source on GitHub ↗

Feed the training data

Source from the content-addressed store, hash-verified

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

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