diff --git a/docs/nnx/filters_guide.ipynb b/docs/nnx/filters_guide.ipynb index f13098675..aa307e1b2 100644 --- a/docs/nnx/filters_guide.ipynb +++ b/docs/nnx/filters_guide.ipynb @@ -159,13 +159,11 @@ "\n", "| Literal | Callable | Description |\n", "|--------|----------------------|-------------|\n", - "| `...` | `Everything()` | Matches all values |\n", - "| `None` | `Nothing()` | Matches no values |\n", - "| `True` | `Everything()` | Matches all values |\n", - "| `False` | `Nothing()` | Matches no values |\n", + "| `...` or `True` | `Everything()` | Matches all values |\n", + "| `None` or `False` | `Nothing()` | Matches no values |\n", "| `type` | `OfType(type)` | Matches values that are instances of `type` or have a `type` attribute that is an instance of `type` |\n", "| | `PathContains(key)` | Matches values that have an associated `path` that contains the given `key` |\n", - "| `'{filter}'` | `WithTag('{filter}')` | Matches values that have string `tag` attribute equal to `'{filter}'`. Used by `RngKey` and `RngCount`. |\n", + "| `'{filter}'` str | `WithTag('{filter}')` | Matches values that have string `tag` attribute equal to `'{filter}'`. Used by `RngKey` and `RngCount`. |\n", "| `(*filters)` tuple or `[*filters]` list | `Any(*filters)` | Matches values that match any of the inner `filters` |\n", "| | `All(*filters)` | Matches values that match all of the inner `filters` |\n", "| | `Not(filter)` | Matches values that do not match the inner `filter` |\n", diff --git a/docs/nnx/filters_guide.md b/docs/nnx/filters_guide.md index 88145fb7a..c63745790 100644 --- a/docs/nnx/filters_guide.md +++ b/docs/nnx/filters_guide.md @@ -85,13 +85,11 @@ Here is a list of all the callable Filters included in NNX and their DSL literal | Literal | Callable | Description | |--------|----------------------|-------------| -| `...` | `Everything()` | Matches all values | -| `None` | `Nothing()` | Matches no values | -| `True` | `Everything()` | Matches all values | -| `False` | `Nothing()` | Matches no values | +| `...` or `True` | `Everything()` | Matches all values | +| `None` or `False` | `Nothing()` | Matches no values | | `type` | `OfType(type)` | Matches values that are instances of `type` or have a `type` attribute that is an instance of `type` | | | `PathContains(key)` | Matches values that have an associated `path` that contains the given `key` | -| `'{filter}'` | `WithTag('{filter}')` | Matches values that have string `tag` attribute equal to `'{filter}'`. Used by `RngKey` and `RngCount`. | +| `'{filter}'` str | `WithTag('{filter}')` | Matches values that have string `tag` attribute equal to `'{filter}'`. Used by `RngKey` and `RngCount`. | | `(*filters)` tuple or `[*filters]` list | `Any(*filters)` | Matches values that match any of the inner `filters` | | | `All(*filters)` | Matches values that match all of the inner `filters` | | | `Not(filter)` | Matches values that do not match the inner `filter` |