在看C3D代码的时候,看见有一段代码是

config = tf.ConfigProto()#主要是配置tf.Session的运行方式,GPU还是CPU,在这里选择的是GPU的运行方式
config.gpu_options.allow_growth = True
 tf.ConfigProto()的主要用法就是配置tf.Session的运行方式,后一句指定的其为GPU的运行方式

相关文章:

  • 2022-12-23
  • 2021-07-28
  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
  • 2021-04-04
  • 2021-09-03
  • 2021-09-27
猜你喜欢
  • 2021-05-18
  • 2022-12-23
  • 2022-12-23
  • 2022-01-17
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案