Skip to content

Commit

Permalink
Fix clean-up for transformations
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Kazantsev <[email protected]>
  • Loading branch information
rkazants committed Jun 8, 2020
1 parent 42b6441 commit 9b5e8de
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def replace_pattern(graph: Graph, match: dict):
nodes_to_remove = [result_node.id]

# in case only const data consumer that is the result node, remove the whole sub-graph
if len(const_data_node.out_nodes()) == 1:
if len(const_node.out_port(0).get_destinations()) == 1:
nodes_to_remove.append(const_node.id)
nodes_to_remove.append(const_data_node.id)

Expand Down

0 comments on commit 9b5e8de

Please sign in to comment.