keras有cpu和gpu版本的区别 安装tensorflow-gpu版本后,用pip install keras,keras才会默认使用安好的tensorflow-gpu为自己的底层实现。 不要使用conda install keras,用conda安装会默认安装tensorflow的cpu版本,这样就得卸载重新安装了。