PathParts#
- brainstate.typing.PathParts#
Tuple of keys representing a path through a PyTree structure.
Examples
>>> # Path to a nested value in a PyTree >>> path: PathParts = ("model", "layers", 0, "weights") >>> >>> # Empty path representing the root >>> root_path: PathParts = ()