| 61 | } |
| 62 | |
| 63 | static py::dict quantizer_param_to_dict(const QuantizerParam ¶ms) { |
| 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 | |
| 74 | static std::string quantize_type_to_string(const QuantizeType type) { |
| 75 | switch (type) { |
no test coverage detected