#   设置相关底层配置
physical_devices = tf.config.experimental.list_physical_devices('GPU')
assert len(physical_devices) > 0, "Not enough GPU hardware devices available"
tf.config.experimental.set_memory_growth(physical_devices[0], True)

不设置会导致卷积相关代码无法运行

相关文章:

  • 2021-05-28
  • 2021-10-26
  • 2021-09-28
  • 2021-11-06
  • 2022-02-07
  • 2021-12-17
  • 2022-01-08
猜你喜欢
  • 2021-08-24
  • 2022-12-23
  • 2022-12-23
  • 2021-12-11
  • 2021-06-23
  • 2021-12-04
  • 2021-03-30
相关资源
相似解决方案