Skip to content

Commit

Permalink
Use ir_convenience
Browse files Browse the repository at this point in the history
  • Loading branch information
gramalingam committed Sep 5, 2024
1 parent 115efd8 commit 31f69ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions onnxscript/optimizer/_inliner.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from typing import Iterable, Sequence, Tuple

import onnxscript.ir as ir
import onnxscript.ir.convenience as convenience
import onnxscript.ir.convenience as ir_convenience

# A replacement for a node specifies a list of nodes that replaces the original node,
# and a list of values that replaces the original node's outputs.
Expand Down Expand Up @@ -115,7 +115,7 @@ def clone_node(self, node: ir.Node) -> ir.Node:
new_attributes,
overload=node.overload,
num_outputs=len(node.outputs),
graph=None, # TODO:
graph=None,
name=new_name,
doc_string=node.doc_string,
metadata_props=new_metadata,
Expand Down Expand Up @@ -252,7 +252,7 @@ def inline_calls_in(self, graph: ir.Graph) -> None:
call_site_prefix = ""
call_site = node.name or (self._function_id_abbreviations[id] + call_site_prefix)
nodes, values = self._instantiate_call(node, call_site)
convenience.replace_nodes_and_values(
ir_convenience.replace_nodes_and_values(
graph, insertion_point=node, old_nodes=[node], new_nodes=nodes, old_values=node.outputs, new_values=values
)
else:
Expand Down

0 comments on commit 31f69ed

Please sign in to comment.