เทนเซอร์โฟลว์:: ปฏิบัติการ:: คืนค่า Slice
#include <io_ops.h>คืนค่าเทนเซอร์จากไฟล์จุดตรวจ
สรุป
สิ่งนี้เหมือนกับ Restore ยกเว้นว่าเทนเซอร์ที่ได้รับการกู้คืนสามารถระบุได้ว่าเติมเทนเซอร์ที่ใหญ่กว่าเพียงบางส่วนเท่านั้น shape_and_slice ระบุรูปร่างของเมตริกซ์ที่ใหญ่กว่าและชิ้นที่เทนเซอร์ที่กู้คืนครอบคลุมอยู่
อินพุต shape_and_slice มีรูปแบบเดียวกันกับองค์ประกอบของอินพุต shapes_and_slices ของคำสั่ง SaveSlices
ข้อโต้แย้ง:
- ขอบเขต: วัตถุ ขอบเขต
- file_pattern: ต้องมีองค์ประกอบเดียว รูปแบบของไฟล์ที่เราอ่านเทนเซอร์
- tensor_name: ต้องมีองค์ประกอบเดียว ชื่อของเทนเซอร์ที่จะกู้คืน
- shape_and_slice: สเกลาร์ ข้อกำหนดรูปร่างและชิ้นที่จะใช้เมื่อกู้คืนเทนเซอร์
- dt: ประเภทของเทนเซอร์ที่จะคืนค่า
แอ็ตทริบิวต์ทางเลือก (ดู Attrs ):
- ที่ต้องการ_shard: ดัชนีของไฟล์ที่จะเปิดก่อนหากหลายไฟล์ตรงกับ
file_patternดูเอกสารประกอบสำหรับRestore
ผลตอบแทน:
-
Output: เทนเซอร์ที่ได้รับการฟื้นฟู
ตัวสร้างและผู้ทำลาย | |
|---|---|
RestoreSlice (const :: tensorflow::Scope & scope, :: tensorflow::Input file_pattern, :: tensorflow::Input tensor_name, :: tensorflow::Input shape_and_slice, DataType dt) | |
RestoreSlice (const :: tensorflow::Scope & scope, :: tensorflow::Input file_pattern, :: tensorflow::Input tensor_name, :: tensorflow::Input shape_and_slice, DataType dt, const RestoreSlice::Attrs & attrs) |
คุณลักษณะสาธารณะ | |
|---|---|
operation | |
tensor | |
งานสาธารณะ | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
ฟังก์ชันคงที่สาธารณะ | |
|---|---|
PreferredShard (int64 x) | |
โครงสร้าง | |
|---|---|
| เทนเซอร์โฟลว์ :: ops :: RestoreSlice :: Attrs | ตัวตั้งค่าแอ็ตทริบิวต์ทางเลือกสำหรับ RestoreSlice |
คุณลักษณะสาธารณะ
การดำเนินการ
Operation operation
เทนเซอร์
::tensorflow::Output tensor
งานสาธารณะ
คืนค่า Slice
RestoreSlice( const ::tensorflow::Scope & scope, ::tensorflow::Input file_pattern, ::tensorflow::Input tensor_name, ::tensorflow::Input shape_and_slice, DataType dt )
คืนค่า Slice
RestoreSlice( const ::tensorflow::Scope & scope, ::tensorflow::Input file_pattern, ::tensorflow::Input tensor_name, ::tensorflow::Input shape_and_slice, DataType dt, const RestoreSlice::Attrs & attrs )
โหนด
::tensorflow::Node * node() const
ตัวดำเนินการ::tensorflow::อินพุต
operator::tensorflow::Input() const
ตัวดำเนินการ::tensorflow::เอาต์พุต
operator::tensorflow::Output() const
ฟังก์ชันคงที่สาธารณะ
PreferredShard
Attrs PreferredShard( int64 x )