MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / get_quantizer_module

Function get_quantizer_module

deepspeed/inference/quantization/utils.py:25–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23
24
25def 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
32def tensor_clamp(tensor: Tensor, min, max) -> Tensor:

Callers 1

dequantizeMethod · 0.85

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected