init config for faster quantization rabitq, for total_bits > 0, store const rescaling factor in RabitqConfig
| 25 | // init config for faster quantization rabitq, for total_bits > 0, store const rescaling |
| 26 | // factor in RabitqConfig |
| 27 | inline RabitqConfig faster_config(size_t dim, size_t total_bits) { |
| 28 | RabitqConfig config; |
| 29 | if (total_bits > 1) { |
| 30 | config.t_const = |
| 31 | rabitq_impl::ex_bits::get_const_scaling_factors(dim, total_bits - 1); |
| 32 | } |
| 33 | return config; |
| 34 | } |
| 35 | |
| 36 | template <typename T, bool Parallel = false> |
| 37 | inline void quantize_one_batch( |
no test coverage detected