如果你是用的GPU版本的Tensorflow,你可以这样来使用CPU版本的Tensorlfow:

config = tf.ConfigProto(
        device_count = {'GPU': 0}
    )
sess = tf.Session(config=config)

 

相关文章:

  • 2022-02-21
  • 2021-12-19
  • 2022-12-23
  • 2021-12-18
  • 2021-09-09
  • 2021-09-07
  • 2021-07-04
猜你喜欢
  • 2021-11-03
  • 2021-12-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-21
  • 2021-11-21
相关资源
相似解决方案