From a095fab27c28ed3182d18415bb6ec5a022216bac Mon Sep 17 00:00:00 2001 From: Lukas Truemper Date: Mon, 4 Sep 2023 13:41:27 +0200 Subject: [PATCH] Bugfix: Duplicate memlet error with add_memlet_path --- dace/sdfg/state.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dace/sdfg/state.py b/dace/sdfg/state.py index a4a6648401..ae8fedcfe8 100644 --- a/dace/sdfg/state.py +++ b/dace/sdfg/state.py @@ -1689,7 +1689,7 @@ def add_memlet_path(self, *path_nodes, memlet=None, src_conn=None, dst_conn=None # Modify edge to match memlet path edge._src_conn = sconn edge._dst_conn = dconn - edge._data = cur_memlet + edge._data = copy.deepcopy(cur_memlet) # Add connectors to edges if propagate_forward: