Skip to content

Unhelpful error message when calling asnumpy with non-usm_array type #1457

Description

@Hardcode84
 File "C:\Users\Vano\miniconda3\envs\dpcomp-env-intel\lib\site-packages\dpctl\tensor\_copy_utils.py", line 183, in asnumpy
return _copy_to_numpy(usm_ary)
File "C:\Users\Vano\miniconda3\envs\dpcomp-env-intel\lib\site-packages\dpctl\tensor\_copy_utils.py", line 40, in _copy_to_numpy
raise TypeError
TypeError

https://github.com/IntelPython/dpctl/blob/master/dpctl/tensor/_copy_utils.py#L40

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