tensorflow::ops::SparseAccumulatorTakeGradient
#include <data_flow_ops.h>ดึงค่าเกรเดียนต์แบบเบาบางเฉลี่ยใน SparseConditionalAccumulator
สรุป
ฟังก์ชันจะหยุดทำงานจนกว่าจะสะสมค่าความชันได้เพียงพอ (เช่น มากกว่า num_required) หากตัวสะสมค่าความชันได้สะสมค่าความชันมากกว่า num_required แล้ว ฟังก์ชันจะส่งคืนค่าความชันเฉลี่ยที่สะสมได้ นอกจากนี้ยังเพิ่มค่า global_step ที่บันทึกไว้ในตัวสะสมขึ้น 1 โดยอัตโนมัติ และรีเซ็ตค่ารวมเป็น 0
ข้อโต้แย้ง:
- ขอบเขต: วัตถุ ขอบเขต
- handle: ตัวชี้ไปยัง SparseConditionalAccumulator
- num_required: จำนวนเกรเดียนต์ที่จำเป็นก่อนที่เราจะส่งคืนค่ารวม
- dtype: ชนิดข้อมูลของค่าความชันสะสม ต้องตรงกับชนิดของตัวสะสม
การส่งคืนสินค้า:
- ดัชนี
Output: ดัชนีของค่าเฉลี่ยของเกรเดียนต์แบบเบาบางที่สะสมไว้ - ค่า
Output: ค่าเฉลี่ยของค่าความชันแบบเบาบางที่สะสมไว้ - รูปร่าง
Output: รูปร่างของค่าเฉลี่ยของเกรเดียนต์แบบเบาบางที่สะสมไว้
ตัวสร้างและตัวทำลาย | |
|---|---|
SparseAccumulatorTakeGradient (const :: tensorflow::Scope & scope, :: tensorflow::Input handle, :: tensorflow::Input num_required, DataType dtype) |
คุณลักษณะสาธารณะ | |
|---|---|
indices | |
operation | |
shape | |
values | |
คุณลักษณะสาธารณะ
ดัชนี
::tensorflow::Output indices
การดำเนินการ
Operation operation
รูปร่าง
::tensorflow::Output shape
ค่านิยม
::tensorflow::Output values
หน้าที่สาธารณะ
SparseAccumulatorTakeGradient
SparseAccumulatorTakeGradient( const ::tensorflow::Scope & scope, ::tensorflow::Input handle, ::tensorflow::Input num_required, DataType dtype )