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

Function annotate_output_qspec

backends/mediatek/quantizer/annotator.py:249–253  ·  view source on GitHub ↗
(node: Node, quant_config: QuantizationConfig)

Source from the content-addressed store, hash-verified

247 ]
248)
249def annotate_output_qspec(node: Node, quant_config: QuantizationConfig) -> None:
250 if _is_annotated(node):
251 return
252 _annotate_output_qspec(node, quant_config.activation)
253 _mark_as_annotated([node])
254
255
256@register_annotator([torch.ops.aten.embedding.default])

Callers 14

annotate_placeholderFunction · 0.90
_annotate_inputsMethod · 0.90
_annotate_ioMethod · 0.90
_annotate_outputFunction · 0.90
_annotate_linearFunction · 0.90
_annotate_linearFunction · 0.90
annotate_rms_normFunction · 0.90
annotateMethod · 0.90
annotateMethod · 0.90
annotateMethod · 0.90
annotateMethod · 0.90
annotateMethod · 0.90

Calls 2

_mark_as_annotatedFunction · 0.85
_is_annotatedFunction · 0.70

Tested by

no test coverage detected