Skip to content

Commit

Permalink
Replace add_memlet_path() with add_nedge().
Browse files Browse the repository at this point in the history
  • Loading branch information
pratyai committed Oct 29, 2024
1 parent 9f5f258 commit 220d2f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/library/reduce_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ def make_sdfg():
A = st.add_access('A')
C = st.add_access('C')
R = st.add_reduce('lambda x, y: x + y', [1, 2, 3], 0)
st.add_memlet_path(A, R, memlet=Memlet(expr='A[0:N, 0, 0, 0:C_in, 0:C_out]'))
st.add_memlet_path(R, C, memlet=Memlet(expr='C[0:N, 5, 5, 0:C_out]'))
st.add_nedge(A, R, Memlet(expr='A[0:N, 0, 0, 0:C_in, 0:C_out]'))
st.add_nedge(R, C, Memlet(expr='C[0:N, 5, 5, 0:C_out]'))

return g, R

Expand Down

0 comments on commit 220d2f1

Please sign in to comment.