tensorflow::ops::ResourceSparseApplyAdagradDA

#include <training_ops.h>

อัปเดตรายการใน '*var' และ '*accum' ตามรูปแบบ adagrad ที่ใกล้ที่สุด

สรุป

ข้อโต้แย้ง:

  • ขอบเขต: วัตถุ ขอบเขต
  • var: ควรมาจาก Variable()
  • gradient_accumulator: ควรมาจาก Variable()
  • gradient_squared_accumulator: ควรมาจาก Variable()
  • grad: ค่าความชัน
  • ดัชนี: เวกเตอร์ของดัชนีในมิติแรกของ var และ accum
  • lr: อัตราการเรียนรู้ ต้องเป็นค่าคงที่ (scalar)
  • l1: การปรับค่า L1 ต้องเป็นค่าสเกลาร์
  • l2: การปรับค่า L2 ต้องเป็นค่าสเกลาร์
  • global_step: หมายเลขขั้นตอนการฝึกอบรม ต้องเป็นค่าเดี่ยว (scalar)

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

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

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

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

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

ResourceSparseApplyAdagradDA (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input gradient_accumulator, :: tensorflow::Input gradient_squared_accumulator, :: tensorflow::Input grad, :: tensorflow::Input indices, :: tensorflow::Input lr, :: tensorflow::Input l1, :: tensorflow::Input l2, :: tensorflow::Input global_step)
ResourceSparseApplyAdagradDA (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input gradient_accumulator, :: tensorflow::Input gradient_squared_accumulator, :: tensorflow::Input grad, :: tensorflow::Input indices, :: tensorflow::Input lr, :: tensorflow::Input l1, :: tensorflow::Input l2, :: tensorflow::Input global_step, const ResourceSparseApplyAdagradDA::Attrs & attrs)

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

operation

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

operator::tensorflow::Operation () const

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

UseLocking (bool x)

โครงสร้าง

tensorflow::ops::ResourceSparseApplyAdagradDA::Attrs

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

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

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

Operation operation

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

ResourceSparseApplyAdagradDA

 ResourceSparseApplyAdagradDA(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input var,
  ::tensorflow::Input gradient_accumulator,
  ::tensorflow::Input gradient_squared_accumulator,
  ::tensorflow::Input grad,
  ::tensorflow::Input indices,
  ::tensorflow::Input lr,
  ::tensorflow::Input l1,
  ::tensorflow::Input l2,
  ::tensorflow::Input global_step
)

ResourceSparseApplyAdagradDA

 ResourceSparseApplyAdagradDA(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input var,
  ::tensorflow::Input gradient_accumulator,
  ::tensorflow::Input gradient_squared_accumulator,
  ::tensorflow::Input grad,
  ::tensorflow::Input indices,
  ::tensorflow::Input lr,
  ::tensorflow::Input l1,
  ::tensorflow::Input l2,
  ::tensorflow::Input global_step,
  const ResourceSparseApplyAdagradDA::Attrs & attrs
)

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

 operator::tensorflow::Operation() const 

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

ใช้การล็อก

Attrs UseLocking(
  bool x
)