tensor akışı:: işlem:: Softmax

#include <nn_ops.h>

Softmax aktivasyonlarını hesaplar.

Özet

Her grup i ve sınıf j için

$$softmax[i, j] = exp(logits[i, j]) / sum_j(exp(logits[i, j]))$$
sahibiz

Argümanlar:

  • kapsam: Bir Kapsam nesnesi
  • logitler: [batch_size, num_classes] şeklinde 2 boyutlu.

İadeler:

  • Output : logits ile aynı şekil.

Yapıcılar ve Yıkıcılar

Softmax (const :: tensorflow::Scope & scope, :: tensorflow::Input logits)

Genel özellikler

operation
softmax

Kamu işlevleri

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

Genel özellikler

operasyon

Operation operation

softmax

::tensorflow::Output softmax

Kamu işlevleri

Softmax

 Softmax(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input logits
)

düğüm

::tensorflow::Node * node() const 

operatör::tensorflow::Giriş

 operator::tensorflow::Input() const 

operatör::tensorflow::Çıktı

 operator::tensorflow::Output() const