Skip to content

Commit

Permalink
Merge pull request #9901 from jakevdp:fix-int-x64
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 434863868
  • Loading branch information
jax authors committed Mar 15, 2022
2 parents 5354a01 + 36dabf1 commit f47ce79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jax/_src/numpy/lax_numpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -4690,7 +4690,7 @@ def _unique(ar, axis, return_index=False, return_inverse=False, return_counts=Fa
idx = idx.at[1:].set(where(idx[1:], idx[1:], mask.size))
ret += (diff(idx),)
elif ar.shape[axis]:
ret += (array([ar.shape[axis]], dtype=int_),)
ret += (array([ar.shape[axis]], dtype=dtypes.canonicalize_dtype(int_)),)
else:
ret += (empty(0, dtype=int),)
if return_true_size:
Expand Down

0 comments on commit f47ce79

Please sign in to comment.