Skip to content

Commit

Permalink
Add find feature for Cursor API
Browse files Browse the repository at this point in the history
  • Loading branch information
chiamp committed Sep 8, 2023
1 parent 1127475 commit 38a080d
Show file tree
Hide file tree
Showing 4 changed files with 1,028 additions and 93 deletions.
4 changes: 2 additions & 2 deletions docs/api_reference/flax.cursor.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ To illustrate, consider the example below::

a = A(A(A(A(A(A(A(0)))))))

To replace the int 0 using ``dataclasses.replace``, we would have to write many nested calls::
To replace the int ``0`` using ``dataclasses.replace``, we would have to write many nested calls::

a2 = dataclasses.replace(
a,
Expand Down Expand Up @@ -55,6 +55,6 @@ generating a new copy of the original object with the accumulated changes.
.. autofunction:: cursor

.. autoclass:: Cursor
:members: build, set, apply_update
:members: apply_update, build, find, find_all, set


Loading

0 comments on commit 38a080d

Please sign in to comment.