markdown tensorflow基础知识

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown tensorflow基础知识相关的知识,希望对你有一定的参考价值。

### sess = tf.Session(config=tf.ConfigProto(allow_soft_placement=True,log_device_placement=True), graph=None, target='')

## 1. allow_soft_placement
This option allows resilient device assignment, but it only works when your tensorflow is not GPU compiled. If your tensorflow is GPU supported the operations always perform on GPU no matter if allow_soft_placement is set or not and even if you set device as CPU. But if you set it as false and device as GPU but GPU cannot be found in your machine it raises error.

## 2. log_device_placement
This config tells you which device the operation is allocated while building the graph. It can always find the prioritized device with best performance on you machine. It seems just to ignore your settings.

## 3. tf.graph
A Graph contains a set of tf.Operation objects, which represent units of computation; and tf.Tensor objects, which represent the units of data that flow between operations.


## 4. Source:[https://jacobbuckman.com/post/tensorflow-the-confusing-parts-1/]
    Things learnt: Graphs, Session, initializer, constant, placeholders,  feeddict, variables, 
    

以上是关于markdown tensorflow基础知识的主要内容,如果未能解决你的问题,请参考以下文章

markdown TensorFlow.js

markdown tensorflow使い方

markdown Tensorflow学习笔记

markdown Ubuntu16.04 + 1080下配置Tensorflow

markdown Jetson Tx2的tensorflow-gpu安装

markdown Ubuntu 14.04 LTS安装卸载Docker和Tensorflow