Skip to content

Make one of the devices have a lower maximum float precision #64

@betatim

Description

@betatim
Member

As a follow up to #56: it would be useful to make one of the "devices" have a lower maximum float precision than the rest. To mirror what, for example, PyTorch's MPS device does (this is the "Apple silicon" GPU in modern MacBooks).

I think having a "lower maximum precision" device would be the last piece we'd need in scikit-learn to be able to find all "user errors" when writing array API code. This way people writing array API code don't need to have a GPU available to find and debug the errors you get when using a device that isn't a CPU.

What do people think?

cc @ogrisel

Activity

asmeurer

asmeurer commented on Oct 3, 2024

@asmeurer
Member

My thinking is that the default set of devices should cover the important use-cases (including this), but you should also be able to manually set what devices are active using the flags API.

asmeurer

asmeurer commented on Oct 3, 2024

@asmeurer
Member

This is related to #38

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @asmeurer@betatim

        Issue actions

          Make one of the devices have a lower maximum float precision · Issue #64 · data-apis/array-api-strict