Skip to content

Wrong element copy for 2D array #1503

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
npolina4 opened this issue Jan 24, 2024 · 0 comments · Fixed by #1504
Closed

Wrong element copy for 2D array #1503

npolina4 opened this issue Jan 24, 2024 · 0 comments · Fixed by #1504
Assignees
Labels
bug Something isn't working

Comments

@npolina4
Copy link
Contributor

import dpctl.tensor as dpt

x = dpt.asarray([[1, 2, 3], [6, 7, 8]])
y = dpt.asarray([4, 5])

y[1]
#out: usm_ndarray(5, dtype=int32)

x[0] = y[1]

x
#out: usm_ndarray([[4, 4, 4], [6, 7, 8]], dtype=int32)
#expected: usm_ndarray([[5, 5, 5], [6, 7, 8]], dtype=int32)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants