تدفق التوتر:: العمليات:: سوفت ماكس

#include <nn_ops.h>

يحسب التنشيط softmax.

ملخص

لكل دفعة i والفئة j لدينا

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

الحجج:

  • النطاق: كائن النطاق
  • السجلات: ثنائية الأبعاد بالشكل [batch_size, num_classes] .

عائدات:

  • 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

com.softmax

::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