tf.math.rsqrt
| Просмотреть исходный код на GitHub |
Вычисляет обратную величину квадратного корня от x поэлементно.
tf.math.rsqrt(
x, name=None
)
Например:
x = tf.constant([2., 0., -2.]) tf.math.rsqrt(x) <tf.Tensor: shape=(3,), dtype=float32, numpy=array([0.707, inf, nan], dtype=float32)>
| Аргументы | |
|---|---|
x | A tf.Tensor. Должен быть одного из следующих типов: bfloat16, half, float32, float64. |
name | Имя операции (необязательно). |
| Возвращаемое значение | |
|---|---|
A tf.Tensor. Имеет тот же тип, что и x. |
© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.9/api_docs/python/tf/math/rsqrt