تدفق التوتر:: العمليات:: عشوائي عادي

#include <random_ops.h>

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

ملخص

سيكون للقيم التي تم إنشاؤها متوسط ​​0 وانحراف معياري 1.

الحجج:

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

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

  • البذرة: إذا تم تعيين seed أو seed2 على قيمة غير صفرية، فسيتم بذرة مولد الأرقام العشوائية بواسطة البذرة المعطاة. خلاف ذلك، يتم زرعها بواسطة بذرة عشوائية.
  • بذرة 2: بذرة ثانية لتجنب اصطدام البذور.

عائدات:

  • Output : موتر للشكل المحدد مملوء بقيم عادية عشوائية.

البنائين والمدمرين

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

الصفات العامة

operation
output

الوظائف العامة

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

وظائف ثابتة العامة

Seed (int64 x)
Seed2 (int64 x)

الهياكل

Tensorflow:: ops:: RandomNormal:: Attrs

محددات السمات الاختيارية لـ RandomNormal .

الصفات العامة

عملية

Operation operation

انتاج

::tensorflow::Output output

الوظائف العامة

عشوائي عادي

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

عشوائي عادي

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