You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
E beartype.roar.BeartypeDecorHintPep3119Exception: Method ...check_return() parameter "dtype" type hint <class 'jax._src.typing.SupportsDType'> uncheckable at runtime (i.e., not passable as second parameter to isinstance(), due to raising "TypeError: Instance and class checks can only be used with @runtime_checkable protocols" from metaclass __instancecheck__() method).
I understand that DTypeLike is imported in jaxtyping from jax.typing, but it there a way to make the above code compliant with runtime checkers using jaxtyping ?
The text was updated successfully, but these errors were encountered:
Looks like the underlying jax.typing.DTypeLike needs to add the typing.runtime_checkable decorator. I'd suggest opening an issue (or one-line PR) on the main JAX repo.
When I run the following code through beartype :
I get the following error :
I understand that DTypeLike is imported in jaxtyping from jax.typing, but it there a way to make the above code compliant with runtime checkers using jaxtyping ?
The text was updated successfully, but these errors were encountered: