Skip to content
Merged
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
2 changes: 1 addition & 1 deletion numpyro/contrib/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ def apply_fn(params, *call_args, **call_kwargs):
if mutable_holder:
nnx.replace_by_pure_dict(mutable_state, mutable_holder["state"])

model = nnx.merge(graph_def, params_state, mutable_state)
model = nnx.merge(graph_def, params_state, mutable_state, copy=True)

model_call = model(*call_args, **call_kwargs)

Expand Down
3 changes: 0 additions & 3 deletions test/contrib/test_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,9 +385,6 @@ def nnx_model_eager(x, y):
@pytest.mark.parametrize(
argnames="batchnorm", argvalues=[True, False], ids=["batchnorm", "no_batchnorm"]
)
@pytest.mark.xfail(
reason="Temporary marking to pass CI. Bug fixed in https://github.com/pyro-ppl/numpyro/pull/2067"
)
def test_nnx_state_dropout_smoke(dropout, batchnorm):
from flax import nnx

Expand Down