阅读(4104) (0)

TensorFlow函数:tf.sqrt

2018-03-16 09:59:04 更新

tf.sqrt函数

sqrt(
    x,
    name=None
)

定义在:tensorflow/python/ops/math_ops.py.

请参阅指南:数学函数>基本数学函数

计算x元素的平方根.

即,\(y = \sqrt{x} = x^{1/2}\).

函数参数:

  • x:一个 Tensor 或 SparseTensor,必须是下列类型之一:half,float32,float64,complex64,complex128.
  • name:操作的名称(可选).

函数返回值:

tf.sqrt函数返回 Tensor 或者 SparseTensor,与 x 具有相同的类型相同.