MCPcopy Create free account
hub / github.com/pytorch/executorch / _check_quant_params

Function _check_quant_params

backends/arm/test/misc/test_shared_qspecs.py:71–79  ·  view source on GitHub ↗
(pipeline, expected)

Source from the content-addressed store, hash-verified

69
70
71def _check_quant_params(pipeline, expected):
72 if expected is None:
73 return
74 nodes = pipeline.tester.get_artifact().module().graph.nodes
75 found = _collect_quant_params(nodes)
76 if found != expected:
77 raise AssertionError(
78 f"Quant params mismatch.\nExpected: {pformat(expected)}\nFound: {pformat(found)}"
79 )
80
81
82class SharedQspecMulipleClusters(torch.nn.Module):

Calls 3

_collect_quant_paramsFunction · 0.85
moduleMethod · 0.80
get_artifactMethod · 0.80

Tested by

no test coverage detected