tf.raw_ops.Softmax
Вычисляет активации softmax.
tf.raw_ops.Softmax(
logits, name=None
)
Для каждой партии i и класса j у нас есть
$$softmax[i, j] = exp(logits[i, j]) / sum_j(exp(logits[i, j]))$$
| Аргументы | |
|---|---|
logits | A Tensor. Должен быть одним из следующих типов: half, bfloat16, float32, float64. 2-мерный с формой [batch_size, num_classes]. |
name | Имя операции (необязательно). |
| Возвращаемое значение | |
|---|---|
A Tensor. Имеет тот же тип, что и logits. |
© 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/versions/r2.9/api_docs/python/tf/raw_ops/Softmax