tensorflow::ops::BiasAdd
#include <nn_ops.h> เพิ่ม bias ให้กับ value
สรุป
นี่เป็นกรณีพิเศษของ tf.add ที่ bias ถูกจำกัดให้เป็นมิติเดียว การกระจายค่า (Broadcasting) ได้รับการสนับสนุน ดังนั้น value อาจมีมิติได้หลายมิติ
ข้อโต้แย้ง:
คุณลักษณะเสริม (ดูที่ Attrs ):
- data_format: ระบุรูปแบบข้อมูลของข้อมูลขาเข้าและขาออก โดยรูปแบบเริ่มต้นคือ "NHWC" เทนเซอร์ไบแอสจะถูกเพิ่มเข้าไปในมิติสุดท้ายของเทนเซอร์ค่า หรืออีกทางเลือกหนึ่ง รูปแบบอาจเป็น "NCHW" ซึ่งมีลำดับการจัดเก็บข้อมูลเป็น: [batch, in_channels, in_height, in_width] เทนเซอร์จะถูกเพิ่มเข้าไปใน "in_channels" ซึ่งเป็นมิติที่สามจากท้ายสุด
การส่งคืนสินค้า:
-
Output: ผลรวมของvalueและbiasที่กระจายออกไป
ตัวสร้างและตัวทำลาย | |
|---|---|
BiasAdd (const :: tensorflow::Scope & scope, :: tensorflow::Input value, :: tensorflow::Input bias) | |
BiasAdd (const :: tensorflow::Scope & scope, :: tensorflow::Input value, :: tensorflow::Input bias, const BiasAdd::Attrs & attrs) |
คุณลักษณะสาธารณะ | |
|---|---|
operation | |
output | |
หน้าที่สาธารณะ | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
ฟังก์ชันคงที่สาธารณะ | |
|---|---|
DataFormat (StringPiece x) | |
โครงสร้าง | |
|---|---|
| tensorflow::ops::BiasAdd::Attrs | ตัวเลือกในการตั้งค่าแอตทริบิวต์สำหรับ BiasAdd |
คุณลักษณะสาธารณะ
การดำเนินการ
Operation operation
เอาต์พุต
::tensorflow::Output output
หน้าที่สาธารณะ
ไบแอสแอด
BiasAdd( const ::tensorflow::Scope & scope, ::tensorflow::Input value, ::tensorflow::Input bias )
ไบแอสแอด
BiasAdd( const ::tensorflow::Scope & scope, ::tensorflow::Input value, ::tensorflow::Input bias, const BiasAdd::Attrs & attrs )
โหนด
::tensorflow::Node * node() const
ตัวดำเนินการ::เทนเซอร์โฟลว์::อินพุต
operator::tensorflow::Input() const
ตัวดำเนินการ::เทนเซอร์โฟลว์::เอาต์พุต
operator::tensorflow::Output() const
ฟังก์ชันคงที่สาธารณะ
รูปแบบข้อมูล
Attrs DataFormat( StringPiece x )