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

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.

主站蜘蛛池模板: 剑阁县| 云和县| 会同县| 怀远县| 东安县| 青神县| 梁平县| 西昌市| 安西县| 黄冈市| 贺州市| 惠州市| 虎林市| 景谷| 神木县| 百色市| 宝山区| 吴堡县| 梅州市| 闸北区| 广元市| 辽宁省| 深泽县| 凯里市| 团风县| 晋州市| 贵溪市| 柳林县| 濮阳市| 久治县| 牙克石市| 富平县| 黄浦区| 平凉市| 临桂县| 阳曲县| 明光市| 太康县| 盈江县| 凉城县| 那曲县|