tensorflow:: ops:: TruncatedNormal

#include <random_ops.h>

يُخرج قيمًا عشوائية من توزيع طبيعي مقطوع.

ملخص

تتبع القيم المولدة توزيعًا طبيعيًا بمتوسط ​​0 وانحراف معياري 1، باستثناء القيم التي يزيد مقدارها عن انحرافين معياريين عن المتوسط، حيث يتم إسقاطها وإعادة اختيارها.

الحجج:

  • النطاق: كائن النطاق
  • الشكل: شكل موتر الإخراج.
  • dtype: نوع المخرجات.

السمات الاختيارية (انظر Attrs ):

  • البذرة: إذا تم ضبط قيمة seed أو seed2 على قيمة غير صفرية، فسيتم تهيئة مولد الأرقام العشوائية باستخدام البذرة المعطاة. وإلا، فسيتم تهيئته باستخدام بذرة عشوائية.
  • 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 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const 

الدوال الثابتة العامة

بذور

Attrs Seed(
  int64 x
)

البذرة 2

Attrs Seed2(
  int64 x
)