tf.keras.ops.erf
Вычисляет функцию ошибки x по элементам.
tf.keras.ops.erf(
x
)
| Аргументы | |
|---|---|
x | Входной тензор. |
| Возвращаемое значение | |
|---|---|
Тензор с тем же типом данных, что и x. |
Пример:
x = np.array([-3.0, -2.0, -1.0, 0.0, 1.0]) keras.ops.erf(x) array([-0.99998 , -0.99532, -0.842701, 0., 0.842701], 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/erf