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

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.

主站蜘蛛池模板: 托克逊县| 偏关县| 阿荣旗| 巴彦县| 桐庐县| 龙江县| 阿克苏市| 滨州市| 翁牛特旗| 杭锦旗| 哈密市| 周至县| 道孚县| 宁陵县| 阳信县| 台安县| 尼勒克县| 定安县| 四平市| 抚州市| 灵川县| 双辽市| 西丰县| 甘肃省| 县级市| 五常市| 利川市| 乌恰县| 红桥区| 柞水县| 垣曲县| 鹿邑县| 永康市| 常德市| 饶河县| 玉山县| 丹寨县| 嘉兴市| 胶州市| 外汇| 桐乡市|