Skip to content

DPNP is missing aliases for numpy dtypes #1307

@samaid

Description

@samaid

I do not want to import numpy to use dpnp. My expectation is that my numpy script will work out of the box with import statement change to

import dpnp as np

DPNP is lacking numpy dtype aliases which leads to errors like this:
z = np.empty(c.shape, np.csingle) # 2d array too AttributeError: module 'dpnp' has no attribute 'csingle'

Metadata

Metadata

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