เทนเซอร์โฟลว์:: ปฏิบัติการ:: ใช้การไล่ระดับสีโคตร
#include <training_ops.h>อัปเดต '*var' โดยลบ 'alpha' * 'delta' ออกจากมัน
สรุป
ข้อโต้แย้ง:
- ขอบเขต: วัตถุ ขอบเขต
- var: ควรมาจากตัวแปร ()
- อัลฟา: ปัจจัยการปรับขนาด ต้องเป็นสเกลาร์
- เดลต้า: การเปลี่ยนแปลง
แอ็ตทริบิวต์ทางเลือก (ดู Attrs ):
- use_locking: หากเป็น
Trueการลบจะถูกป้องกันด้วยการล็อค มิฉะนั้นพฤติกรรมจะไม่ได้กำหนดไว้ แต่อาจแสดงความขัดแย้งน้อยลง
ผลตอบแทน:
-
Output: เหมือนกับ "var"
ตัวสร้างและผู้ทำลาย | |
|---|---|
ApplyGradientDescent (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input alpha, :: tensorflow::Input delta) | |
ApplyGradientDescent (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input alpha, :: tensorflow::Input delta, const ApplyGradientDescent::Attrs & attrs) |
คุณลักษณะสาธารณะ | |
|---|---|
operation | |
out | |
งานสาธารณะ | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
ฟังก์ชันคงที่สาธารณะ | |
|---|---|
UseLocking (bool x) | |
โครงสร้าง | |
|---|---|
| เทนเซอร์โฟลว์ :: ops :: ApplyGradientDescent :: Attrs | ตัวตั้งค่าแอตทริบิวต์เพิ่มเติมสำหรับ ApplyGradientDescent |
คุณลักษณะสาธารณะ
การดำเนินการ
Operation operation
ออก
::tensorflow::Output out
งานสาธารณะ
ใช้การไล่ระดับสีโคตร
ApplyGradientDescent( const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input alpha, ::tensorflow::Input delta )
ใช้การไล่ระดับสีโคตร
ApplyGradientDescent( const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input alpha, ::tensorflow::Input delta, const ApplyGradientDescent::Attrs & attrs )
โหนด
::tensorflow::Node * node() const
ตัวดำเนินการ::tensorflow::อินพุต
operator::tensorflow::Input() const
ตัวดำเนินการ::tensorflow::เอาต์พุต
operator::tensorflow::Output() const
ฟังก์ชันคงที่สาธารณะ
ใช้ล็อค
Attrs UseLocking( bool x )