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

Method annotate

backends/arm/quantizer/arm_quantizer.py:722–734  ·  view source on GitHub ↗

Annotate the graph with the configured quantization settings. Currently only does static quantization annotation. Args: model (GraphModule): Model to annotate statically. Returns: GraphModule: Annotated model ready for export.

(self, model: GraphModule)

Source from the content-addressed store, hash-verified

720 return self.quantizer.transform_for_annotation(model)
721
722 def annotate(self, model: GraphModule) -> GraphModule:
723 """Annotate the graph with the configured quantization settings.
724
725 Currently only does static quantization annotation.
726
727 Args:
728 model (GraphModule): Model to annotate statically.
729
730 Returns:
731 GraphModule: Annotated model ready for export.
732
733 """
734 return self.quantizer.annotate(model)
735
736 def validate(self, model: GraphModule) -> None:
737 """Validate the quantization results. Currently, this includes:

Callers 2

annotateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected