Skip to content

Commit b7f5582

Browse files
hawkinspGoogle-ML-Automation
authored andcommitted
For our specific use case, it seems to avoid the deadlock with high probability if we simply make ExtendedDtype not an ABC instance. PiperOrigin-RevId: 975924147
1 parent 52188cb commit b7f5582

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

‎jax/_src/dtypes.py‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
from __future__ import annotations
2323

24-
import abc
2524
from collections.abc import Callable
2625
import dataclasses
2726
import functools
@@ -36,7 +35,7 @@
3635
from jax._src import traceback_util
3736
from jax._src.lib import _jax
3837
from jax._src.typing import Array, DType, DTypeLike
39-
from jax._src.util import StrictABC, set_module, cache
38+
from jax._src.util import set_module, cache
4039

4140
traceback_util.register_exclusion(__file__)
4241

@@ -83,11 +82,11 @@ class prng_key(extended):
8382
"""
8483

8584

86-
class ExtendedDType(StrictABC):
85+
class ExtendedDType:
8786
"""Abstract Base Class for extended dtypes"""
8887
@property
89-
@abc.abstractmethod
90-
def type(self) -> type: ...
88+
def type(self) -> type:
89+
raise NotImplementedError
9190

9291
_rules: Any = None
9392

0 commit comments

Comments
 (0)