tensorflow::ops::RandomNormal
#include <random_ops.h>ส่งคืนค่าสุ่มจาก1การแจกแจงแบบปกติ
สรุป
ค่าที่สร้างขึ้นจะมีค่าเฉลี่ย 0 และค่าเบี่ยงเบนมาตรฐาน 1
ข้อโต้แย้ง:
- ขอบเขต: วัตถุ ขอบเขต
- รูปร่าง: รูปร่างของเทนเซอร์ผลลัพธ์
- dtype: ชนิดของข้อมูลที่ส่งออก
คุณลักษณะเสริม (ดูที่ Attrs ):
- seed: หาก
seedหรือseed2ตัวใดตัวหนึ่งถูกตั้งค่าเป็นค่าที่ไม่ใช่ศูนย์ ตัวสร้างเลขสุ่มจะเริ่มต้นด้วยค่า seed ที่กำหนดให้ มิฉะนั้น จะเริ่มต้นด้วยค่า seed แบบสุ่ม - seed2: เมล็ดพันธุ์ที่สองเพื่อหลีกเลี่ยงการชนกันของเมล็ดพันธุ์
การส่งคืนสินค้า:
-
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
ตัวดำเนินการ::เทนเซอร์โฟลว์::อินพุต
operator::tensorflow::Input() const
ตัวดำเนินการ::เทนเซอร์โฟลว์::เอาต์พุต
operator::tensorflow::Output() const
ฟังก์ชันคงที่สาธารณะ
เมล็ดพันธุ์
Attrs Seed( int64 x )
เมล็ดพันธุ์2
Attrs Seed2( int64 x )