We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6132203 commit 1ca6276Copy full SHA for 1ca6276
pytensor/scalar/basic.py
@@ -4246,7 +4246,11 @@ def __str__(self):
4246
r.name = f"o{int(i)}"
4247
io = set(self.fgraph.inputs + self.fgraph.outputs)
4248
for i, r in enumerate(self.fgraph.variables):
4249
- if r not in io and len(self.fgraph.clients[r]) > 1:
+ if (
4250
+ not isinstance(r, Constant)
4251
+ and r not in io
4252
+ and len(self.fgraph.clients[r]) > 1
4253
+ ):
4254
r.name = f"t{int(i)}"
4255
4256
if len(self.fgraph.outputs) > 1 or len(self.fgraph.apply_nodes) > 10:
0 commit comments