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

Function _get_qparams

exir/passes/quant_fusion_pass.py:28–36  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

26
27 # get quantization parameters for the node, either for quantize or dequantize node
28 def _get_qparams(node):
29 assert node.target in (
30 exir_ops.edge.quantized_decomposed.quantize_per_tensor.default,
31 exir_ops.edge.quantized_decomposed.dequantize_per_tensor.default,
32 )
33 args = list(node.args)
34 # skip input
35 qparams = args[1:]
36 return qparams
37
38 for n in model.graph.nodes:
39 if (

Callers 1

_fuse_quantized_catFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected