نشكرك على متابعة Google I / O. عرض جميع الجلسات عند الطلب مشاهدة عند الطلب

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

#include <nn_ops.h>

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

ملخص

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

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

الحجج:

  • النطاق: كائن النطاق
  • السجلات: 2-D مع الشكل [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

سوفت ماكس

::tensorflow::Output softmax

الوظائف العامة

سوفت ماكس

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

العقدة

::tensorflow::Node * node() const 

المشغل :: tensorflow :: الإدخال

 operator::tensorflow::Input() const 

المشغل :: Tensorflow :: Output

 operator::tensorflow::Output() const