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

Computation graph

Everything in TensorFlow will be represented as a computational graph that consists of nodes and edges, where nodes are the mathematical operations, say addition, multiplication and so on, and edges are the tensors. Having a computational graph is very efficient in optimizing resources and it also promotes distributed computing.

Say we have node B, whose input is dependent on the output of node A; this type of dependency is called direct dependency.

For example:

A = tf.multiply(8,5)
B = tf.multiply(A,1)

When node B doesn't depend on node A for its input it is called indirect dependency.

For example:

A = tf.multiply(8,5)
B = tf.multiply(4,3)

So if we can understand these dependencies, we can distribute the independent computations in the available resources and reduce the computation time. 

Whenever we import TensorFlow, a default graph will be created automatically and all nodes we create will get associated with the default graph.

主站蜘蛛池模板: 庆元县| 文山县| 陆良县| 慈溪市| 长治县| 开原市| 白水县| 永仁县| 长治市| 迁安市| 衡山县| 乌鲁木齐市| 洛川县| 宁晋县| 璧山县| 永清县| 枝江市| 石林| 会泽县| 班戈县| 富阳市| 潜江市| 宁南县| 绥江县| 手游| 温州市| 昌乐县| 泗水县| 三明市| 晴隆县| 东兰县| 当阳市| 基隆市| 子洲县| 辰溪县| 阜阳市| 庐江县| 玉龙| 建始县| 大宁县| 华阴市|