tensorflow::ops::ResourceCountUpTo
#include <state_ops.h>เพิ่มค่าตัวแปรที่ชี้โดย 'resource' ไปเรื่อยๆ จนกว่าจะถึง 'limit'
สรุป
ข้อโต้แย้ง:
- ขอบเขต: วัตถุ ขอบเขต
- ทรัพยากร: ควรมาจากโหนด
Variableสเกลาร์ - ขีดจำกัด: หากการเพิ่มค่าอ้างอิงทำให้ค่าเกินขีดจำกัด ระบบจะสร้างข้อผิดพลาด 'OutOfRange' แทน
การส่งคืนสินค้า:
-
Output: สำเนาของค่าอินพุตก่อนการเพิ่มค่า หากไม่มีสิ่งอื่นใดเปลี่ยนแปลงค่าอินพุต ค่าที่ได้ทั้งหมดจะแตกต่างกัน
ตัวสร้างและตัวทำลาย | |
|---|---|
ResourceCountUpTo (const :: tensorflow::Scope & scope, :: tensorflow::Input resource, int64 limit, DataType T) |
คุณลักษณะสาธารณะ | |
|---|---|
operation | |
output | |
หน้าที่สาธารณะ | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
คุณลักษณะสาธารณะ
การดำเนินการ
Operation operation
เอาต์พุต
::tensorflow::Output output
หน้าที่สาธารณะ
จำนวนทรัพยากรสูงสุด
ResourceCountUpTo( const ::tensorflow::Scope & scope, ::tensorflow::Input resource, int64 limit, DataType T )
โหนด
::tensorflow::Node * node() const
ตัวดำเนินการ::เทนเซอร์โฟลว์::อินพุต
operator::tensorflow::Input() const
ตัวดำเนินการ::เทนเซอร์โฟลว์::เอาต์พุต
operator::tensorflow::Output() const