Skip to content

Commit

Permalink
Updated Attr.free_symbols.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexnick83 committed Sep 14, 2023
1 parent 29b269b commit dcad52a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion dace/symbolic.py
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,12 @@ class Attr(sympy.Function):

@property
def free_symbols(self):
return {sympy.Symbol(str(self))}
# return {sympy.Symbol(str(self))}
# NOTE: This makes it possible to easily pass validation checks such as:
# Are all interstate edge read symbols already defined?
# However, it may fail when we want to reconstruct the read memlets
# TODO: Find a better way to do this
return self.args[0].free_symbols

def __str__(self):
return f'{self.args[0]}.{self.args[1]}'
Expand Down

0 comments on commit dcad52a

Please sign in to comment.