()
| 23 | |
| 24 | |
| 25 | def get_quantizer_module(): |
| 26 | global quantizer_module |
| 27 | if quantizer_module is None: |
| 28 | quantizer_module = deepspeed.ops.op_builder.QuantizerBuilder().load() |
| 29 | return quantizer_module |
| 30 | |
| 31 | |
| 32 | def tensor_clamp(tensor: Tensor, min, max) -> Tensor: |