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

Function quantizer_param_to_dict

src/binding/python/model/param/python_param.cc:63–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63static py::dict quantizer_param_to_dict(const QuantizerParam &params) {
64 py::dict result;
65 result["enable_rotate"] = params.enable_rotate();
66 result["num_chunk"] = params.num_chunk();
67 result["num_bits"] = params.num_bits();
68 result["fast_scan"] = params.fast_scan();
69 result["opq_iter"] = params.opq_iter();
70 result["opq_pq_iter"] = params.opq_pq_iter();
71 return result;
72}
73
74static std::string quantize_type_to_string(const QuantizeType type) {
75 switch (type) {

Callers 1

bind_index_paramsMethod · 0.85

Calls 6

enable_rotateMethod · 0.80
num_chunkMethod · 0.80
num_bitsMethod · 0.80
fast_scanMethod · 0.80
opq_iterMethod · 0.80
opq_pq_iterMethod · 0.80

Tested by

no test coverage detected