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

Function _get_output_qspec_from_node

backends/qualcomm/quantizer/validators.py:176–182  ·  view source on GitHub ↗
(
    quantization_annotation: QuantizationAnnotation,
)

Source from the content-addressed store, hash-verified

174
175
176def _get_output_qspec_from_node(
177 quantization_annotation: QuantizationAnnotation,
178) -> QuantizationSpecBase | None:
179 out_spec = quantization_annotation.output_qspec
180 if isinstance(out_spec, SharedQuantizationSpec):
181 out_spec = _resolve_shared_qspec(out_spec)
182 return out_spec
183
184
185def _get_input_qspecs_from_node(

Callers 1

_node_port_dtypesFunction · 0.85

Calls 1

_resolve_shared_qspecFunction · 0.85

Tested by

no test coverage detected