Skip to content

Can you change use_cuda=False to device so we can select cuda, mps, or cpu? #2082

@jolespin

Description

@jolespin

Please describe your wishes and possible alternatives to achieve the desired result.

Looking forward to using anndata for more of my projects. Right now I'm testing a lot of my lighter weight pytorch models on apple silicon and use mps backend. Would it be possible for future versions to use device="auto" or similar to specify devices? If you have an auto feature the order could be something like cuda > mps > cpu or something.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions