官术网_书友最值得收藏!

  • Mastering TensorFlow 1.x
  • Armando Fandango
  • 94字
  • 2021-06-25 22:50:57

Soft placement

When you place a TensorFlow operation on the GPU, the TF must have the GPU implementation of that operation, known as the kernel. If the kernel is not present then the placement results in run-time error. Also if the GPU device you requested does not exist, you will get a run-time error. The best way to handle such errors is to allow the operation to be placed on the CPU if requesting the GPU device results in n error. This can be achieved by setting the following config value:

config.allow_soft_placement = True
主站蜘蛛池模板: 宁强县| 东辽县| 江孜县| 紫阳县| 阆中市| 三台县| 华亭县| 石阡县| 抚州市| 兰州市| 鄂州市| 洪泽县| 高台县| 朝阳区| 绥棱县| 行唐县| 彭泽县| 达拉特旗| 库车县| 乡宁县| 搜索| 洞口县| 南皮县| 资兴市| 舞阳县| 尤溪县| 灵武市| 镇康县| 石泉县| 天台县| 光山县| 湟源县| 威海市| 樟树市| 双柏县| 广州市| 榆树市| 射洪县| 米脂县| 新疆| 宁南县|