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

Function get_quantizer_module

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

Source from the content-addressed store, hash-verified

18
19
20def 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
27def tensor_clamp(tensor: Tensor, min, max) -> Tensor:

Callers 1

dequantizeMethod · 0.85

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected