Tensor对象中的“Const:0”是什么

时间:2017-07-04 13:04:27

标签: python tensorflow

在python环境中,我跟随"Getting Started With TensorFlow"

>>> tf.constant(3.0, dtype=tf.float32)
# Tensor("Const:0", shape=(), dtype=float32)
>>> tf.constant(4.0) # also tf.float32 implicitly
# Tensor("Const_1:0", shape=(), dtype=float32)

我想知道":0"的意义和目的是什么,因为这些节点的可视化将只是"Const""Const_1"":1"是否有tf.constant()

我在源tensorflow/python/framework/constant_op.py中搜索过,但似乎没有我的答案。

编辑上的重复问题 How does TensorFlow name tensors?

我不喜欢tf.Variable和忘记常数也是一个变量的例子。

0 个答案:

没有答案
相关问题