Basic Usage
https://www.tensorflow.org/versions/r0.12/get_started/basic_usage.html
To use TensorFlow you need to understand how TensorFlow:
- Represents computations as graphs.//将运算模型视为图
- Executes graphs in the context of
Sessions
. 在回话中运行模型,先初始化 - Represents data as tensors. 将数据作为tensor
- Maintains state with
Variables
. 用Variables描述运算状态 - Uses feeds and fetches to get data into and out of arbitrary operations. 应用feed 和fetch在任意操作中获取或输入数据
Overview
TensorFlow is a programming system in which you represent computations as graphs. Nodes in the graph are called ops (short for operations).模型图中的结点node视为一个运算操作
A TensorFlow graph is a description of computations. To compute anything, a graph must be launched in a
Session
. ASession
places the graph ops ontoDevices
, such as CPUs or GPUs, and provides methods to execut