Skip to content

Commit c8d262a

Browse files
committed
Fix string formatting in shape output of debugprint function
1 parent ed32581 commit c8d262a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytensor/printing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ def _debugprint(
544544
type_str = ""
545545

546546
if print_shape:
547-
shape_str = f" shape={str(var.type.shape).replace("None", "?")}"
547+
shape_str = f" shape={str(var.type.shape).replace('None', '?')}"
548548
else:
549549
shape_str = ""
550550

0 commit comments

Comments
 (0)