tensorflow:: ops:: רב-נומי
#include <random_ops.h>שואב דגימות מהתפלגות רב-נומית.
תַקצִיר
טיעונים:
- היקף: אובייקט היקף
- logits: טנזור דו-ממדי עם צורה
[batch_size, num_classes]. כל פרוסה[i, :]מייצגת את ההסתברויות הלוגריות הלא מנורמלות עבור כל המחלקות. - num_samples: 0-D. מספר הדגימות הבלתי תלויות לציור עבור כל פרוסת שורה.
מאפיינים אופציונליים (ראה Attrs ):
- seed: אם seed או seed2 מוגדרים כלא אפס, מחולל המספרים האקראיים הפנימי נזרע על ידי ה-seed הנתון. אחרת, נעשה שימוש ב-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 . |
מאפיינים ציבוריים
מִבצָע
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
פונקציות סטטיות ציבוריות
סוג פלט
Attrs OutputDtype( DataType x )
זֶרַע
Attrs Seed( int64 x )
זרע2
Attrs Seed2( int64 x )
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2026-11-05 (שעון UTC).
[null,null,["עדכון אחרון: 2026-11-05 (שעון UTC)."],[],[]]