tensorflow:: אופס:: RandomUniformInt
#include <random_ops.h>מוציא מספרים שלמים אקראיים מהתפלגות אחידה.
תַקצִיר
הערכים שנוצרו הם מספרים שלמים אחידים בטווח [minval, maxval) . ה- minval של הגבול התחתון נכלל בטווח, בעוד שה- maxval של הסף העליון אינו נכלל.
המספרים השלמים האקראיים מוטים מעט אלא אם כן maxval - minval הוא חזקת שתיים מדויקת. ההטיה קטנה עבור ערכים של maxval - minval קטן משמעותית מטווח הפלט (או 2^32 או 2^64 ).
טיעונים:
- scope: אובייקט Scope
- צורה: צורת טנסור הפלט.
- minval: 0-D. גבול תחתון כולל על המספרים השלמים שנוצרו.
- מקסימום: 0-D. גבול עליון בלעדי על המספרים השלמים שנוצרו.
מאפיינים אופציונליים (ראה Attrs ):
- seed: אם
seedאוseed2מוגדרים להיות לא-אפס, מחולל המספרים האקראיים מוזרע על ידי ה-seed הנתון. אחרת, הוא נזרע על ידי זרע אקראי. - seed2: זרע שני כדי למנוע התנגשות זרע.
החזרות:
-
Output: טנזור של הצורה שצוינה מלא במספרים שלמים אקראיים אחידים.
בנאים והורסים | |
|---|---|
RandomUniformInt (const :: tensorflow::Scope & scope, :: tensorflow::Input shape, :: tensorflow::Input minval, :: tensorflow::Input maxval) | |
RandomUniformInt (const :: tensorflow::Scope & scope, :: tensorflow::Input shape, :: tensorflow::Input minval, :: tensorflow::Input maxval, const RandomUniformInt::Attrs & attrs) |
תכונות ציבוריות | |
|---|---|
operation | |
output | |
תפקידים ציבוריים | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
פונקציות סטטיות ציבוריות | |
|---|---|
Seed (int64 x) | |
Seed2 (int64 x) | |
מבנים | |
|---|---|
| tensorflow:: ops:: RandomUniformInt:: Attrs | קובעי תכונות אופציונליים עבור RandomUniformInt . |
תכונות ציבוריות
מִבצָע
Operation operation
תְפוּקָה
::tensorflow::Output output
תפקידים ציבוריים
RandomUniformInt
RandomUniformInt( const ::tensorflow::Scope & scope, ::tensorflow::Input shape, ::tensorflow::Input minval, ::tensorflow::Input maxval )
RandomUniformInt
RandomUniformInt( const ::tensorflow::Scope & scope, ::tensorflow::Input shape, ::tensorflow::Input minval, ::tensorflow::Input maxval, const RandomUniformInt::Attrs & attrs )
צוֹמֶת
::tensorflow::Node * node() const
מפעיל::tensorflow::קלט
operator::tensorflow::Input() const
אופרטור::tensorflow::פלט
operator::tensorflow::Output() const
פונקציות סטטיות ציבוריות
זֶרַע
Attrs Seed( int64 x )
זרע 2
Attrs Seed2( int64 x )
tensorflow:: אופס:: RandomUniformInt
#include <random_ops.h>מוציא מספרים שלמים אקראיים מהתפלגות אחידה.
תַקצִיר
הערכים שנוצרו הם מספרים שלמים אחידים בטווח [minval, maxval) . ה- minval של הגבול התחתון נכלל בטווח, בעוד שה- maxval של הסף העליון אינו נכלל.
המספרים השלמים האקראיים מוטים מעט אלא אם כן maxval - minval הוא חזקת שתיים מדויקת. ההטיה קטנה עבור ערכים של maxval - minval קטן משמעותית מטווח הפלט (או 2^32 או 2^64 ).
טיעונים:
- scope: אובייקט Scope
- צורה: צורת טנסור הפלט.
- minval: 0-D. גבול תחתון כולל על המספרים השלמים שנוצרו.
- מקסימום: 0-D. גבול עליון בלעדי על המספרים השלמים שנוצרו.
מאפיינים אופציונליים (ראה Attrs ):
- seed: אם
seedאוseed2מוגדרים להיות לא-אפס, מחולל המספרים האקראיים מוזרע על ידי ה-seed הנתון. אחרת, הוא נזרע על ידי זרע אקראי. - seed2: זרע שני כדי למנוע התנגשות זרע.
החזרות:
-
Output: טנזור של הצורה שצוינה מלא במספרים שלמים אקראיים אחידים.
בנאים והורסים | |
|---|---|
RandomUniformInt (const :: tensorflow::Scope & scope, :: tensorflow::Input shape, :: tensorflow::Input minval, :: tensorflow::Input maxval) | |
RandomUniformInt (const :: tensorflow::Scope & scope, :: tensorflow::Input shape, :: tensorflow::Input minval, :: tensorflow::Input maxval, const RandomUniformInt::Attrs & attrs) |
תכונות ציבוריות | |
|---|---|
operation | |
output | |
תפקידים ציבוריים | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
פונקציות סטטיות ציבוריות | |
|---|---|
Seed (int64 x) | |
Seed2 (int64 x) | |
מבנים | |
|---|---|
| tensorflow:: ops:: RandomUniformInt:: Attrs | קובעי תכונות אופציונליים עבור RandomUniformInt . |
תכונות ציבוריות
מִבצָע
Operation operation
תְפוּקָה
::tensorflow::Output output
תפקידים ציבוריים
RandomUniformInt
RandomUniformInt( const ::tensorflow::Scope & scope, ::tensorflow::Input shape, ::tensorflow::Input minval, ::tensorflow::Input maxval )
RandomUniformInt
RandomUniformInt( const ::tensorflow::Scope & scope, ::tensorflow::Input shape, ::tensorflow::Input minval, ::tensorflow::Input maxval, const RandomUniformInt::Attrs & attrs )
צוֹמֶת
::tensorflow::Node * node() const
מפעיל::tensorflow::קלט
operator::tensorflow::Input() const
אופרטור::tensorflow::פלט
operator::tensorflow::Output() const
פונקציות סטטיות ציבוריות
זֶרַע
Attrs Seed( int64 x )
זרע 2
Attrs Seed2( int64 x )
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-26 (שעון UTC).