tensorflow::ops::WholeFileReader

#include <io_ops.h>

โปรแกรมอ่านไฟล์ที่ส่งออกเนื้อหาทั้งหมดของไฟล์เป็นค่า

สรุป

วิธีใช้งานคือ ใส่ชื่อไฟล์ลงในคิว ผลลัพธ์ของ ฟังก์ชัน ReaderRead จะเป็นชื่อไฟล์ (คีย์) และเนื้อหาของไฟล์นั้น (ค่า)

ข้อโต้แย้ง:

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

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

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

  • Output : ตัวจัดการสำหรับอ้างอิงถึง Reader

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

WholeFileReader (const :: tensorflow::Scope & scope)
WholeFileReader (const :: tensorflow::Scope & scope, const WholeFileReader::Attrs & attrs)

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

operation
reader_handle

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

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

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

Container (StringPiece x)
SharedName (StringPiece x)

โครงสร้าง

tensorflow::ops::WholeFileReader::Attrs

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

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

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

Operation operation

ผู้อ่าน_แฮนด์เดิล

::tensorflow::Output reader_handle

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

WholeFileReader

 WholeFileReader(
  const ::tensorflow::Scope & scope
)

WholeFileReader

 WholeFileReader(
  const ::tensorflow::Scope & scope,
  const WholeFileReader::Attrs & attrs
)

โหนด

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const 

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

คอนเทนเนอร์

Attrs Container(
  StringPiece x
)

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

Attrs SharedName(
  StringPiece x
)