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

Class _OpQuantProperties

backends/arm/quantizer/quantization_annotator.py:67–80  ·  view source on GitHub ↗

Collect input/output quantization properties for a node. Attributes: quant_inputs (List[_QuantProperty]): Quantization specs for inputs indexed by argument positions. quant_output (Optional[_QuantProperty]): Quantization spec for the node's output when ap

Source from the content-addressed store, hash-verified

65
66
67class _OpQuantProperties:
68 """Collect input/output quantization properties for a node.
69
70 Attributes:
71 quant_inputs (List[_QuantProperty]): Quantization specs for inputs
72 indexed by argument positions.
73 quant_output (Optional[_QuantProperty]): Quantization spec for the
74 node's output when applicable.
75
76 """
77
78 def __init__(self):
79 self.quant_inputs: List[_QuantProperty] = []
80 self.quant_output: Optional[_QuantProperty] = None
81
82
83class _QParams(NamedTuple):

Callers 1

get_quant_propertiesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected