tensorflow::ops::ResourceApplyAddSign

#include <training_ops.h>

อัปเดต '*var' ตามการอัปเดตของ AddSign

สรุป

m_t <- beta1 * m_{t-1} + (1 - beta1) * g อัปเดต <- (alpha + sign_decay * sign(g) *sign(m)) * g ตัวแปร <- variable - lr_t * อัปเดต

ข้อโต้แย้ง:

  • ขอบเขต: วัตถุ ขอบเขต
  • var: ควรมาจาก Variable()
  • m: ควรมาจากตัวแปร()
  • lr: ตัวคูณปรับขนาด ต้องเป็นค่าคงที่
  • อัลฟา: ต้องเป็นค่าสเกลาร์
  • sign_decay: ต้องเป็นค่าสเกลาร์
  • เบต้า: ต้องเป็นค่าสเกลาร์
  • grad: ค่าความชัน

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

  • use_locking: หากตั้งค่า True การอัปเดตเทนเซอร์ var และ m จะได้รับการป้องกันด้วยการล็อก มิเช่นนั้นพฤติกรรมจะไม่แน่นอน แต่การแย่งชิงทรัพยากรอาจน้อยลง

การส่งคืนสินค้า:

  • Operation ที่สร้างขึ้น

ตัวสร้างและตัวทำลาย

ResourceApplyAddSign (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input m, :: tensorflow::Input lr, :: tensorflow::Input alpha, :: tensorflow::Input sign_decay, :: tensorflow::Input beta, :: tensorflow::Input grad)
ResourceApplyAddSign (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input m, :: tensorflow::Input lr, :: tensorflow::Input alpha, :: tensorflow::Input sign_decay, :: tensorflow::Input beta, :: tensorflow::Input grad, const ResourceApplyAddSign::Attrs & attrs)

คุณลักษณะสาธารณะ

operation

หน้าที่สาธารณะ

operator::tensorflow::Operation () const

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

UseLocking (bool x)

โครงสร้าง

tensorflow::ops::ResourceApplyAddSign::Attrs

ตัวเลือกในการตั้งค่าแอตทริบิวต์สำหรับ ResourceApplyAddSign

คุณลักษณะสาธารณะ

การดำเนินการ

Operation operation

หน้าที่สาธารณะ

ทรัพยากร สมัคร เพิ่ม ลงชื่อ

 ResourceApplyAddSign(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input var,
  ::tensorflow::Input m,
  ::tensorflow::Input lr,
  ::tensorflow::Input alpha,
  ::tensorflow::Input sign_decay,
  ::tensorflow::Input beta,
  ::tensorflow::Input grad
)

ทรัพยากร สมัคร เพิ่ม ลงชื่อ

 ResourceApplyAddSign(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input var,
  ::tensorflow::Input m,
  ::tensorflow::Input lr,
  ::tensorflow::Input alpha,
  ::tensorflow::Input sign_decay,
  ::tensorflow::Input beta,
  ::tensorflow::Input grad,
  const ResourceApplyAddSign::Attrs & attrs
)

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

 operator::tensorflow::Operation() const 

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

ใช้การล็อก

Attrs UseLocking(
  bool x
)