Skip to content

Commit

Permalink
Minor refactor syntax in tutorials
Browse files Browse the repository at this point in the history
  • Loading branch information
dantp-ai committed May 10, 2024
1 parent 1a4060e commit 2f11ba6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/01_tutorials/03_batch.rst
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ The introduction of reserved keys gives rise to the need to check if a key is re

</details><br>

To check whether a Batch is empty, simply use `len(Batch.get_keys()) == 0` to decide whether to identify direct emptiness (just a ``Batch()``) or `len(Batch) == 0` to identify recursive emptiness (a ``Batch`` object without any scalar/tensor leaf nodes).
To check whether a Batch is empty, simply use ``len(Batch.get_keys()) == 0`` to decide whether to identify direct emptiness (just a ``Batch()``) or ``len(Batch) == 0`` to identify recursive emptiness (a ``Batch`` object without any scalar/tensor leaf nodes).

.. note::

Expand Down

0 comments on commit 2f11ba6

Please sign in to comment.