Skip to content

ValueError when trying to access an array with zero value in one of shape values #870

Closed
@npolina4

Description

@npolina4

Reproducer:

In [1]: import dpctl, dpctl.tensor as dpt
In [2]: X = dpt.empty((0,4))
In [3]: X[:, 1:3]

Output:

ValueError: Buffer can not accomodate the requested array

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