照例,感谢:https://tensorflow.google.cn/api_docs/python/tf/math/square
tf.math.square(
x,
name=None
)
功能:计算元素x的平方
Args:
x
: ATensor
orSparseTensor
. Must be one of the following types:half
,float32
,float64
,int32
,int64
,complex64
,complex128
.name
: A name for the operation (optional).