名称在计算图图像中的使用(TensorBoard)

Name use in computational graph image (TensorBoard)

我是 tensorflow 的菜鸟,我开始研究“Getting Started With TensorFlow”教程。 在本教程中有一个图形图像。在此图像中,我没有找到有关范围和等级节点的解释。我觉得这两个节点用于查找范围(0 和 N-1)和总和的数据排名:

对吗?

Graph中有这样一个节点的时候用doc好不好:

https://www.tensorflow.org/api_docs/python/tf/range

https://www.tensorflow.org/api_docs/python/tf/rank

你说的对,图片上的rangeRank对应的是tf.range and tf.rank ops in tensorflow. They come not from the squares themselves (you can see the Square op below), but from tf.reduce_sum:

loss = tf.reduce_sum(tf.square(linear_model - y)) # sum of the squares

如果你查看tensorflow/python/ops/math_ops.py中的源代码,你可以在_ReductionDims函数中清楚地看到它们,该函数被tf.reduce_sum内部使用。