Skip to content

RFC: clarify if __array_namespace_info().default_device() can be None #923

Description

@ev-br

The spec only says it returns an object corresponding to the default device. ( https://data-apis.org/array-api/latest/API_specification/generated/array_api.info.default_device.html#array_api.info.default_device)

jax.numpy returns None, so the question is whether None corresponds to the default device or not.

In [5]: import jax.numpy as jnp

In [6]: jnp.__array_namespace_info__().default_device() is None
Out[6]: True

Activity

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

    RFCRequest for comments. Feature requests and proposed changes.topic: Device HandlingDevice handling.topic: InspectionArray API inspection.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions