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) |
תפקידים ציבוריים | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
מבנים | |
---|---|
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 )