diff --git a/dace/sdfg/validation.py b/dace/sdfg/validation.py index 95a8850e48..f7cb7310d1 100644 --- a/dace/sdfg/validation.py +++ b/dace/sdfg/validation.py @@ -590,7 +590,9 @@ def validate_state(state: 'dace.sdfg.SDFGState', f'Duplicate memlet detected: "{e}". Please copy objects ' 'rather than using multiple references to the same one', sdfg, state_id, eid) references.add(id(e)) - if id(e.data) in references: + if e.data.is_empty(): + pass + elif id(e.data) in references: raise InvalidSDFGEdgeError( f'Duplicate memlet detected: "{e.data}". Please copy objects ' 'rather than using multiple references to the same one', sdfg, state_id, eid)