Skip to content

Commit

Permalink
better implementation of pruning
Browse files Browse the repository at this point in the history
  • Loading branch information
int3 committed Jul 11, 2023
1 parent 64b1573 commit 4134e00
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ def _merge_view_ops_for(graph: List[Tensor], tensor: Tensor) -> List[Tensor]:
graph.append(new_out_tensor)
graph.remove(out_tensor)
removed_ops.add(op)
dst_ops -= removed_ops
for op in removed_ops:
transform_utils.remove_view_op_from_sorted_graph(op)
return graph


Expand Down

0 comments on commit 4134e00

Please sign in to comment.