Skip to content

Commit ea7823c

Browse files
committed
Don't change constant names
1 parent f4536c3 commit ea7823c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pytensor/graph/rewriting/basic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -590,8 +590,8 @@ def process_atomic(self, fgraph, c):
590590
if other_c is not None:
591591
# multiple names will clobber each other..
592592
# we adopt convention to keep the last name
593-
if c.name:
594-
other_c.name = c.name
593+
# if c.name:
594+
# other_c.name = c.name
595595
self.scheduled.append([[(c, other_c, "merge")]])
596596
else:
597597
# this is a new constant

0 commit comments

Comments
 (0)