Skip to content

Commit

Permalink
Fix size array name check in validation
Browse files Browse the repository at this point in the history
  • Loading branch information
ThrudPrimrose committed Dec 6, 2024
1 parent e76f39d commit 15b00cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dace/sdfg/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,9 @@ def validate_sdfg(sdfg: 'dace.sdfg.SDFG', references: Set[int] = None, **context
'rather than using multiple references to the same one', sdfg, None)
references.add(id(desc))

if name.endswith("_size") and not hasattr(desc, "is_size_array"):
if name.endswith("_size") and hasattr(desc, "is_size_array") and desc.is_size_array is False:
raise InvalidSDFGEdgeError(
f'Only size arrays allowed to end with _size'
f'Only size arrays allowed to end with _size', sdfg, None
)

# Because of how the code generator works Scalars can not be return values.
Expand Down

0 comments on commit 15b00cc

Please sign in to comment.