Wave-U-Net-Pytorch icon indicating copy to clipboard operation
Wave-U-Net-Pytorch copied to clipboard

Support for Apple Metal (MPS) backend

Open Archie3d opened this issue 2 years ago • 1 comments

Please add support for the MPS backend as you do for cuda:

if torch.backends.mps.is_available():
    mps = torch.device("mps")
    model = model_utils.DataParallel(model)
    model.to(mps)

# ... and so on...
x = x.to(mps)

Archie3d avatar Jan 19 '23 11:01 Archie3d

Has anyone looked into implementing MPS for this yet?

reinerterig avatar Aug 27 '23 11:08 reinerterig