Skip to content

Commit 75b8ee9

Browse files
committed
Register useless_switch in infer_shape
1 parent 1df9230 commit 75b8ee9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pytensor/tensor/rewriting/basic.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -949,6 +949,7 @@ def equivalent_up_to_constant_casting(a, b) -> bool:
949949
return False
950950

951951

952+
@register_infer_shape
952953
@register_useless("shape_unsafe")
953954
@register_canonicalize("fast_compile", "shape_unsafe")
954955
@register_specialize("shape_unsafe")

0 commit comments

Comments
 (0)