Skip to content

Leakpro-wide device and mps support #389

@henrikfo

Description

@henrikfo

Feature

Desired Behavior / Functionality

Add support for mps, the cuda equivalent for mac
Instead of restating ' "cuda:0" if torch.cuda.is_available() else "cpu" ' lets have a import called device, from ... import device which in its definition handles coda/cpu/mps

What Needs to Be Done

Create device import.
Replace all statically set devices with this

How Can It Be Tested

A test should include creating a tensor, on the cpu, importing the device module and moving the tensor to the device then checking the device again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpriority - 4Medium low priority. Great if it is fixed.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions