Spec-Zone.ru › TensorFlow

tf.keras.ops.nan_to_num

Replace NaN with zero and infinity with large finite numbers.

View aliases

Main aliases

tf.keras.ops.numpy.nan_to_num

tf.keras.ops.nan_to_num(
    x, nan=0.0, posinf=None, neginf=None
)
Args
x Input data.
nan Optional float or int. Value to replace NaN entries with.
posinf Optional float or int. Value to replace positive infinity with.
neginf Optional float or int. Value to replace negative infinity with.
Returns
x, with non-finite values replaced.

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

Spec-Zone.ru

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