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