Skip to content

Failed to build TypeError exception #998

Closed
@antonwolfy

Description

@antonwolfy

The example code should cause TypeError exception in dpctl:

import numpy
import dpctl.tensor as dpt
obj = dpt.empty((6,), dtype=numpy.object_)

but it failed to build the exception due to bellow error:

File dpctl/tensor/_usmarray.pyx:193, in dpctl.tensor._usmarray.usm_ndarray.__cinit__()

TypeError: can only concatenate str (not "numpy.dtype[object_]") to str

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