打开命令界面或者pycharm中输入:

python
import tensorflow as tf
sess = tf.Session(config=tf.ConfigProto(log_device_placement=True))

检测自己tensorflow版本是使用CPU还是GPU

这里可以看到是cpu支持所以是cpu,如果显示gpu那就是gpu的

相关文章:

  • 2021-08-30
  • 2021-11-26
  • 2021-11-12
  • 2021-08-13
  • 2022-01-12
  • 2021-08-25
  • 2022-12-23
  • 2021-12-26
猜你喜欢
  • 2021-04-02
  • 2021-12-08
  • 2022-01-01
  • 2021-10-18
  • 2021-07-08
  • 2022-12-23
相关资源
相似解决方案