Skip to content

dpt.from_dlpack changes content of usm_ndarray #2213

@antonwolfy

Description

@antonwolfy

The below example starts failing with dpctl tag 0.22.0dev0:

import dpctl, dpctl.tensor as dpt, numpy

a = numpy.random.rand(2, 3)
a = dpt.asarray(a)
print(a)
# [[0.66666038 0.50056011 0.3727621 ]
#  [0.16362552 0.91708784 0.25175926]]

b = dpt.from_dlpack(a)
print(b)
# [[0.66666038 0.3727621  0.91708784]
#  [0.50056011 0.16362552 0.25175926]]

Metadata

Metadata

Assignees

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