(activations, num_groups, q_bits, is_symmetric_quant)
| 16 | |
| 17 | |
| 18 | def run_quantize_ds(activations, num_groups, q_bits, is_symmetric_quant): |
| 19 | global inference_module |
| 20 | if inference_module is None: |
| 21 | inference_module = QuantizerBuilder().load() |
| 22 | |
| 23 | return inference_module.quantize(activations, num_groups, q_bits, |
| 24 | inference_module.Symmetric if is_symmetric_quant else inference_module.Asymmetric) |
| 25 | |
| 26 | |
| 27 | def run_dequantize_ds(activations, params, num_groups, q_bits, is_symmetric_quant): |
no test coverage detected
searching dependent graphs…