tensorflow:: ops:: LogSoftmax
#include <nn_ops.h>対数ソフトマックス活性化関数を計算します。
まとめ
各バッチiおよびクラスjについて、
logsoftmax[i, j] = logits[i, j] - log(sum(exp(logits[i])))
議論:
- スコープ:スコープオブジェクト
- logits: 形状が
[batch_size, num_classes]の 2 次元。
返品:
-
Output:logitsと同じ形状。
コンストラクターとデストラクタ | |
|---|---|
LogSoftmax (const :: tensorflow::Scope & scope, :: tensorflow::Input logits) |
公開属性 | |
|---|---|
logsoftmax | |
operation | |
公的機能 | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
公開属性
logsoftmax
::tensorflow::Output logsoftmax
手術
Operation operation
公的機能
LogSoftmax
LogSoftmax( const ::tensorflow::Scope & scope, ::tensorflow::Input logits )
ノード
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const