1. 官方配置
官网除了中文(包括简体和繁体)之外的才更新到了TensorFlow 2.18.0,中文版只更新到了2.6.0,所以要想看到下面的内容需要进入官网之后右上角将语言选择为English。
经过测试的构建配置
Linux
CPU
VersionPython versionCompilerBuild toolstensorflow-2.18.03.9-3.12Clang 17.0.6Bazel 6.5.0tensorflow-2.17.03.9-3.12Clang 17.0.6Bazel 6.5.0tensorflow-2.16.13.9-3.12Clang 17.0.6Bazel 6.5.0tensorflow-2.15.03.9-3.11Clang 16.0.0Bazel 6.1.0tensorflow-2.14.03.9-3.11Clang 16.0.0Bazel 6.1.0tensorflow-2.13.03.8-3.11Clang 16.0.0Bazel 5.3.0tensorflow-2.12.03.8-3.11GCC 9.3.1Bazel 5.3.0tensorflow-2.11.03.7-3.10GCC 9.3.1Bazel 5.3.0tensorflow-2.10.03.7-3.10GCC 9.3.1Bazel 5.1.1tensorflow-2.9.03.7-3.10GCC 9.3.1Bazel 5.0.0tensorflow-2.8.03.7-3.10GCC 7.3.1Bazel 4.2.1tensorflow-2.7.03.7-3.9GCC 7.3.1Bazel 3.7.2tensorflow-2.6.03.6-3.9GCC 7.3.1Bazel 3.7.2tensorflow-2.5.03.6-3.9GCC 7.3.1Bazel 3.7.2tensorflow-2.4.03.6-3.8GCC 7.3.1Bazel 3.1.0tensorflow-2.3.03.5-3.8GCC 7.3.1Bazel 3.1.0tensorflow-2.2.03.5-3.8GCC 7.3.1Bazel 2.0.0tensorflow-2.1.02.7, 3.5-3.7GCC 7.3.1Bazel 0.27.1tensorflow-2.0.02.7, 3.3-3.7GCC 7.3.1Bazel 0.26.1tensorflow-1.15.02.7, 3.3-3.7GCC 7.3.1Bazel 0.26.1tensorflow-1.14.02.7, 3.3-3.7GCC 4.8Bazel 0.24.1tensorflow-1.13.12.7, 3.3-3.7GCC 4.8Bazel 0.19.2tensorflow-1.12.02.7, 3.3-3.6GCC 4.8Bazel 0.15.0tensorflow-1.11.02.7, 3.3-3.6GCC 4.8Bazel 0.15.0tensorflow-1.10.02.7, 3.3-3.6GCC 4.8Bazel 0.15.0tensorflow-1.9.02.7, 3.3-3.6GCC 4.8Bazel 0.11.0tensorflow-1.8.02.7, 3.3-3.6GCC 4.8Bazel 0.10.0tensorflow-1.7.02.7, 3.3-3.6GCC 4.8Bazel 0.10.0tensorflow-1.6.02.7, 3.3-3.6GCC 4.8Bazel 0.9.0tensorflow-1.5.02.7, 3.3-3.6GCC 4.8Bazel 0.8.0tensorflow-1.4.02.7, 3.3-3.6GCC 4.8Bazel 0.5.4tensorflow-1.3.02.7, 3.3-3.6GCC 4.8Bazel 0.4.5tensorflow-1.2.02.7, 3.3-3.6GCC 4.8Bazel 0.4.5tensorflow-1.1.02.7, 3.3-3.6GCC 4.8Bazel 0.4.2tensorflow-1.0.02.7, 3.3-3.6GCC 4.8Bazel 0.4.2
GPU
VersionPython versionCompilerBuild toolscuDNNCUDAtensorflow-2.18.03.9-3.12Clang 17.0.6Bazel 6.5.09.312.5tensorflow-2.17.03.9-3.12Clang 17.0.6Bazel 6.5.08.912.3tensorflow-2.16.13.9-3.12Clang 17.0.6Bazel 6.5.08.912.3tensorflow-2.15.03.9-3.11Clang 16.0.0Bazel 6.1.08.912.2tensorflow-2.14.03.9-3.11Clang 16.0.0Bazel 6.1.08.711.8tensorflow-2.13.03.8-3.11Clang 16.0.0Bazel 5.3.08.611.8tensorflow-2.12.03.8-3.11GCC 9.3.1Bazel 5.3.08.611.8tensorflow-2.11.03.7-3.10GCC 9.3.1Bazel 5.3.08.111.2tensorflow-2.10.03.7-3.10GCC 9.3.1Bazel 5.1.18.111.2tensorflow-2.9.03.7-3.10GCC 9.3.1Bazel 5.0.08.111.2tensorflow-2.8.03.7-3.10GCC 7.3.1Bazel 4.2.18.111.2tensorflow-2.7.03.7-3.9GCC 7.3.1Bazel 3.7.28.111.2tensorflow-2.6.03.6-3.9GCC 7.3.1Bazel 3.7.28.111.2tensorflow-2.5.03.6-3.9GCC 7.3.1Bazel 3.7.28.111.2tensorflow-2.4.03.6-3.8GCC 7.3.1Bazel 3.1.08.011.0tensorflow-2.3.03.5-3.8GCC 7.3.1Bazel 3.1.07.610.1tensorflow-2.2.03.5-3.8GCC 7.3.1Bazel 2.0.07.610.1tensorflow-2.1.02.7, 3.5-3.7GCC 7.3.1Bazel 0.27.17.610.1tensorflow-2.0.02.7, 3.3-3.7GCC 7.3.1Bazel 0.26.17.410.0tensorflow_gpu-1.15.02.7, 3.3-3.7GCC 7.3.1Bazel 0.26.17.410.0tensorflow_gpu-1.14.02.7, 3.3-3.7GCC 4.8Bazel 0.24.17.410.0tensorflow_gpu-1.13.12.7, 3.3-3.7GCC 4.8Bazel 0.19.27.410.0tensorflow_gpu-1.12.02.7, 3.3-3.6GCC 4.8Bazel 0.15.079tensorflow_gpu-1.11.02.7, 3.3-3.6GCC 4.8Bazel 0.15.079tensorflow_gpu-1.10.02.7, 3.3-3.6GCC 4.8Bazel 0.15.079tensorflow_gpu-1.9.02.7, 3.3-3.6GCC 4.8Bazel 0.11.079tensorflow_gpu-1.8.02.7, 3.3-3.6GCC 4.8Bazel 0.10.079tensorflow_gpu-1.7.02.7, 3.3-3.6GCC 4.8Bazel 0.9.079tensorflow_gpu-1.6.02.7, 3.3-3.6GCC 4.8Bazel 0.9.079tensorflow_gpu-1.5.02.7, 3.3-3.6GCC 4.8Bazel 0.8.079tensorflow_gpu-1.4.02.7, 3.3-3.6GCC 4.8Bazel 0.5.468tensorflow_gpu-1.3.02.7, 3.3-3.6GCC 4.8Bazel 0.4.568tensorflow_gpu-1.2.02.7, 3.3-3.6GCC 4.8Bazel 0.4.55.18tensorflow_gpu-1.1.02.7, 3.3-3.6GCC 4.8Bazel 0.4.25.18tensorflow_gpu-1.0.02.7, 3.3-3.6GCC 4.8Bazel 0.4.25.18
macOS
CPU
VersionPython versionCompilerBuild toolstensorflow-2.16.13.9-3.12Clang from Xcode 13.6Bazel 6.5.0tensorflow-2.15.03.9-3.11Clang from xcode 10.15Bazel 6.1.0tensorflow-2.14.03.9-3.11Clang from xcode 10.15Bazel 6.1.0tensorflow-2.13.03.8-3.11Clang from xcode 10.15Bazel 5.3.0tensorflow-2.12.03.8-3.11Clang from xcode 10.15Bazel 5.3.0tensorflow-2.11.03.7-3.10Clang from xcode 10.14Bazel 5.3.0tensorflow-2.10.03.7-3.10Clang from xcode 10.14Bazel 5.1.1tensorflow-2.9.03.7-3.10Clang from xcode 10.14Bazel 5.0.0tensorflow-2.8.03.7-3.10Clang from xcode 10.14Bazel 4.2.1tensorflow-2.7.03.7-3.9Clang from xcode 10.11Bazel 3.7.2tensorflow-2.6.03.6-3.9Clang from xcode 10.11Bazel 3.7.2tensorflow-2.5.03.6-3.9Clang from xcode 10.11Bazel 3.7.2tensorflow-2.4.03.6-3.8Clang from xcode 10.3Bazel 3.1.0tensorflow-2.3.03.5-3.8Clang from xcode 10.1Bazel 3.1.0tensorflow-2.2.03.5-3.8Clang from xcode 10.1Bazel 2.0.0tensorflow-2.1.02.7, 3.5-3.7Clang from xcode 10.1Bazel 0.27.1tensorflow-2.0.02.7, 3.5-3.7Clang from xcode 10.1Bazel 0.27.1tensorflow-2.0.02.7, 3.3-3.7Clang from xcode 10.1Bazel 0.26.1tensorflow-1.15.02.7, 3.3-3.7Clang from xcode 10.1Bazel 0.26.1tensorflow-1.14.02.7, 3.3-3.7Clang from xcodeBazel 0.24.1tensorflow-1.13.12.7, 3.3-3.7Clang from xcodeBazel 0.19.2tensorflow-1.12.02.7, 3.3-3.6Clang from xcodeBazel 0.15.0tensorflow-1.11.02.7, 3.3-3.6Clang from xcodeBazel 0.15.0tensorflow-1.10.02.7, 3.3-3.6Clang from xcodeBazel 0.15.0tensorflow-1.9.02.7, 3.3-3.6Clang from xcodeBazel 0.11.0tensorflow-1.8.02.7, 3.3-3.6Clang from xcodeBazel 0.10.1tensorflow-1.7.02.7, 3.3-3.6Clang from xcodeBazel 0.10.1tensorflow-1.6.02.7, 3.3-3.6Clang from xcodeBazel 0.8.1tensorflow-1.5.02.7, 3.3-3.6Clang from xcodeBazel 0.8.1tensorflow-1.4.02.7, 3.3-3.6Clang from xcodeBazel 0.5.4tensorflow-1.3.02.7, 3.3-3.6Clang from xcodeBazel 0.4.5tensorflow-1.2.02.7, 3.3-3.6Clang from xcodeBazel 0.4.5tensorflow-1.1.02.7, 3.3-3.6Clang from xcodeBazel 0.4.2tensorflow-1.0.02.7, 3.3-3.6Clang from xcodeBazel 0.4.2
GPU
VersionPython versionCompilerBuild toolscuDNNCUDAtensorflow_gpu-1.1.02.7, 3.3-3.6Clang from xcodeBazel 0.4.25.18tensorflow_gpu-1.0.02.7, 3.3-3.6Clang from xcodeBazel 0.4.25.18
★注意:从 TF 2.11 开始,Windows平台不再支持 CUDA 构建。要在 Windows 上使用 TensorFlow GPU,您需要在 WSL2 中构建/安装 TensorFlow,或者使用 tensorflow-cpu 配合 TensorFlow-DirectML-Plugin。
经过测试的构建配置
Windows
CPU
VersionPython versionCompilerBuild toolstensorflow-2.18.03.9-3.12CLANG 17.0.6Bazel 6.5.0tensorflow-2.17.03.9-3.12CLANG 17.0.6Bazel 6.5.0tensorflow-2.16.13.9-3.12CLANG 17.0.6Bazel 6.5.0tensorflow-2.15.03.9-3.11MSVC 2019Bazel 6.1.0tensorflow-2.14.03.9-3.11MSVC 2019Bazel 6.1.0tensorflow-2.12.03.8-3.11MSVC 2019Bazel 5.3.0tensorflow-2.11.03.7-3.10MSVC 2019Bazel 5.3.0tensorflow-2.10.03.7-3.10MSVC 2019Bazel 5.1.1tensorflow-2.9.03.7-3.10MSVC 2019Bazel 5.0.0tensorflow-2.8.03.7-3.10MSVC 2019Bazel 4.2.1tensorflow-2.7.03.7-3.9MSVC 2019Bazel 3.7.2tensorflow-2.6.03.6-3.9MSVC 2019Bazel 3.7.2tensorflow-2.5.03.6-3.9MSVC 2019Bazel 3.7.2tensorflow-2.4.03.6-3.8MSVC 2019Bazel 3.1.0tensorflow-2.3.03.5-3.8MSVC 2019Bazel 3.1.0tensorflow-2.2.03.5-3.8MSVC 2019Bazel 2.0.0tensorflow-2.1.03.5-3.7MSVC 2019Bazel 0.27.1-0.29.1tensorflow-2.0.03.5-3.7MSVC 2017Bazel 0.26.1tensorflow-1.15.03.5-3.7MSVC 2017Bazel 0.26.1tensorflow-1.14.03.5-3.7MSVC 2017Bazel 0.24.1-0.25.2tensorflow-1.13.03.5-3.7MSVC 2015 update 3Bazel 0.19.0-0.21.0tensorflow-1.12.03.5-3.6MSVC 2015 update 3Bazel 0.15.0tensorflow-1.11.03.5-3.6MSVC 2015 update 3Bazel 0.15.0tensorflow-1.10.03.5-3.6MSVC 2015 update 3Cmake v3.6.3tensorflow-1.9.03.5-3.6MSVC 2015 update 3Cmake v3.6.3tensorflow-1.8.03.5-3.6MSVC 2015 update 3Cmake v3.6.3tensorflow-1.7.03.5-3.6MSVC 2015 update 3Cmake v3.6.3tensorflow-1.6.03.5-3.6MSVC 2015 update 3Cmake v3.6.3tensorflow-1.5.03.5-3.6MSVC 2015 update 3Cmake v3.6.3tensorflow-1.4.03.5-3.6MSVC 2015 update 3Cmake v3.6.3tensorflow-1.3.03.5-3.6MSVC 2015 update 3Cmake v3.6.3tensorflow-1.2.03.5-3.6MSVC 2015 update 3Cmake v3.6.3tensorflow-1.1.03.5MSVC 2015 update 3Cmake v3.6.3tensorflow-1.0.03.5MSVC 2015 update 3Cmake v3.6.3
GPU
★注意:原生 Windows 上的 GPU 支持仅适用于 2.10 或更早版本,从 TF 2.11 开始,Windows 不支持 CUDA 构建。要在 Windows 上使用 TensorFlow GPU,您需要在 WSL2 中构建/安装 TensorFlow,或者使用 tensorflow-cpu 配合 TensorFlow-DirectML-Plugin。
VersionPython versionCompilerBuild toolscuDNNCUDAtensorflow_gpu-2.10.03.7-3.10MSVC 2019Bazel 5.1.18.111.2tensorflow_gpu-2.9.03.7-3.10MSVC 2019Bazel 5.0.08.111.2tensorflow_gpu-2.8.03.7-3.10MSVC 2019Bazel 4.2.18.111.2tensorflow_gpu-2.7.03.7-3.9MSVC 2019Bazel 3.7.28.111.2tensorflow_gpu-2.6.03.6-3.9MSVC 2019Bazel 3.7.28.111.2tensorflow_gpu-2.5.03.6-3.9MSVC 2019Bazel 3.7.28.111.2tensorflow_gpu-2.4.03.6-3.8MSVC 2019Bazel 3.1.08.011.0tensorflow_gpu-2.3.03.5-3.8MSVC 2019Bazel 3.1.07.610.1tensorflow_gpu-2.2.03.5-3.8MSVC 2019Bazel 2.0.07.610.1tensorflow_gpu-2.1.03.5-3.7MSVC 2019Bazel 0.27.1-0.29.17.610.1tensorflow_gpu-2.0.03.5-3.7MSVC 2017Bazel 0.26.17.410tensorflow_gpu-1.15.03.5-3.7MSVC 2017Bazel 0.26.17.410tensorflow_gpu-1.14.03.5-3.7MSVC 2017Bazel 0.24.1-0.25.27.410tensorflow_gpu-1.13.03.5-3.7MSVC 2015 update 3Bazel 0.19.0-0.21.07.410tensorflow_gpu-1.12.03.5-3.6MSVC 2015 update 3Bazel 0.15.07.29.0tensorflow_gpu-1.11.03.5-3.6MSVC 2015 update 3Bazel 0.15.079tensorflow_gpu-1.10.03.5-3.6MSVC 2015 update 3Cmake v3.6.379tensorflow_gpu-1.9.03.5-3.6MSVC 2015 update 3Cmake v3.6.379tensorflow_gpu-1.8.03.5-3.6MSVC 2015 update 3Cmake v3.6.379tensorflow_gpu-1.7.03.5-3.6MSVC 2015 update 3Cmake v3.6.379tensorflow_gpu-1.6.03.5-3.6MSVC 2015 update 3Cmake v3.6.379tensorflow_gpu-1.5.03.5-3.6MSVC 2015 update 3Cmake v3.6.379tensorflow_gpu-1.4.03.5-3.6MSVC 2015 update 3Cmake v3.6.368tensorflow_gpu-1.3.03.5-3.6MSVC 2015 update 3Cmake v3.6.368tensorflow_gpu-1.2.03.5-3.6MSVC 2015 update 3Cmake v3.6.35.18tensorflow_gpu-1.1.03.5MSVC 2015 update 3Cmake v3.6.35.18tensorflow_gpu-1.0.03.5MSVC 2015 update 3Cmake v3.6.35.18
2. 第三方验证配置
2.1 官方TensorFlow
贴几个官网没有的配置表
VersionPython versionCompilerBuild toolscuDNNCUDAtensorflow-2.93.88.2.111.3.1tensorflow-gpu-2.0.03.77.6.5(亲测)10.0.130tensorflow-gpu==2.0.0-alpha07.5.110.0tensorflow_gpu-1.15.03.7.117.6.010.0.130tensorflow_gpu-1.15.03.7.127.6.5.3210.0.130
上面的小版本号个人认为可以忽略不计,可以理解为下表的示例内容,需要注意的是TF1.x已经停止更新故对新硬件(主要是RTX30系列之后的显卡)不支持,故需要使用Nvidia-TensorFlow代替官方版本。
VersionPython versionCompilerBuild toolscuDNNCUDAtensorflow_gpu-1.15.03.77.610.0
2.2 Nvidia-TensorFlow