tensorflow::ops::ConditionalAccumulator
#include <data_flow_ops.h>ตัวสะสมแบบมีเงื่อนไขสำหรับการรวมค่าความชัน
สรุป
ตัวสะสมจะรับค่าความชันที่ระบุด้วย local_step ที่มากกว่าหรือเท่ากับ global_step ล่าสุดที่ตัวสะสมทราบ สามารถดึงค่าเฉลี่ยจากตัวสะสมได้ หากมีการสะสมค่าความชันไว้เพียงพอ การดึงค่าเฉลี่ยจะรีเซ็ตค่ารวมเป็น 0 โดยอัตโนมัติ และเพิ่มค่า global_step ที่บันทึกไว้โดยตัวสะสม
ข้อโต้แย้ง:
- ขอบเขต: วัตถุ ขอบเขต
- dtype: ประเภทของค่าที่กำลังสะสม
- รูปร่าง: รูปร่างของค่าอาจเป็น [] ซึ่งในกรณีนี้รูปร่างจะไม่ชัดเจน
คุณลักษณะเสริม (ดูที่ Attrs ):
- ภาชนะ: หากภาชนะไม่ว่างเปล่า ตัวสะสมนี้จะถูกวางไว้ในภาชนะที่กำหนด มิเช่นนั้น จะใช้ภาชนะเริ่มต้นที่กำหนดไว้
- shared_name: หากไม่ว่างเปล่า ตัวสะสมนี้จะถูกใช้ร่วมกันภายใต้ชื่อที่กำหนดในหลายเซสชัน
การส่งคืนสินค้า:
-
Output: ตัวจัดการตัวสะสม (accumulator)
ตัวสร้างและตัวทำลาย | |
|---|---|
ConditionalAccumulator (const :: tensorflow::Scope & scope, DataType dtype, PartialTensorShape shape) | |
ConditionalAccumulator (const :: tensorflow::Scope & scope, DataType dtype, PartialTensorShape shape, const ConditionalAccumulator::Attrs & attrs) |
คุณลักษณะสาธารณะ | |
|---|---|
handle | |
operation | |
หน้าที่สาธารณะ | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
ฟังก์ชันคงที่สาธารณะ | |
|---|---|
Container (StringPiece x) | |
ReductionType (StringPiece x) | |
SharedName (StringPiece x) | |
โครงสร้าง | |
|---|---|
| tensorflow::ops::ConditionalAccumulator::Attrs | ตัวเลือกในการตั้งค่าแอตทริบิวต์สำหรับ ConditionalAccumulator |
คุณลักษณะสาธารณะ
รับมือ
::tensorflow::Output handle
การดำเนินการ
Operation operation
หน้าที่สาธารณะ
ตัวสะสมแบบมีเงื่อนไข
ConditionalAccumulator( const ::tensorflow::Scope & scope, DataType dtype, PartialTensorShape shape )
ตัวสะสมแบบมีเงื่อนไข
ConditionalAccumulator( const ::tensorflow::Scope & scope, DataType dtype, PartialTensorShape shape, const ConditionalAccumulator::Attrs & attrs )
โหนด
::tensorflow::Node * node() const
ตัวดำเนินการ::เทนเซอร์โฟลว์::อินพุต
operator::tensorflow::Input() const
ตัวดำเนินการ::เทนเซอร์โฟลว์::เอาต์พุต
operator::tensorflow::Output() const
ฟังก์ชันคงที่สาธารณะ
คอนเทนเนอร์
Attrs Container( StringPiece x )
ประเภทการลด
Attrs ReductionType( StringPiece x )
ชื่อที่ใช้ร่วมกัน
Attrs SharedName( StringPiece x )