TorchStudio / torchstudio

IDE for PyTorch and its ecosystem
https://torchstudio.ai
MIT License
383 stars 27 forks source link

RuntimeError: Device string must not be empty #8

Closed robmarkcole closed 2 years ago

robmarkcole commented 2 years ago

Following the getting started on Mac, on attempting to train the mnist model I get error:

    return _run_code(code, main_globals, None,
  File "/Users/robin/TorchStudio/python/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/Users/robin/TorchStudio/torchstudio/modeltrain.py", line 64, in <module>
    device = torch.device(device_id)
RuntimeError: Device string must not be empty

In settings > default training device I have none, but presumably this should be local or cpu, however I cannot select or enter anything?

robmarkcole commented 2 years ago

After a couple of restarts of the app, this option now appeared and training completes

image