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

dpnp.tensordot returns wrong result #2270

Open
antonwolfy opened this issue Jan 21, 2025 · 0 comments
Open

dpnp.tensordot returns wrong result #2270

antonwolfy opened this issue Jan 21, 2025 · 0 comments
Assignees

Comments

@antonwolfy
Copy link
Contributor

The below example returns different result comparing to NumPy:

import dpnp, numpy

dpnp.__version__
# Out: '0.17.0dev4+9.g13816bdc7a3.dirty'

numpy.__version__
# Out: '1.26.4'

x1 = dpnp.array([[[94906267, 94906267], [94906267, 94906267]]], device='cpu')
x2 = dpnp.array([94906265, 94906265], device='cpu')
dpnp.tensordot(x1, x2, axes=((1,), (0,)))
# Out: array([[18014398652125512, 18014398652125512]])

x1 = x1.asnumpy()
x2 = x2.asnumpy()
numpy.tensordot(x1, x2, axes=((1,), (0,)))
# Out: array([[18014398652125510, 18014398652125510]])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants