Skip to content

Commit a2fe5f3

Browse files
Incorrect slice
1 parent 09a4350 commit a2fe5f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytensor/tensor/rewriting/linalg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,7 @@ def rewrite_cholesky_diag_to_sqrt_diag(fgraph, node):
912912
[input] = node.inputs
913913

914914
# Check if input is a (1, 1) matrix
915-
if all(input.type.broadcastable[:-2]):
915+
if all(input.type.broadcastable[-2:]):
916916
return [pt.sqrt(input)]
917917

918918
# Check for use of pt.diag first

0 commit comments

Comments
 (0)