-
-
Notifications
You must be signed in to change notification settings - Fork 6
fix: jax v0.7.2+ LiteralArray / TypedNdArray #74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: jax v0.7.2+ LiteralArray / TypedNdArray #74
Conversation
Signed-off-by: nstarman <[email protected]>
Signed-off-by: nstarman <[email protected]>
|
@patrick-kidger, the jax + jaxtyping PRs re plum.resolver.NotFoundLookupError: `convert_element_type_dispatcher(LiteralArray(0, dtype=int32))` could not be resolved.Besides registering specific rules, is there a better way to automatically support these primitives? |
825ac87 to
d56084a
Compare
|
Hmm, this surprises me. If I'd suggest tracking down why that expected flow doesn't hold. |
Signed-off-by: nstarman <[email protected]>
Signed-off-by: nstarman <[email protected]>
Signed-off-by: nstarman <[email protected]>
Signed-off-by: nstarman <[email protected]>
Signed-off-by: nstarman <[email protected]>
Signed-off-by: nstarman <[email protected]>
Signed-off-by: nstarman <[email protected]>
Signed-off-by: nstarman <[email protected]>
Signed-off-by: nstarman <[email protected]>
Signed-off-by: nstarman <[email protected]>
Signed-off-by: nstarman <[email protected]>
d56084a to
b9c4cc8
Compare
@patrick-kidger I think it's because of patrick-kidger/equinox#1112 |
|
I tested this PR with patrick-kidger/equinox#1112 and all tests passed, so hopefully that's all we need. |
Signed-off-by: nstarman <[email protected]>
Signed-off-by: nstarman <[email protected]>
|
Some small code cleaning was introduced in the process of debugging. :) |
|
@patrick-kidger it works! |
| def existing_rule(): | ||
| assert False | ||
| def new_rule(): | ||
| raise NotImplementedError("Abstract primitive") # pragma: no cover |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pragma?
|
LGTM, merged! |
| "beartype>=0.20.2", | ||
| "pytest>=8.3.5", | ||
| "pytest-env>=1.1.5", | ||
| "ipykernel>=6.30.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, why did this sneak in as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess dev on Jupyter.
Replaces #73