Skip to content

xp.reshape should not accept int #152

Closed
@crusaderky

Description

@crusaderky
>>> import array_api_strict as xp
>>> xp.reshape(xp.asarray([1,2]), -1)
Array([1, 2], dtype=array_api_strict.int64)

however, the Array API states that shape must be strictly a tuple.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions