From 3249aa5eb20980e3a6f4d0810577ecc30e177776 Mon Sep 17 00:00:00 2001 From: edopao Date: Tue, 25 Feb 2025 17:09:55 +0100 Subject: [PATCH] test[next]: initialize output array in dace-gtir subdomain tests (#1886) --- .../runners_tests/dace_tests/test_gtir_to_sdfg.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/next_tests/unit_tests/program_processor_tests/runners_tests/dace_tests/test_gtir_to_sdfg.py b/tests/next_tests/unit_tests/program_processor_tests/runners_tests/dace_tests/test_gtir_to_sdfg.py index 8ebb240339..030aa9b131 100644 --- a/tests/next_tests/unit_tests/program_processor_tests/runners_tests/dace_tests/test_gtir_to_sdfg.py +++ b/tests/next_tests/unit_tests/program_processor_tests/runners_tests/dace_tests/test_gtir_to_sdfg.py @@ -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 :])) @@ -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)