Skip to content

Commit 7600ad1

Browse files
author
Flax Authors
committed
Merge pull request #4657 from IvyZX:wrapper-typo
PiperOrigin-RevId: 741276877
2 parents d6ebb9d + ce6e249 commit 7600ad1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flax/nnx/bridge/wrappers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def lazy_init(fn: Module | tp.Callable[..., tp.Any], *args, **kwargs):
7878
module = fn
7979
assert callable(fn)
8080
else:
81-
if not hasattr(fn, '__self__') and isinstance(fn.__self__, Module):
81+
if not (hasattr(fn, '__self__') and isinstance(fn.__self__, Module)):
8282
raise ValueError(f'{fn = } needs to be a method of an NNX Module.')
8383
module = fn.__self__
8484
_set_initializing(module, True)

0 commit comments

Comments
 (0)