tensorflow::ops::AssignSub

#include <state_ops.h>

อัปเดตค่า 'ref' โดยการลบค่า 'value' ออกจากค่าดังกล่าว

สรุป

การดำเนินการนี้จะส่งออกค่า "ref" หลังจากการอัปเดตเสร็จสิ้น ซึ่งจะช่วยให้การเชื่อมโยงการดำเนินการที่ต้องใช้ค่ารีเซ็ตทำได้ง่ายขึ้น

ข้อโต้แย้ง:

  • ขอบเขต: วัตถุ ขอบเขต
  • อ้างอิง: ควรมาจากโหนด Variable
  • ค่า: ค่าที่จะถูกลบออกจากตัวแปร

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

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

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

  • Output : = เหมือนกับ "ref" ส่งคืนค่านี้เพื่อความสะดวกในการดำเนินการที่ต้องการใช้ค่าใหม่หลังจากที่ตัวแปรได้รับการอัปเดตแล้ว

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

AssignSub (const :: tensorflow::Scope & scope, :: tensorflow::Input ref, :: tensorflow::Input value)
AssignSub (const :: tensorflow::Scope & scope, :: tensorflow::Input ref, :: tensorflow::Input value, const AssignSub::Attrs & attrs)

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

operation
output_ref

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

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

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

UseLocking (bool x)

โครงสร้าง

tensorflow::ops::AssignSub::Attrs

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

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

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

Operation operation

เอาต์พุต_อ้างอิง

::tensorflow::Output output_ref

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

มอบหมายย่อย

 AssignSub(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input ref,
  ::tensorflow::Input value
)

มอบหมายย่อย

 AssignSub(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input ref,
  ::tensorflow::Input value,
  const AssignSub::Attrs & attrs
)

โหนด

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const 

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

ใช้การล็อก

Attrs UseLocking(
  bool x
)