WSL2 安装 Tensorflow 假设我们要安装新版的TensorFlow,但自从2.10版本后就不再支持Windows端的GPU加速了,所以最好的解决办法是使用WSL2。 目标:在WSL2上安装TensorFlow 2.19.0 并配置GPU加速 安装 WSL2 这个很简单 2025-03-19 折腾
检测 TensorFlow 是否调用 GPU import tensorflow as tf if tf.config.list_physical_devices("GPU"): print("TensorFlow is using the GPU") else: print("TensorFlow is using the 2025-03-19 Python