Skip to content

Commit 6fea499

Browse files
psiddhCopilot
andauthored
Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent d69df60 commit 6fea499

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

examples/arm/aot_arm_compiler.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,12 @@ def _load_serialized_model(
199199
return model, example_inputs
200200

201201

202-
def _apply_replace_quant_nodes(edge, args):
203-
"""Apply the replace_quant_nodes pass to the edge graph module."""
202+
def _apply_replace_quant_nodes(edge: "EdgeProgramManager", args: argparse.Namespace):
203+
"""Apply the replace_quant_nodes pass to an EdgeProgramManager.
204204
205+
The `edge` argument is expected to be an EdgeProgramManager instance as
206+
returned by `to_edge_transform_and_lower`.
207+
"""
205208
if args.target != "vgf" and not args.direct_drive:
206209
edge = edge.transform([ReplaceQuantNodesPass()])
207210
return edge

0 commit comments

Comments
 (0)