เทนเซอร์โฟลว์:: ปฏิบัติการ:: ตัวแปร
#include <state_ops.h>คงสถานะไว้ในรูปแบบของเทนเซอร์ที่คงอยู่ข้ามขั้นตอนต่างๆ
สรุป
ส่งออกการอ้างอิงสถานะเทนเซอร์เพื่อให้สามารถอ่านหรือแก้ไขได้ TODO(zhifengc/mrry): เพิ่มตัวชี้ไปยังเอกสารรายละเอียดเพิ่มเติมเกี่ยวกับการแชร์สถานะในเทนเซอร์โฟลว์
ข้อโต้แย้ง:
- ขอบเขต: วัตถุ ขอบเขต
- รูปร่าง: รูปร่างของเทนเซอร์แปรผัน
- 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) | |
| โครงสร้าง | |
|---|---|
| เทนเซอร์โฟลว์ :: ops :: ตัวแปร :: Attrs | ตัวตั้งค่าแอ็ตทริบิวต์ทางเลือกสำหรับ Variable | 
คุณลักษณะสาธารณะ
การดำเนินการ
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
ตัวดำเนินการ::tensorflow::อินพุต
operator::tensorflow::Input() const
ตัวดำเนินการ::tensorflow::เอาต์พุต
operator::tensorflow::Output() const
ฟังก์ชันคงที่สาธารณะ
คอนเทนเนอร์
Attrs Container( StringPiece x )
ชื่อที่ใช้ร่วมกัน
Attrs SharedName( StringPiece x )