tensorflow:: אופס:: קטוע רגיל

#include <random_ops.h>

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

סיכום

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

טיעונים:

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

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

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

החזרות:

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

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

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

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

operation
output

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

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

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

Seed (int64 x)
Seed2 (int64 x)

מבנים

tensorflow:: ops:: TruncatedNormal:: Attrs

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

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

מבצע

Operation operation

תְפוּקָה

::tensorflow::Output output

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

קטוע רגיל

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

קטוע רגיל

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