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
AttributeError: module 'jax.core' has no attribute 'is_opaque_dtype'
at cell
frombeartypeimportbeartype, roarto_onehot=beartype(to_onehot)
try:
print(to_onehot("hey"))
assertFalse, "the code in this blog post is wrong!"exceptroar.BeartypeCallHintException:
print("🐻 rawr! that input type is not allowed")
try:
print(to_onehot(N_VOCAB-1))
exceptroar.BeartypeCallHintException:
assertFalse, "the code in this blog post is wrong!"
The same error appears in later cells.
Full error traceback:
🐻 rawr! thatinputtypeisnotallowed---------------------------------------------------------------------------AttributeErrorTraceback (mostrecentcalllast)
[<ipython-input-39-ed99d1beb7a7>](https://localhost:8080/#) in <cell line: 11>()1011try:
--->12print(to_onehot(N_VOCAB-1))
13exceptroar.BeartypeCallHintException:
14assertFalse, "the code in this blog post is wrong!"<@beartype(__main__.to_onehot) at0x793ae75051b0>into_onehot(__beartype_func, __beartype_conf, __beartype_get_violation, __beartype_object_93932183760576, *args, **kwargs)
1frames
[/usr/local/lib/python3.10/dist-packages/jaxtyping/_array_types.py](https://localhost:8080/#) in __instancecheck__(cls, obj)143returnFalse144-->145ifhas_jaxandjax.core.is_opaque_dtype(obj.dtype):
146dtype=str(obj.dtype)
147elifhasattr(obj.dtype, "type") andhasattr(obj.dtype.type, "__name__"):
[/usr/local/lib/python3.10/dist-packages/jax/_src/deprecations.py](https://localhost:8080/#) in getattr(name)51warnings.warn(message, DeprecationWarning, stacklevel=2)
52returnfn--->53raiseAttributeError(f"module {module!r} has no attribute {name!r}")
5455returngetattrAttributeError: module'jax.core'hasnoattribute'is_opaque_dtype'
The text was updated successfully, but these errors were encountered:
In the RWKV, explained notebook, there is the error
AttributeError: module 'jax.core' has no attribute 'is_opaque_dtype'
at cell
The same error appears in later cells.
Full error traceback:
The text was updated successfully, but these errors were encountered: