tensorflow:: אופס:: אחיד אקראי

#include <random_ops.h>

מוציא ערכים אקראיים מהתפלגות אחידה.

סיכום

הערכים שנוצרו עוקבים אחר התפלגות אחידה בטווח [0, 1) . הגבול התחתון 0 נכלל בטווח, ואילו הגבול העליון 1 אינו נכלל.

טיעונים:

  • scope: אובייקט Scope
  • צורה: צורת טנסור הפלט.
  • dtype: סוג הפלט.

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

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

החזרות:

  • Output : טנזור של הצורה שצוינה מלא בערכים אקראיים אחידים.

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

RandomUniform (const :: tensorflow::Scope & scope, :: tensorflow::Input shape, DataType dtype)
RandomUniform (const :: tensorflow::Scope & scope, :: tensorflow::Input shape, DataType dtype, const RandomUniform::Attrs & attrs)

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

operation
output

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

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

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

Seed (int64 x)
Seed2 (int64 x)

מבנים

tensorflow:: ops:: RandomUniform:: Attrs

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

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

מבצע

Operation operation

תְפוּקָה

::tensorflow::Output output

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

אחיד אקראי

 RandomUniform(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input shape,
  DataType dtype
)

אחיד אקראי

 RandomUniform(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input shape,
  DataType dtype,
  const RandomUniform::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
)