我想使用 mps,但我的电脑无法使用。 我认为问题出在 macOS 版本上。我不知道为什么我的版本是10.16。
我安装了anaconda,版本是conda 23.3.1
Python 3.10.11 (main, Apr 20 2023, 13:59:00) [Clang 14.0.6 ] on darwin
Python 3.10.11 (main, Apr 20 2023, 13:59:00) [Clang 14.0.6 ] on darwin
Type "help",
"copyright"
"credits"
>›> import platform
"license" for more information.
>>> platform.platform()
'macOS- 10. 16-×86_64-i386-64bit'
>>> import torch
>>> torch.backends.mps.is_built()
True
>>> torch.backends.mps.is_available()
False
这是我的 MAC 信息屏幕截图。
最佳答案
如 the documentation 中所述,Metal PyTorch 后端仅适用于 Apple Silicon 或 AMD GPU。 OP(Intel Iris)中显示的系统不满足该要求。
关于macos - torch.backends.mps.is_available() 为 False。我怎样才能改变它?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/76302898/