Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions jax/_src/lax/control_flow/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

from __future__ import annotations

from collections.abc import Callable, Sequence
from collections.abc import Sequence
import os
from functools import partial
from typing import Any
Expand All @@ -27,7 +27,7 @@
from jax._src.util import weakref_lru_cache, safe_map
from jax._src.interpreters import partial_eval as pe
from jax._src.tree_util import (equality_errors_pytreedef, tree_map,
tree_unflatten, keystr, PyTreeDef)
tree_unflatten, keystr)

map, unsafe_map = safe_map, map

Expand Down Expand Up @@ -73,7 +73,7 @@ def make_var(aq):
*map(make_var, right), *jaxpr.invars[num_consts:]]
effs = pe._renumber_effects(invars, jaxpr.invars, jaxpr.effects)
jaxpr = jaxpr.replace(jaxpr=jaxpr.jaxpr.replace(invars=invars, effects=effs))
config.enable_checks.value and core.check_jaxpr(jaxpr)
config.enable_checks.value and core.check_jaxpr(jaxpr.jaxpr)
return jaxpr

@weakref_lru_cache
Expand Down
1 change: 0 additions & 1 deletion jax/_src/lax/control_flow/conditionals.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
from collections.abc import Callable, Sequence
import functools
from functools import partial
import inspect
import itertools
import operator
from typing import Any, TypeVar
Expand Down
Loading