tensorflow::ops::Variable

#include <state_ops.h>

เก็บสถานะในรูปแบบของเทนเซอร์ที่คงอยู่ตลอดหลายขั้นตอน

สรุป

ส่งคืนค่าอ้างอิงไปยังสถานะของเทนเซอร์เพื่อให้สามารถอ่านหรือแก้ไขได้ TODO(zhifengc/mrry): เพิ่มตัวชี้ไปยังเอกสารรายละเอียดเพิ่มเติมเกี่ยวกับการแชร์สถานะใน TensorFlow

ข้อโต้แย้ง:

  • ขอบเขต: วัตถุ ขอบเขต
  • รูปร่าง: รูปร่างของเทนเซอร์ตัวแปร
  • dtype: ประเภทขององค์ประกอบในเทนเซอร์ตัวแปร

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

  • คอนเทนเนอร์: หากไม่ว่างเปล่า ตัวแปรนี้จะถูกเก็บไว้ในคอนเทนเนอร์ที่กำหนด มิฉะนั้น จะใช้คอนเทนเนอร์เริ่มต้น
  • shared_name: หากไม่ว่างเปล่า ตัวแปรนี้จะถูกตั้งชื่อในบัคเก็ตที่กำหนดโดยใช้ shared_name นี้ มิเช่นนั้น จะใช้ชื่อโหนดแทน

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

  • Output : การอ้างอิงถึงเทนเซอร์ตัวแปร

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

Variable (const :: tensorflow::Scope & scope, PartialTensorShape shape, DataType dtype)
Variable (const :: tensorflow::Scope & scope, PartialTensorShape shape, DataType dtype, const Variable::Attrs & attrs)

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

operation
ref

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

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

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

Container (StringPiece x)
SharedName (StringPiece x)

โครงสร้าง

tensorflow:: ops:: Variable:: Attrs

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

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

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

Operation operation

อ้างอิง

::tensorflow::Output ref

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

ตัวแปร

 Variable(
  const ::tensorflow::Scope & scope,
  PartialTensorShape shape,
  DataType dtype
)

ตัวแปร

 Variable(
  const ::tensorflow::Scope & scope,
  PartialTensorShape shape,
  DataType dtype,
  const Variable::Attrs & attrs
)

โหนด

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const 

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

คอนเทนเนอร์

Attrs Container(
  StringPiece x
)

ชื่อที่ใช้ร่วมกัน

Attrs SharedName(
  StringPiece x
)