Mac M1 gpu not detected
I have a gpu on my pc, but it does not show up when I use,import torch
print([torch.cuda.device(i) for i in range(torch.cuda.device_count())])is there a further setting required to use the gputhese are some further details regarding the gpu on my pcChipset Model:	Apple M1
  Type:	GPU
  Bus:	Built-In
  Total Number of Cores:	8
2022-12-06T13:28:31Z
The GPU on Mac is not Nvidia’s kind. It is M1 GPU designed by Apple.You need to first set the device tomps.See this for more details on installation and usage:Running PyTorch on the M1 GPUtype or paste code here
2022-12-06T13:47:55Z
thanks for the info, it now detects the gpu,conda install pytorch -c pytorch-nightlyimport torch
if torch.backends.mps.is_available():
    mps_device = torch.device("mps")
    x = torch.ones(1, device=mps_device)
    print(x)
else:
    print ("MPS device not found.")which outputs,UserWarning: The operator 'aten::nonzero' is not currently supported on the MPS backend and will fall back to run on the CPU. This may have performance implications. 
tensor([1.], device='mps:0')
2022-12-06T14:53:23Z
vainaixr:The operator 'aten::nonzero' is not currently supported on the MPS backend and will fall back to run on the CPU. This may have performance implications. 
tensor([1.], device='mps:0'This is aUserWarning. You can ignore it for not. Most likely, some bug in the currentnightlyversion. Don’t worry about it.
2023-01-03T05:11:52Z
I have the same issue with current stable version. Moreover, it seems that all computations are going to be on CPU.