MCPcopy Create free account
hub / github.com/antgroup/vsag / EncodeBatchImpl

Method EncodeBatchImpl

src/quantization/int8_quantizer.cpp:79–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77
78template <MetricType metric>
79bool
80INT8Quantizer<metric>::EncodeBatchImpl(const DataType* data, uint8_t* codes, uint64_t count) {
81 const auto* data_ptr = reinterpret_cast<const int8_t*>(data);
82 for (uint64_t i = 0; i < count; ++i) {
83 EncodeOneImpl(reinterpret_cast<const float*>(data_ptr + i * this->dim_),
84 codes + i * this->code_size_);
85 }
86 return true;
87}
88
89template <MetricType metric>
90bool

Callers 1

EncodeBatchMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected