tensorflow::ops::TruncatedNormal

#include <random_ops.h>

ส่งคืนค่าสุ่มจาก1การแจกแจงปกติแบบตัดทอน

สรุป

ค่าที่สร้างขึ้นจะมีการกระจายแบบปกติ โดยมีค่าเฉลี่ย 0 และส่วนเบี่ยงเบนมาตรฐาน 1 ยกเว้นค่าที่มีขนาดมากกว่า 2 ส่วนเบี่ยงเบนมาตรฐานจากค่าเฉลี่ย ซึ่งจะถูกตัดทิ้งและเลือกใหม่

ข้อโต้แย้ง:

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

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

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

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

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const 

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

เมล็ดพันธุ์

Attrs Seed(
  int64 x
)

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

Attrs Seed2(
  int64 x
)