Skip to content

Commit

Permalink
test[next]: initialize output array in dace-gtir subdomain tests (#1886)
Browse files Browse the repository at this point in the history
  • Loading branch information
edopao authored Feb 25, 2025
1 parent 1984691 commit 3249aa5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1846,7 +1846,7 @@ def test_gtir_let_lambda_with_tuple1():

sdfg = build_dace_sdfg(testee, CARTESIAN_OFFSETS)

z_fields = (np.empty_like(a), np.empty_like(a))
z_fields = (np.zeros_like(a), np.zeros_like(a))
a_ref = np.concatenate((z_fields[0][:1], a[1 : N - 1], z_fields[0][N - 1 :]))
b_ref = np.concatenate((z_fields[1][:1], b[1 : N - 1], z_fields[1][N - 1 :]))

Expand Down Expand Up @@ -2037,7 +2037,7 @@ def test_gtir_index():
],
)

v = np.empty(N, dtype=np.int32)
v = np.zeros(N, dtype=np.int32)

# we need to run domain inference in order to add the domain annex information to the index node.
testee = infer_domain.infer_program(testee, offset_provider=CARTESIAN_OFFSETS)
Expand Down

0 comments on commit 3249aa5

Please sign in to comment.