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

Method EncodedSizeInBinary32

src/ailego/algorithm/binary_quantizer.h:43–45  ·  view source on GitHub ↗

Get encoded elements in type of uint32_t

Source from the content-addressed store, hash-verified

41
42 //! Get encoded elements in type of uint32_t
43 static size_t EncodedSizeInBinary32(size_t dim) {
44 return (dim + 31) / 32;
45 }
46
47 //! Set quantization threshold
48 void set_threshold(float threshold) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected