tf.square(x, name=None)###
Computes square of x element-wise.
對x內的所有元素進行平方操作
I.e., (y = x * x = x^2).
即 (y = x * x = x^2)。
Args:
x: A Tensor or SparseTensor. Must be one of the following types: half, float32, float64, int32, int64, complex64, complex128.
name: A name for the operation (optional).
參數:
x: 一個張量或者是稀疏張量。必須是下列類型之一:half, float32, float64, int32, int64, complex64, complex128.
name: 操作的名字 (可選參數).
Returns:
一個張量或者是稀疏張量。有著跟x相同的類型。