#include <nn_ops.h>
Computes log softmax activations.
For each batch i
and class j
we have
logsoftmax[i, j] = logits[i, j] - log(sum(exp(logits[i])))
Arguments:
[batch_size, num_classes]
.Returns:
Output
: Same shape as logits
. Constructors and Destructors | |
---|---|
LogSoftmax(const ::tensorflow::Scope & scope, ::tensorflow::Input logits) |
Public attributes | |
---|---|
logsoftmax |
Public functions | |
---|---|
node() const | ::tensorflow::Node * |
operator::tensorflow::Input() const | |
operator::tensorflow::Output() const |
::tensorflow::Output logsoftmax
LogSoftmax( const ::tensorflow::Scope & scope, ::tensorflow::Input logits )
::tensorflow::Node * node() const
operator::tensorflow::Input() const
operator::tensorflow::Output() const
© 2018 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/api_docs/cc/class/tensorflow/ops/log-softmax.html