Skip to content

dpctl.tensor.asarray incorrect dtype #948

Closed

Description

@npolina4
import dpctl.tensor as dpt
import numpy as np

a = np.ndarray(1, dtype=np.uint64)
b = dpt.asarray(a)
print('a.dtype =', a.dtype, '\nb.dtype =', b.dtype)

output:

a.dtype = uint64
b.dtype = int64

Activity

  1. oleksandr-pavlyk commented on Oct 25, 2022

    @oleksandr-pavlyk
    Contributor

    Fixed by #949

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions