mirror of
https://github.com/ROCm/jax.git
synced 2025-04-16 11:56:07 +00:00
Merge pull request #14789 from patrick-kidger:patch-2
PiperOrigin-RevId: 514490253
This commit is contained in:
commit
7d154103e3
@ -162,6 +162,8 @@ def _dtype(x: Any) -> DType:
|
||||
# types return JAX arrays when instantiated.
|
||||
|
||||
class _ScalarMeta(type):
|
||||
dtype: np.dtype
|
||||
|
||||
def __hash__(self) -> int:
|
||||
return hash(self.dtype.type)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user