Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add find methods and magic methods for Cursor API #3306

Merged
merged 1 commit into from
Sep 19, 2023
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
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
Loading