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)
| 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: |
no outgoing calls
no test coverage detected