MCPcopy Create free account
hub / github.com/JasonLSC/GSCodec_Studio / test_quantizer_disabled_passthrough

Function test_quantizer_disabled_passthrough

tests/test_quantizer.py:7–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5
6
7def test_quantizer_disabled_passthrough():
8 cfg = AttributeQuantizerConfig(enabled=False)
9 quantizer = build_quantizer("means", cfg)
10 assert quantizer is None
11
12 cfg2 = AttributeQuantizerConfig(enabled=True, bitwidth=None)
13 quantizer2 = build_quantizer("means", cfg2)
14 assert quantizer2 is None
15
16
17def test_noise_quantization_outputs_q_step_and_stats():

Callers

nothing calls this directly

Calls 2

build_quantizerFunction · 0.90

Tested by

no test coverage detected