计算日志 softmax 激活。
用法
tf.raw_ops.LogSoftmax(
logits, name=None
)参数
-
logits一个Tensor。必须是以下类型之一:half,bfloat16,float32,float64。具有形状[batch_size, num_classes]的二维。 -
name操作的名称(可选)。
返回
-
一个
Tensor。具有与logits相同的类型。
对于每个批次 i 和类 j 我们有
logsoftmax[i, j] = logits[i, j] - log(sum(exp(logits[i])))
相关用法
- Python tf.raw_ops.LogicalOr用法及代码示例
- Python tf.raw_ops.Log1p用法及代码示例
- Python tf.raw_ops.LogicalNot用法及代码示例
- Python tf.raw_ops.Log用法及代码示例
- Python tf.raw_ops.LogicalAnd用法及代码示例
- Python tf.raw_ops.L2Loss用法及代码示例
- Python tf.raw_ops.LSTMBlockCell用法及代码示例
- Python tf.raw_ops.LessEqual用法及代码示例
- Python tf.raw_ops.LeftShift用法及代码示例
- Python tf.raw_ops.Lgamma用法及代码示例
- Python tf.raw_ops.Less用法及代码示例
- Python tf.raw_ops.LRN用法及代码示例
- Python tf.raw_ops.ListDiff用法及代码示例
- Python tf.raw_ops.LinSpace用法及代码示例
- Python tf.raw_ops.TPUReplicatedInput用法及代码示例
- Python tf.raw_ops.Bitcast用法及代码示例
- Python tf.raw_ops.SelfAdjointEigV2用法及代码示例
- Python tf.raw_ops.BatchMatMul用法及代码示例
- Python tf.raw_ops.OneHot用法及代码示例
- Python tf.raw_ops.ResourceScatterNdSub用法及代码示例
注:本文由纯净天空筛选整理自tensorflow.org大神的英文原创作品 tf.raw_ops.LogSoftmax。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。
