Skip to content
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

Add __rmatmul__ to ProxyObject #960

Merged
merged 1 commit into from
Jul 30, 2022

Conversation

jakirkham
Copy link
Member

Fixes #959

If another object (like a cupy.ndarray) doesn't support __matmul__ with ProxyObject, Python will try to fallback to __rmatmul__. As __rmatmul__ was not defined before (and some cases like with CuPy now raise), this would raise. To fix, that this PR defines __rmatmul__ for ProxyObjects to provide for this fallback layer.

@jakirkham jakirkham requested a review from a team as a code owner July 29, 2022 21:08
@github-actions github-actions bot added the python python code needed label Jul 29, 2022
@codecov-commenter
Copy link

codecov-commenter commented Jul 29, 2022

Codecov Report

Merging #960 (63977fa) into branch-22.08 (16a5a1b) will not change coverage.
The diff coverage is 0.00%.

@@             Coverage Diff              @@
##           branch-22.08    #960   +/-   ##
============================================
  Coverage          0.00%   0.00%           
============================================
  Files                16      16           
  Lines              2106    2108    +2     
============================================
- Misses             2106    2108    +2     
Impacted Files Coverage Δ
dask_cuda/proxy_object.py 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 16a5a1b...63977fa. Read the comment docs.

@jakirkham jakirkham added bug Something isn't working non-breaking Non-breaking change labels Jul 29, 2022
@pentschev
Copy link
Member

LGTM, thanks @jakirkham for working on this.

cc @madsbk for awareness.

@pentschev
Copy link
Member

@gpucibot merge

@rapids-bot rapids-bot bot merged commit 283a087 into rapidsai:branch-22.08 Jul 30, 2022
@jakirkham jakirkham deleted the add_rmul_proxyobj branch July 30, 2022 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working non-breaking Non-breaking change python python code needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

@ operator fails with ProxyObject in CuPy 11.0.0
3 participants