tensorflow::ops::RestoreSlice

#include <io_ops.h>

กู้คืนเทนเซอร์จากไฟล์เช็คพอยต์

สรุป

ฟังก์ชันนี้คล้ายกับ Restore แต่แตกต่างตรงที่เทนเซอร์ที่ถูกกู้คืนสามารถระบุได้ว่าเติมเต็มเพียงส่วนเล็ก ๆ ของเทนเซอร์ขนาดใหญ่กว่า shape_and_slice ระบุรูปร่างของเทนเซอร์ขนาดใหญ่และส่วนที่เทนเซอร์ที่ถูกกู้คืนครอบคลุม

อินพุต shape_and_slice มีรูปแบบเดียวกันกับองค์ประกอบของอินพุต shapes_and_slices ของโอเปอเรเตอร์ SaveSlices

ข้อโต้แย้ง:

  • ขอบเขต: วัตถุ ขอบเขต
  • file_pattern: ต้องมีองค์ประกอบเพียงหนึ่งเดียว รูปแบบของไฟล์ที่เราอ่านเทนเซอร์นั้น
  • tensor_name: ต้องมีองค์ประกอบเพียงหนึ่งเดียว ชื่อของเทนเซอร์ที่จะกู้คืน
  • shape_and_slice: ค่าสเกลาร์ ระบุรูปร่างและส่วนที่จะใช้ในการกู้คืนเทนเซอร์
  • dt: ประเภทของเทนเซอร์ที่จะทำการกู้คืน

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

  • preferred_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)

โครงสร้าง

tensorflow::ops::RestoreSlice::Attrs

ตัวเลือกการตั้งค่าแอตทริบิวต์สำหรับ RestoreSlice ( ไม่จำเป็น)

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

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

Operation operation

เทนเซอร์

::tensorflow::Output tensor

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

กู้คืนสไลซ์

 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
)

โหนด

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const 

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

ชาร์ดที่ต้องการ

Attrs PreferredShard(
  int64 x
)