tensorflow:: אופס:: רב-נומי

#include <random_ops.h>

שואב דוגמאות מהתפלגות רב-נומית.

סיכום

טיעונים:

  • scope: אובייקט Scope
  • logits: טנסור דו-ממדי עם צורה [batch_size, num_classes] . כל פרוסה [i, :] מייצגת את הסתברויות היומן הבלתי מנורמלות עבור כל המחלקות.
  • num_samples: 0-D. מספר דגימות עצמאיות לצייר עבור כל פרוסת שורה.

מאפיינים אופציונליים (ראה Attrs ):

  • seed: אם ה-seed או seed2 מוגדרים לא-אפס, מחולל המספרים האקראיים הפנימי מוזרע על ידי ה-seed הנתון. אחרת, נעשה שימוש בזרע אקראי.
  • seed2: זרע שני כדי למנוע התנגשות זרע.

החזרות:

  • Output : טנסור דו-ממדי עם צורה [batch_size, num_samples] . כל פרוסה [i, :] מכילה את תוויות המחלקות המצוירות עם טווח [0, num_classes) .

בנאים והורסים

Multinomial (const :: tensorflow::Scope & scope, :: tensorflow::Input logits, :: tensorflow::Input num_samples)
Multinomial (const :: tensorflow::Scope & scope, :: tensorflow::Input logits, :: tensorflow::Input num_samples, const Multinomial::Attrs & attrs)

תכונות ציבוריות

operation
output

תפקידים ציבוריים

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

פונקציות סטטיות ציבוריות

OutputDtype (DataType x)
Seed (int64 x)
Seed2 (int64 x)

מבנים

tensorflow:: ops:: Multinomial:: Attrs

קובעי תכונות אופציונליים עבור Multinomial .

תכונות ציבוריות

מבצע

Operation operation

תְפוּקָה

::tensorflow::Output output

תפקידים ציבוריים

רב-נומי

 Multinomial(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input logits,
  ::tensorflow::Input num_samples
)

רב-נומי

 Multinomial(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input logits,
  ::tensorflow::Input num_samples,
  const Multinomial::Attrs & attrs
)

צוֹמֶת

::tensorflow::Node * node() const 

מפעיל::tensorflow::קלט

 operator::tensorflow::Input() const 

אופרטור::tensorflow::פלט

 operator::tensorflow::Output() const 

פונקציות סטטיות ציבוריות

OutputDtype

Attrs OutputDtype(
  DataType x
)

זֶרַע

Attrs Seed(
  int64 x
)

זרע 2

Attrs Seed2(
  int64 x
)