Skip to content

Commit eb0b8e0

Browse files
committed
Don't change constant names in MergeFeature
1 parent f4536c3 commit eb0b8e0

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

pytensor/graph/rewriting/basic.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -588,10 +588,6 @@ def process_atomic(self, fgraph, c):
588588
sig = c.merge_signature()
589589
other_c = self.atomic_sig_inv.get(sig, None)
590590
if other_c is not None:
591-
# multiple names will clobber each other..
592-
# we adopt convention to keep the last name
593-
if c.name:
594-
other_c.name = c.name
595591
self.scheduled.append([[(c, other_c, "merge")]])
596592
else:
597593
# this is a new constant

0 commit comments

Comments
 (0)