tensorflow::ops::AsString

#include <string_ops.h>

แปลงแต่ละรายการในเทนเซอร์ที่กำหนดให้เป็นสตริง

สรุป

รองรับชนิดข้อมูลตัวเลขและบูลีนหลายประเภท

สำหรับเรื่อง Unicode โปรดดูบทช่วยสอน [ https://www.tensorflow.org/tutorials/representation/unicode ](การทำงานกับข้อความ Unicode)

ข้อโต้แย้ง:

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

  • ความแม่นยำ: ค่าความแม่นยำหลังจุดทศนิยมที่ใช้สำหรับตัวเลขทศนิยม ใช้เฉพาะเมื่อค่าความแม่นยำ > -1 เท่านั้น
  • แบบวิทยาศาสตร์: ใช้สัญกรณ์วิทยาศาสตร์สำหรับตัวเลขทศนิยม
  • สั้นที่สุด: ใช้รูปแบบการแสดงผลที่สั้นที่สุด (ไม่ว่าจะเป็นแบบวิทยาศาสตร์หรือแบบมาตรฐาน) สำหรับตัวเลขทศนิยม
  • width: เติม ช่องว่างให้กับตัวเลขก่อนทศนิยมให้มีความกว้างตามที่กำหนด ใช้ได้ทั้งกับตัวเลขทศนิยมและจำนวนเต็ม ใช้เฉพาะเมื่อ width > -1 เท่านั้น
  • fill: ค่าที่จะใช้เติมหาก width > -1 ถ้าว่างเปล่า จะเติมด้วยช่องว่าง ค่าทั่วไปอีกค่าหนึ่งคือ '0' สตริงต้องมีความยาวไม่เกิน 1 ตัวอักษร

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

  • Output : เทนเซอร์เอาต์พุต

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

AsString (const :: tensorflow::Scope & scope, :: tensorflow::Input input)
AsString (const :: tensorflow::Scope & scope, :: tensorflow::Input input, const AsString::Attrs & attrs)

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

operation
output

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

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

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

Fill (StringPiece x)
Precision (int64 x)
Scientific (bool x)
Shortest (bool x)
Width (int64 x)

โครงสร้าง

tensorflow::ops::AsString::Attrs

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

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

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

Operation operation

เอาต์พุต

::tensorflow::Output output

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

แอสสตริง

 AsString(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input
)

แอสสตริง

 AsString(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  const AsString::Attrs & attrs
)

โหนด

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const 

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

เติม

Attrs Fill(
  StringPiece x
)

ความแม่นยำ

Attrs Precision(
  int64 x
)

วิทยาศาสตร์

Attrs Scientific(
  bool x
)

สั้นที่สุด

Attrs Shortest(
  bool x
)

ความกว้าง

Attrs Width(
  int64 x
)