tensorflow::ops::RandomUniform

#include <random_ops.h>

ส่งคืนค่าสุ่มจาก1การแจกแจงแบบเอกรูป

สรุป

ค่าที่สร้างขึ้นจะมีการกระจายแบบสม่ำเสมอในช่วง [0, 1) โดยค่าต่ำสุด 0 จะอยู่ในช่วง และค่าสูงสุด 1 จะไม่อยู่ในช่วง

ข้อโต้แย้ง:

  • ขอบเขต: วัตถุ ขอบเขต
  • รูปร่าง: รูปร่างของเทนเซอร์ผลลัพธ์
  • dtype: ชนิดของข้อมูลที่ส่งออก

คุณลักษณะเสริม (ดูที่ Attrs ):

  • seed: หาก seed หรือ seed2 ตัวใดตัวหนึ่งถูกตั้งค่าเป็นค่าที่ไม่ใช่ศูนย์ ตัวสร้างเลขสุ่มจะเริ่มต้นด้วยค่า seed ที่กำหนดให้ มิฉะนั้น จะเริ่มต้นด้วยค่า 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 

ตัวดำเนินการ::เทนเซอร์โฟลว์::อินพุต

 operator::tensorflow::Input() const 

ตัวดำเนินการ::เทนเซอร์โฟลว์::เอาต์พุต

 operator::tensorflow::Output() const 

ฟังก์ชันคงที่สาธารณะ

เมล็ดพันธุ์

Attrs Seed(
  int64 x
)

เมล็ดพันธุ์2

Attrs Seed2(
  int64 x
)