tensorflow::ops::ResourceApplyProximalGradientDescent

#include <training_ops.h>

อัปเดต '*var' เป็นอัลกอริธึม FOBOS ด้วยอัตราการเรียนรู้คงที่

สรุป

prox_v = var - alpha * delta var = sign(prox_v)/(1+alpha*l2) * max{|prox_v|-alpha*l1,0}

ข้อโต้แย้ง:

  • ขอบเขต: วัตถุ ขอบเขต
  • var: ควรมาจาก Variable()
  • อัลฟา: ตัวคูณปรับขนาด ต้องเป็นค่าคงที่
  • l1: การปรับค่า L1 ต้องเป็นค่าสเกลาร์
  • l2: การปรับค่า L2 ต้องเป็นค่าสเกลาร์
  • เดลต้า: การเปลี่ยนแปลง

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

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

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

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

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

ResourceApplyProximalGradientDescent (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input alpha, :: tensorflow::Input l1, :: tensorflow::Input l2, :: tensorflow::Input delta)
ResourceApplyProximalGradientDescent (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input alpha, :: tensorflow::Input l1, :: tensorflow::Input l2, :: tensorflow::Input delta, const ResourceApplyProximalGradientDescent::Attrs & attrs)

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

operation

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

operator::tensorflow::Operation () const

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

UseLocking (bool x)

โครงสร้าง

tensorflow::ops::ResourceApplyProximalGradientDescent::Attrs

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

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

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

Operation operation

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

ทรัพยากรประยุกต์ ความชันใกล้เคียง การลดระดับ

 ResourceApplyProximalGradientDescent(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input var,
  ::tensorflow::Input alpha,
  ::tensorflow::Input l1,
  ::tensorflow::Input l2,
  ::tensorflow::Input delta
)

ทรัพยากรประยุกต์ ความชันใกล้เคียง การลดระดับ

 ResourceApplyProximalGradientDescent(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input var,
  ::tensorflow::Input alpha,
  ::tensorflow::Input l1,
  ::tensorflow::Input l2,
  ::tensorflow::Input delta,
  const ResourceApplyProximalGradientDescent::Attrs & attrs
)

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

 operator::tensorflow::Operation() const 

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

ใช้การล็อก

Attrs UseLocking(
  bool x
)