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

Method train

src/ailego/algorithm/binary_quantizer.cc:34–36  ·  view source on GitHub ↗

Train the quantizer

Source from the content-addressed store, hash-verified

32
33//! Train the quantizer
34bool BinaryQuantizer::train() {
35 return true;
36}
37
38//! Quantize data: encode the float input to uint32_t output
39void BinaryQuantizer::encode(const float *in, size_t dim, uint32_t *out) const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected