Skip to content

Commit

Permalink
Update NNX pop docs in graph.py
Browse files Browse the repository at this point in the history
  • Loading branch information
8bitmp3 committed Dec 16, 2024
1 parent 6bc9858 commit ae7d010
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flax/nnx/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -1526,7 +1526,7 @@ def pop(
def pop(
node, *filters: filterlib.Filter
) -> tp.Union[GraphState, tuple[GraphState, ...]]:
"""Pop one or more :class:`Variable` types from the graph node.
"""Pop one or more :class:`flax.nnx.Variable` types from the graph node.
Example usage::
Expand Down Expand Up @@ -1555,9 +1555,9 @@ def pop(
Args:
node: A graph node object.
*filters: One or more :class:`Variable` objects to filter by.
*filters: One or more :class:`flax.nnx.Variable` objects to filter by.
Returns:
The popped :class:`State` containing the :class:`Variable`
The popped :class:`flax.nnx.State` containing the :class:`flax.nnx.Variable`
objects that were filtered for.
"""
if len(filters) == 0:
Expand Down

0 comments on commit ae7d010

Please sign in to comment.