Skip to content
Merged
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
3 changes: 3 additions & 0 deletions pytensor/tensor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,5 +148,8 @@ def _get_vector_length_Constant(op: Union[Op, Variable], var: Constant) -> int:
from pytensor.tensor.type_other import * # noqa
from pytensor.tensor.var import TensorConstant, TensorVariable # noqa

# Allow accessing numpy constants from pytensor.tensor
from numpy import e, euler_gamma, inf, infty, nan, newaxis, pi # noqa


__all__ = ["random"] # noqa: F405