Skip to content

Commit c2a08e0

Browse files
committed
ensure compatibility
1 parent 445f548 commit c2a08e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpyro/contrib/module.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ def apply_fn(params, *call_args, **call_kwargs):
498498
if mutable_holder:
499499
nnx.replace_by_pure_dict(mutable_state, mutable_holder["state"])
500500

501-
model = nnx.merge(graph_def, params_state, mutable_state)
501+
model = nnx.merge(graph_def, params_state, mutable_state, copy=True)
502502

503503
model_call = model(*call_args, **call_kwargs)
504504

0 commit comments

Comments
 (0)