identity

dragon.vm.tensorflow.identity(
  input,
  name=None
)[source]

Return a tensor copied from the input.

Examples:

# Copy ``x`` to ``y``
x = tf.zeros(shape=(2, 3))
y = tf.identity(x)

# ``x`` != ``y``
x += 1
print(x)
print(y)
Parameters:
  • input (dragon.Tensor) – The input tensor.
  • name (str, optional) – The operation name.
Returns:

dragon.Tensor – The output tensor.