Skip to content

Commit

Permalink
Deactivate failsafe in hk.flax.lift to avoid false-positives.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 607348942
  • Loading branch information
Haiku Contributor authored and copybara-github committed Feb 15, 2024
1 parent 134763d commit 63c4a6f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions haiku/_src/flax/transform_flax.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ def lift(
"""
mod = _flax_transform_with_state(mod)
init_fn, updater = hk.lift_with_state(mod.init, name=name, allow_reuse=True)
updater._used = True # pylint: disable=protected-access

def wrapped(*args, **kwargs):
init_kwargs = dict(kwargs)
Expand Down

0 comments on commit 63c4a6f

Please sign in to comment.