跳到主要内容

mac使用GPU的一些问题

  1. 安装conda
  2. 下载环境
conda install -c apple tensorflow-deps
  1. 安装tensorflow-gpu版本
pip install tensorflow-macos
pip install tensorflow-metal
备注

注意,一定要严格符合下表格版本,否则会出问题。

tensorflow-macostensorflow-metalmacOS version
v2.50.1.212.0+
v2.60.2.012.0+
v2.70.3.012.0+
v2.80.4.012.0+
v2.90.5.012.1+