tensorflow:: אופס:: סופטמקס

#include <nn_ops.h>

מחשב הפעלת softmax.

סיכום

עבור כל אצווה i ומחלקה j יש לנו

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

טיעונים:

  • scope: אובייקט Scope
  • logits: דו-ממדי עם צורה [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

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