Skip to content

tile does not handle empty repetitions and scalar input as per array API #1627

Closed

Description

@ndgrigorian

When tile is called on a scalar array with empty repetitions, it returns a 1D array instead of 0D (scalar)

>>> import dpctl,dpctl.tensor as dpt, numpy as np
>>> dpt.tile(dpt.asarray(5), ()).shape
(1,)
 
>>> np.tile(np.array(5), ()).shape
()

Activity

  1. self-assigned this
    on Apr 1, 2024
  2. changed the title [-]`tile` does not handle empty repetitions and scalar input properly[/-] [+]`tile` does not handle empty repetitions and scalar input as per array API[/+] on Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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