Skip to content

Commit 545e58f

Browse files
committed
Fix string error on SymbolicInputVariables with updates
PyTensor Variables cannot be called `bool` upon
1 parent 2948525 commit 545e58f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytensor/compile/io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def __init__(
9595
self.implicit = implicit
9696

9797
def __str__(self):
98-
if self.update:
98+
if self.update is not None:
9999
return f"In({self.variable} -> {self.update})"
100100
else:
101101
return f"In({self.variable})"

0 commit comments

Comments
 (0)