テンソルフロー::作戦::ソフトマックス

#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 

演算子::tensorflow::入力

 operator::tensorflow::Input() const 

演算子::tensorflow::出力

 operator::tensorflow::Output() const