We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45b4c4c commit be42e3bCopy full SHA for be42e3b
1 file changed
examples/arm/aot_arm_compiler.py
@@ -199,12 +199,9 @@ def _load_serialized_model(
199
return model, example_inputs
200
201
202
-def _apply_replace_quant_nodes(edge: "EdgeProgramManager", args: argparse.Namespace):
203
- """Apply the replace_quant_nodes pass to an EdgeProgramManager.
+def _apply_replace_quant_nodes(edge, args):
+ """Apply the replace_quant_nodes pass to the edge graph module."""
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