Skip to content

Commit

Permalink
fix partitioning
Browse files Browse the repository at this point in the history
  • Loading branch information
pfackeldey committed May 8, 2024
1 parent b36faaf commit c6f6361
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/evermore/parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def _replace_value(leaf: Any) -> Any:
leaf = eqx.tree_at(lambda p: p.value, leaf, not leaf.frozen)
return leaf

return params_map(_replace_value, filter_spec)
return jtu.tree_map(_replace_value, filter_spec, is_leaf=is_parameter)


def partition(tree: PyTree) -> tuple[PyTree, PyTree]:
Expand Down

0 comments on commit c6f6361

Please sign in to comment.