tf.raw_ops.L2Loss
L2 Loss.
tf.raw_ops.L2Loss(
t, name=None
)
Вычисляет половину L2-нормы тензора без sqrt:
output = sum(t ** 2) / 2
| Аргументы | |
|---|---|
t | A Tensor. Должен быть одного из следующих типов: half, bfloat16, float32, float64. Обычно 2-мерный, но может иметь любые размеры. |
name | Имя операции (необязательно). |
| Возвращает | |
|---|---|
A Tensor. Имеет тот же тип, что и t. |
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.4/api_docs/python/tf/raw_ops/L2Loss