tensorflow::ops::StringFormat

#include <string_ops.h>

จัดรูปแบบเทมเพลตสตริงโดยใช้รายการเทนเซอร์

สรุป

จัดรูปแบบเทมเพลตสตริงโดยใช้รายการเทนเซอร์ และแสดงผลสรุปของเทนเซอร์ในรูปแบบที่สวยงาม

ข้อโต้แย้ง:

  • ขอบเขต: วัตถุ ขอบเขต
  • อินพุต: รายชื่อเทนเซอร์ที่จะจัดรูปแบบให้อยู่ในรูปแบบสตริงตัวยึดตำแหน่ง

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

  • template_: สตริงที่เป็นแม่แบบสำหรับจัดรูปแบบสรุปข้อมูลเทนเซอร์
  • ตัวยึดตำแหน่ง: สตริง โดยในแต่ละตัวยึดตำแหน่งในเทมเพลต จะมีการแทรกข้อมูลสรุปเทนเซอร์ถัดไป
  • สรุป: เมื่อจัดรูปแบบข้อมูลสรุปของเทนเซอร์ ให้พิมพ์เฉพาะรายการสรุปแรกและรายการสรุปสุดท้ายของแต่ละมิติของเทนเซอร์

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

  • Output : = ค่าสตริงสเกลาร์ที่ได้

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

StringFormat (const :: tensorflow::Scope & scope, :: tensorflow::InputList inputs)
StringFormat (const :: tensorflow::Scope & scope, :: tensorflow::InputList inputs, const StringFormat::Attrs & attrs)

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

operation
output

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

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

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

Placeholder (StringPiece x)
Summarize (int64 x)
Template (StringPiece x)

โครงสร้าง

tensorflow::ops::StringFormat::Attrs

ตัวเลือกในการตั้งค่าแอตทริบิวต์สำหรับ StringFormat

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

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

Operation operation

เอาต์พุต

::tensorflow::Output output

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

รูปแบบสตริง

 StringFormat(
  const ::tensorflow::Scope & scope,
  ::tensorflow::InputList inputs
)

รูปแบบสตริง

 StringFormat(
  const ::tensorflow::Scope & scope,
  ::tensorflow::InputList inputs,
  const StringFormat::Attrs & attrs
)

โหนด

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const 

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

ตัวยึดตำแหน่ง

Attrs Placeholder(
  StringPiece x
)

สรุป

Attrs Summarize(
  int64 x
)

แม่แบบ

Attrs Template(
  StringPiece x
)