Skip to content

Commit

Permalink
formatting done
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastruemper committed Oct 30, 2023
1 parent 8bef731 commit 86c1d90
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions dace/transformation/dataflow/wcr_conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from dace.transformation import helpers
from dace import propagate_memlet


class AugAssignToWCR(transformation.SingleStateTransformation):
"""
Converts an augmented assignment ("a += b", "a = a + b") into a tasklet
Expand Down Expand Up @@ -154,9 +155,7 @@ def apply(self, state: SDFGState, sdfg: SDFG):

# If state fission is necessary to keep semantics, do it first
if state.in_degree(input) > 0:
subgraph_nodes = set(
[e.src for e in state.bfs_edges(input, reverse=True)]
)
subgraph_nodes = set([e.src for e in state.bfs_edges(input, reverse=True)])
subgraph_nodes.add(input)

subgraph = StateSubgraphView(state, subgraph_nodes)
Expand Down

0 comments on commit 86c1d90

Please sign in to comment.