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

Commit 886f808

Browse files
committed
Convert n_steps from DeviceArray to int
1 parent 34955a4 commit 886f808

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

aesara/link/jax/dispatch/scan.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@ def scan(*outer_inputs):
3333
# + outer_in_shared
3434
# + outer_in_nit_sot
3535
# + outer_in_non_seqs
36-
n_steps = scan_args.n_steps
36+
n_steps = scan_args.n_steps.item() # JAX needs an int
3737
seqs = scan_args.outer_in_seqs
38-
3938
# TODO: mit_mots
4039
mit_mot_in_slices = []
4140

0 commit comments

Comments
 (0)