Softmax
tensorflow C++ API
Computes softmax activations.
Summary
tensorflow::ops::Softmax Class Reference | TensorFlow
For each batch i
and class j
we havesoftmax[i, j]= exp(logits[i, j])/ sum_j(exp(logits[i, j]))
Arguments:
- scope: A Scope object
- logits: 2-D with shape
[batch_size, num_classes]
.
Returns:
Output
: Same shape aslogits
.
Softmax block
Source link : https://github.com/EXPNUNI/enuSpaceTensorflow/blob/master/enuSpaceTensorflow/tf_nn.cpp
Argument:
- Scope scope : A Scope object (A scope is generated automatically each page. A scope is not connected.)
- Input logits: connect Input node.
Return:
- Output softmax: Output object of Softmax class object.
Result:
- std::vector(Tensor) result_softmax : Returned object of executed result by calling session.