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

Soft placement

If a TensorFlow operation is placed on the GPU, then the execution engine must have the GPU implementation of that operation, known as the kernel. If the kernel is not present, then the placement results in a runtime error. Also, if the requested GPU device does not exist, then a runtime error is raised. 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 an error. This can be achieved by setting the following config value:

config.allow_soft_placement = True
主站蜘蛛池模板: 瑞金市| 莆田市| 安远县| 襄汾县| 三原县| 高邮市| 郑州市| 凤凰县| 龙口市| 宁都县| 涡阳县| 阳泉市| 香港| 龙海市| 蓬莱市| 淮南市| 浙江省| 涿鹿县| 白河县| 蓝山县| 嘉荫县| 林周县| 广东省| 奇台县| 那坡县| 虹口区| 富源县| 远安县| 建昌县| 浦北县| 濉溪县| 昂仁县| 利川市| 隆德县| 宿州市| 始兴县| 布拖县| 亚东县| 连城县| 荆门市| 枣庄市|