Skip to content

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

Closed
@ndgrigorian

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
()

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