Spec-Zone.ru › TensorFlow

tf.compat.v1.math.multiply_no_nan

Вычисляет произведение x и y и возвращает 0, если y равен нулю, даже если x — NaN или бесконечность.

tf.compat.v1.math.multiply_no_nan(
    x, y, name=None
)

Обратите внимание, что эта операция некоммутативна: если y — NaN или бесконечность, а x равен 0, результатом будет NaN.

Аргументы
x A Tensor. Must be one of the following types: float32, float64.
y A Tensor whose dtype is compatible with x.
name A name for the operation (optional).
Возвращает
Поэлементное значение произведения x и y.

© 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/multiply_no_nan

Spec-Zone.ru

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