Skip to content

Commit

Permalink
fix missing default
Browse files Browse the repository at this point in the history
  • Loading branch information
juanitorduz committed Nov 12, 2024
1 parent b24e301 commit 3ac0e61
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions numpyro/contrib/control_flow/scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,9 @@ def scan_wrapper(
if length is None:
length = jnp.shape(jax.tree.flatten(xs)[0][0])[0]

if substitute_stack is None:
substitute_stack = []

if enum and history > 0:
return scan_enum( # TODO: replay for enum
f,
Expand Down

0 comments on commit 3ac0e61

Please sign in to comment.