Skip to content

Wrong element copy for 2D array #1503

Closed

Description

@npolina4
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)

Activity

  1. added 2 commits that reference this issue on Jan 24, 2024
    5cf7cd8
    5cd7ba2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions