We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca14e24 commit 2fd7a75Copy full SHA for 2fd7a75
pytensor/link/numba/dispatch/scan.py
@@ -351,8 +351,8 @@ def scan({", ".join(outer_in_names)}):
351
{indent(input_storage_block, " " * 4)}
352
353
i = 0
354
- cond = False
355
- while i < n_steps and not cond:
+ cond = np.array(False)
+ while i < n_steps and not cond.item():
356
{inner_outputs} = scan_inner_func({inner_in_args})
357
{indent(inner_out_post_processing_block, " " * 8)}
358
{indent(inner_out_to_outer_out_stmts, " " * 8)}
0 commit comments