tf.raw_ops.LogSoftmax
Вычисляет активации log softmax.
tf.raw_ops.LogSoftmax(
logits, name=None
)
Для каждого набора i и класса j у нас есть
logsoftmax[i, j] = logits[i, j] - log(sum(exp(logits[i])))
| Аргументы | |
|---|---|
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/LogSoftmax