(pipeline, expected)
| 69 | |
| 70 | |
| 71 | def _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 | |
| 82 | class SharedQspecMulipleClusters(torch.nn.Module): |
no test coverage detected