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

#include <nn_ops.h>

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

ملخص

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

logsoftmax[i, j] = logits[i, j] - log(sum(exp(logits[i])))

الحجج:

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

عائدات:

  • Output : نفس شكل logits .

البنائين والمدمرين

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

الصفات العامة

logsoftmax
operation

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

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

الصفات العامة

com.logsoftmax

::tensorflow::Output logsoftmax

عملية

Operation operation

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

LogSoftmax

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

العقدة

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

المشغل::tensorflow::الإخراج

 operator::tensorflow::Output() const