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

Function _is_annotated

backends/mediatek/quantizer/annotator.py:55–62  ·  view source on GitHub ↗

Given a list of nodes (that represents an operator pattern), return True if any of the node is annotated, otherwise return False

(node: Node)

Source from the content-addressed store, hash-verified

53
54
55def _is_annotated(node: Node):
56 """
57 Given a list of nodes (that represents an operator pattern),
58 return True if any of the node
59 is annotated, otherwise return False
60 """
61 KEY = Q_ANNOTATION_KEY
62 return KEY in node.meta and node.meta[KEY]._annotated
63
64
65def _mark_as_annotated(nodes: List[Node]):

Callers 5

annotate_placeholderFunction · 0.70
annotate_affine_opsFunction · 0.70
annotate_output_qspecFunction · 0.70
annotate_embedding_opFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected