Skip to content
Merged
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
5 changes: 3 additions & 2 deletions flax/core/scope.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
Sequence, Set, Tuple, TypeVar, Union)

from flax.ids import uuid
from flax import configurations as config
from flax import config as config
from flax import configurations as legacy_config # only for flax_lazy_rng
from flax import errors
from flax import struct
from flax import traceback_util
Expand Down Expand Up @@ -96,7 +97,7 @@ def as_jax_rng(self) -> PRNGKey:
@staticmethod
def create(rng: Union['LazyRng', PRNGKey],
*suffix: PRNGFoldable) -> 'LazyRng':
if not config.flax_lazy_rng:
if not legacy_config.flax_lazy_rng:
if isinstance(rng, LazyRng):
assert not rng.suffix
rng = rng.rng
Expand Down