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

Function annotate_placeholder

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

Source from the content-addressed store, hash-verified

179
180
181def annotate_placeholder(node: Node, quant_config: QuantizationConfig) -> None:
182 if _is_annotated(node):
183 return
184
185 if _is_float_activation_tensor(node):
186 _annotate_output_qspec(node, quant_config.activation)
187
188 _mark_as_annotated([node])
189
190
191@register_annotator(

Callers 1

annotateFunction · 0.70

Calls 3

_mark_as_annotatedFunction · 0.85
_is_annotatedFunction · 0.70

Tested by

no test coverage detected