Skip to content

Commit f68ae2b

Browse files
Merge pull request #33724 from jakevdp:dtype-dep
PiperOrigin-RevId: 840257451
2 parents b116a4a + b82aa38 commit f68ae2b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jax/_src/scipy/optimize/_lbfgs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import numpy as np
2323

2424
from jax._src import api
25+
from jax._src import dtypes
2526
from jax._src import lax
2627
from jax._src import numpy as jnp
2728
from jax._src.numpy import linalg as jnp_linalg
@@ -112,7 +113,7 @@ def _minimize_lbfgs(
112113
Optimization results.
113114
"""
114115
d = len(x0)
115-
dtype = np.dtype(x0)
116+
dtype = dtypes.dtype(x0)
116117

117118
# ensure there is at least one termination condition
118119
if (maxiter is None) and (maxfun is None) and (maxgrad is None):

0 commit comments

Comments
 (0)