()
| 18 | |
| 19 | |
| 20 | def get_quantizer_module(): |
| 21 | global quantizer_module |
| 22 | if quantizer_module is None: |
| 23 | quantizer_module = deepspeed.ops.op_builder.QuantizerBuilder().load() |
| 24 | return quantizer_module |
| 25 | |
| 26 | |
| 27 | def tensor_clamp(tensor: Tensor, min, max) -> Tensor: |