pytensor
pytensor copied to clipboard
Scipy 1.14.0 changed the upcasting rule of several special functions when passing integers
Description
Functions like scipy.special.psi
now always upcast to float64, even if the input is a low precision integer like int8
. We need to handle these types, but:
- float64 may be a bit too wasteful
- We can't have the dtype depend on the scipy version, and lower pinning to 1.14.0 may be too restrictive?