Skip to content

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

Closed

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

Activity

  1. oleksandr-pavlyk commented on Jul 28, 2022

    @oleksandr-pavlyk
    Contributor

    Also similar error for X[:, 1].

  2. changed the title [-]ValueError when trying to access an array with zero value one of shape values[/-] [+]ValueError when trying to access an array with zero value in one of shape values[/+] on Jul 28, 2022
  3. added 2 commits that reference this issue on Jul 28, 2022
    c6802c3
    1f78b29
  4. added 3 commits that reference this issue on Sep 8, 2022
    940edd9
    ca34263
    cb67e6e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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