Skip to content

dpctl.tensot.full() RuntimeError: Unable to cast Python instance to C++ type #1230

Closed
@npolina4

Description

@npolina4

Wrong result type return on Windows for case:

import numpy as np
import dpctl.tensor as dpt

a_np = np.full(3, 429)
a.dtype
#int32

a = dpt.full(3, 429)
a.dtype
#int32

b_np = np.full(3, 4294967295)
b.dtype
#int64

b = dpt.full(3, 4294967295)
RuntimeError: Unable to cast Python instance to C++ type

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