Skip to content
Open
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: 4 additions & 0 deletions numpyro/_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,8 @@
"""A generic type for a pytree, i.e. a nested structure of lists, tuples, dicts, and arrays."""


LogDensityFn: TypeAlias = Callable[[PyTree], NumLike]
"""Callable log-density signature used by gradient-based kernels."""


NumLikeT = TypeVar("NumLikeT", bound=NumLike)
Loading