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

  • 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
主站蜘蛛池模板: 贵港市| 浦东新区| 陕西省| 尼玛县| 舞钢市| 延边| 四川省| 灌云县| 比如县| 抚顺县| 乐都县| 文登市| 西乡县| 竹山县| 普宁市| 古蔺县| 南投市| 开阳县| 高安市| 成都市| 广南县| 南木林县| 共和县| 台湾省| 江山市| 卓资县| 大埔区| 阜城县| 锡林浩特市| 永城市| 平度市| 石台县| 北海市| 县级市| 巴中市| 南溪县| 湘潭县| 巢湖市| 灯塔市| 吉木萨尔县| 安宁市|