tensorflow:: ops:: บันทึก

#include <io_ops.h>

บันทึกเทนเซอร์อินพุตลงดิสก์

สรุป

ขนาดของ tensor_names ต้องตรงกับจำนวนเทนเซอร์ใน data data[i] จะถูกเขียนลงใน filename ชื่อ tensor_names[i]

ดูเพิ่มเติมที่ SaveSlices

ข้อโต้แย้ง:

  • ขอบเขต: วัตถุ ขอบเขต
  • ชื่อไฟล์: ต้องมีองค์ประกอบเพียงหนึ่งเดียว คือชื่อไฟล์ที่เราจะบันทึกเทนเซอร์ลงไป
  • tensor_names: รูปร่าง [N] ชื่อของเทนเซอร์ที่จะบันทึก
  • ข้อมูล: เทนเซอร์จำนวน N ตัวที่จะบันทึก

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

  • Operation ที่สร้างขึ้น

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

Save (const :: tensorflow::Scope & scope, :: tensorflow::Input filename, :: tensorflow::Input tensor_names, :: tensorflow::InputList data)

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

operation

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

operator::tensorflow::Operation () const

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

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

Operation operation

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

บันทึก

 Save(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input filename,
  ::tensorflow::Input tensor_names,
  ::tensorflow::InputList data
)

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

 operator::tensorflow::Operation() const