在我们安装好tensorflow之后,经常会想到是否安装好了,能否用gpu。这时候可以使用如下命令:

前提:已经进入到了自己的conda环境中

1、python

2、import tensorflow as tf

3、tf.test.is_gpu_available()

最终的结果:

tensorflow检测

 

 

相关文章:

  • 2022-01-09
  • 2021-12-05
  • 2021-11-23
  • 2022-01-30
  • 2021-11-18
  • 2021-04-16
  • 2021-08-17
猜你喜欢
  • 2022-12-23
  • 2021-07-02
  • 2022-12-23
  • 2021-07-29
  • 2021-12-04
  • 2021-11-18
  • 2021-12-09
相关资源
相似解决方案