เทนเซอร์โฟลว์:: ปฏิบัติการ:: มอบหมายย่อย

#include <state_ops.h>

อัปเดต 'ref' โดยลบ 'value' ออกจากมัน

สรุป

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

ข้อโต้แย้ง:

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

แอ็ตทริบิวต์ทางเลือก (ดู 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)

โครงสร้าง

เทนเซอร์โฟลว์ :: 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 

ตัวดำเนินการ::tensorflow::อินพุต

 operator::tensorflow::Input() const 

ตัวดำเนินการ::tensorflow::เอาต์พุต

 operator::tensorflow::Output() const 

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

ใช้ล็อค

Attrs UseLocking(
  bool x
)