Skip to content

Commit

Permalink
Be less strict about static shape information for Scan's inner-nonseqs
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonwillard committed Aug 24, 2022
1 parent 2c9f692 commit 6307c50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aesara/scan/op.py
Original file line number Diff line number Diff line change
Expand Up @@ -1210,7 +1210,7 @@ def make_node(self, *inputs):
):
outer_nonseq = copy_var_format(_outer_nonseq, as_var=inner_nonseq)
new_inputs.append(outer_nonseq)
if not outer_nonseq.type.in_same_class(inner_nonseq.type):
if not inner_nonseq.type.is_super(outer_nonseq.type):
raise ValueError(
(
f"Argument {outer_nonseq} given to the scan node is not"
Expand Down

0 comments on commit 6307c50

Please sign in to comment.