Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
deoxyribose committed Dec 4, 2023
1 parent 783f9f3 commit ce45e56
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions numpyro/contrib/control_flow/scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@
def _replay_wrapper(replay_trace, trace, i, length):
def get_ith_value(site):
site_len = jnp.shape(site["value"])[0]

if site["name"] not in trace or site_len != length or site["type"] not in ("sample", "deterministic"):
if (
site["name"] not in trace
or site_len != length
or site["type"] not in ("sample", "deterministic")
):
return site

site["value"] = site["value"][i]
Expand Down

0 comments on commit ce45e56

Please sign in to comment.