在某些地方,我看到了语法,其中变量用名称初始化,有时没有名称.例如:
# With name
var = tf.Variable(0, name="counter")
# Without
one = tf.constant(1)
Run Code Online (Sandbox Code Playgroud)
命名变量有var "counter"什么意义?
在numpy中,我可以使用numpy.copy创建变量的副本.是否有类似的方法,我可以用来在TensorFlow中创建Tensor的副本?