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 | Tensor. Должен иметь один из следующих типов: half, bfloat16, float32, float64. 2-D с формой [batch_size, num_classes]. |
name | Имя операции (необязательно). |
| Возвращает | |
|---|---|
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/api_docs/python/tf/raw_ops/Softmax