File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
tensorflow_probability/python/internal/backend/numpy Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 17
17
import collections
18
18
import functools
19
19
import numpy as np
20
+ import numpy as onp # Disable JAX rewrite. # pylint: disable=reimported
20
21
21
22
from tensorflow_probability .python .internal .backend .numpy import _utils as utils
22
23
from tensorflow_probability .python .internal .backend .numpy .numpy_array import _reverse
@@ -169,7 +170,7 @@ def _astuple(x):
169
170
# In version 1.25 this was deprecated, causing a warning to be issued in the
170
171
# below try/except. To avoid that, we just fall through in the case of an
171
172
# np.ndarray.
172
- if not isinstance (x , np .ndarray ):
173
+ if not isinstance (x , onp .ndarray ):
173
174
try :
174
175
return (int (x ),)
175
176
except TypeError :
You can’t perform that action at this time.
0 commit comments