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

Function _mark_as_annotated

backends/mediatek/quantizer/annotator.py:65–70  ·  view source on GitHub ↗
(nodes: List[Node])

Source from the content-addressed store, hash-verified

63
64
65def _mark_as_annotated(nodes: List[Node]):
66 KEY = Q_ANNOTATION_KEY
67 for node in nodes:
68 if KEY not in node.meta:
69 node.meta[KEY] = QuantizationAnnotation()
70 node.meta[KEY]._annotated = True
71
72
73def _is_float_activation_tensor(node: Node):

Callers 6

annotate_placeholderFunction · 0.85
annotate_affine_opsFunction · 0.85
annotate_output_qspecFunction · 0.85
annotate_embedding_opFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected