我已经成功安装了 tensorflowpip install tensorflow并且一切都按预期工作。
我也可以成功安装 tensorflow-gpupip install tensorflow-gpu但我无法在我的 python 脚本中导入它:
import tensorflow-gpu
File "<stdin>", line 1
import tensorflow-gpu
^
SyntaxError: invalid syntax
Run Code Online (Sandbox Code Playgroud)
我已经安装了 CUDA v9.0 并运行了 Windows 10