Currently, the Variable.name property displays the name of the variable Tensor in which this variable is stored (mainly because a Variable can be used wherever Tensor is expected). The tensor names are generated from the name of the operation that produces them (a Variable op in this case) and the output index to which this tensor corresponds.
You can freely use tf.scalar_summary(x.name, x) instead of tf.scalar_summary(x.op.name, x) , but the resulting visualizations will contain the excess ":<N>" in the tags.
source share