Spec-Zone.ru › TensorFlow

tf.compat.v1.math.rsqrt

Вычисляет обратную величину квадратного корня от x поэлементно.

tf.compat.v1.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/api_docs/python/tf/compat/v1/math/rsqrt

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API