tensorflow::ops::SparseAccumulatorApplyGradient

#include <data_flow_ops.h>

ใช้การไล่ระดับแบบเบาบางกับตัวสะสมที่กำหนด

สรุป

จะไม่ทำการบวกหากค่า local_step น้อยกว่าค่า global_step ของตัวสะสม

ข้อโต้แย้ง:

  • ขอบเขต: วัตถุ ขอบเขต
  • ด้ามจับ: ด้ามจับของตัวสะสมพลังงาน
  • local_step: ค่า local_step ที่ใช้ในการคำนวณเกรเดียนต์แบบสปาร์ส
  • gradient_indices: ดัชนีของเกรเดียนต์แบบสปาร์สที่จะนำมาสะสม ต้องเป็นเวกเตอร์
  • gradient_values: ค่าเหล่านี้คือส่วนที่ไม่เป็นศูนย์ของเกรเดียนต์ และต้องมีมิติแรกเหมือนกับดัชนี กล่าวคือ nnz ที่แสดงโดยดัชนีและค่าจะต้องสอดคล้องกัน
  • gradient_shape: รูปร่างของเกรเดียนต์แบบเบาบางที่จะนำมาสะสม
  • has_known_shape: ค่าบูลีนที่ระบุว่า gradient_shape ไม่ทราบค่าหรือไม่ หากไม่ทราบค่า ระบบจะละเว้นข้อมูลดังกล่าวในระหว่างการตรวจสอบความถูกต้อง

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

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

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

SparseAccumulatorApplyGradient (const :: tensorflow::Scope & scope, :: tensorflow::Input handle, :: tensorflow::Input local_step, :: tensorflow::Input gradient_indices, :: tensorflow::Input gradient_values, :: tensorflow::Input gradient_shape, bool has_known_shape)

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

operation

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

operator::tensorflow::Operation () const

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

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

Operation operation

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

SparseAccumulatorApplyGradient

 SparseAccumulatorApplyGradient(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input handle,
  ::tensorflow::Input local_step,
  ::tensorflow::Input gradient_indices,
  ::tensorflow::Input gradient_values,
  ::tensorflow::Input gradient_shape,
  bool has_known_shape
)

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

 operator::tensorflow::Operation() const