8000 A protocol for tensordot · Issue #11128 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

A protocol for tensordot #11128

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

Closed
mrocklin opened this issue May 21, 2018 · 1 comment
Closed

A protocol for tensordot #11128

mrocklin opened this issue May 21, 2018 · 1 comment

Comments

@mrocklin
Copy link
Contributor
mrocklin commented May 21, 2018

Following on #11074 I would like to see operations like np.tensordot develop a protocol that could be implemented by duck-array libraries like dask, cupy, or sparse

In [1]: import numpy as np

In [2]: import dask.array as da

In [3]: x = da.ones((5, 5), chunks=(2, 2))

In [4]: np.tensordot(x, x)  # I would like for this to be a dask.array
Out[4]: array(25.)
@mrocklin mrocklin changed the title tensordot protocol A protocol for tensordot May 21, 2018
@seberg
Copy link
Member
seberg commented Jan 2, 2023

I guess __array_function__ is that protocol, closing.

@seberg seberg closed this as completed Jan 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants
0