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

Function annotate_embedding_op

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

Source from the content-addressed store, hash-verified

255
256@register_annotator([torch.ops.aten.embedding.default])
257def annotate_embedding_op(node: Node, quant_config: QuantizationConfig) -> None:
258 if _is_annotated(node):
259 return
260
261 wgt_node = node.args[0]
262 annotate_input_qspec_map(node, wgt_node, quant_config.activation)
263 _mark_as_annotated([node])

Callers

nothing calls this directly

Calls 2

_mark_as_annotatedFunction · 0.85
_is_annotatedFunction · 0.70

Tested by

no test coverage detected