We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d69df60 commit 6fea499Copy full SHA for 6fea499
1 file changed
examples/arm/aot_arm_compiler.py
@@ -199,9 +199,12 @@ def _load_serialized_model(
199
return model, example_inputs
200
201
202
-def _apply_replace_quant_nodes(edge, args):
203
- """Apply the replace_quant_nodes pass to the edge graph module."""
+def _apply_replace_quant_nodes(edge: "EdgeProgramManager", args: argparse.Namespace):
+ """Apply the replace_quant_nodes pass to an EdgeProgramManager.
204
205
+ The `edge` argument is expected to be an EdgeProgramManager instance as
206
+ returned by `to_edge_transform_and_lower`.
207
+ """
208
if args.target != "vgf" and not args.direct_drive:
209
edge = edge.transform([ReplaceQuantNodesPass()])
210
return edge
0 commit comments