deep_learning_Function_tf.identity()

这两天看batch normalization的代码时,学到滑动平均窗口函数ExponentialMovingAverage时,碰到一个函数tf.identity()函数,特此记录。

tf.identity()函数用于返回一个和input一样的新的tensor。

tf.identity(
    input,
    name=None
)
#Return a tensor with the same shape and contents as input.
#返回一个tensor,contents和shape都和input的一样
1
2
3
4
5
6
简单来说,就是返回一个和input一样的新的tensor。
————————————————
原文链接:https://blog.csdn.net/TeFuirnever/article/details/88908870

原文地址:https://www.cnblogs.com/0405mxh/p/11655278.html