tensorflow:: ops:: SoftmaxCrossEntropyWithLogits

#include <nn_ops.h>

ソフトマックス交差エントロピーのコストと勾配を計算し、逆伝播に用いる。

まとめ

入力値は確率ではなく、ロジットです。

議論:

  • スコープ:スコープオブジェクト
  • 特徴量: バッチサイズ × クラス数行列
  • ラベル: バッチサイズ x クラス数行列 呼び出し元は、ラベルの各バッチが有効な確率分布を表していることを確認する必要があります。

返品:

  • Output損失:サンプルごとの損失(バッチサイズベクトル)。
  • Outputバックプロパゲーション:バックプロパゲーションされた勾配(バッチサイズ×クラス数行列)。

コンストラクターとデストラクタ

SoftmaxCrossEntropyWithLogits (const :: tensorflow::Scope & scope, :: tensorflow::Input features, :: tensorflow::Input labels)

公開属性

backprop
loss
operation

公開属性

バックプロペラ

::tensorflow::Output backprop

損失

::tensorflow::Output loss

手術

Operation operation

公的機能

SoftmaxCrossEntropyWithLogits

 SoftmaxCrossEntropyWithLogits(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input features,
  ::tensorflow::Input labels
)