tf.keras.ops.rsqrt
Вычисляет обратное значение квадратного корня от x поэлементно.
tf.keras.ops.rsqrt(
x
)
| Аргументы | |
|---|---|
x | входной тензор |
| Возвращаемое значение | |
|---|---|
Тензор с тем же типом данных, что и x. |
Пример:
x = keras.ops.convert_to_tensor([1.0, 10.0, 100.0]) keras.ops.rsqrt(x) array([1.0, 0.31622776, 0.1], dtype=float32)
© 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/api_docs/python/tf/keras/ops/rsqrt