Skip to content
This repository was archived by the owner on Nov 17, 2025. It is now read-only.

Commit 6307c50

Browse files
Be less strict about static shape information for Scan's inner-nonseqs
1 parent 2c9f692 commit 6307c50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aesara/scan/op.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1210,7 +1210,7 @@ def make_node(self, *inputs):
12101210
):
12111211
outer_nonseq = copy_var_format(_outer_nonseq, as_var=inner_nonseq)
12121212
new_inputs.append(outer_nonseq)
1213-
if not outer_nonseq.type.in_same_class(inner_nonseq.type):
1213+
if not inner_nonseq.type.is_super(outer_nonseq.type):
12141214
raise ValueError(
12151215
(
12161216
f"Argument {outer_nonseq} given to the scan node is not"

0 commit comments

Comments
 (0)