เทนเซอร์โฟลว์:: ปฏิบัติการ:: AsString

#include <string_ops.h>

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

สรุป

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

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

ข้อโต้แย้ง:

แอ็ตทริบิวต์ทางเลือก (ดู Attrs ):

  • ความแม่นยำ: ความแม่นยำหลังทศนิยมที่ใช้สำหรับตัวเลขทศนิยม ใช้เฉพาะในกรณีที่ความแม่นยำ > -1
  • วิทยาศาสตร์: ใช้สัญกรณ์ทางวิทยาศาสตร์สำหรับตัวเลขทศนิยม
  • สั้นที่สุด: ใช้การแสดงที่สั้นที่สุด (ไม่ว่าจะเป็นทางวิทยาศาสตร์หรือมาตรฐาน) สำหรับตัวเลขทศนิยม
  • width: ปัด ตัวเลขก่อนทศนิยมให้เป็นความกว้างนี้ ใช้กับทั้งจำนวนจุดลอยตัวและจำนวนเต็ม ใช้เฉพาะในกรณีที่ความกว้าง > -1
  • เติม: ค่าที่จะเติมหากความกว้าง > -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)

โครงสร้าง

เทนเซอร์โฟลว์ :: ops :: AsString :: Attrs

ตัวตั้งค่าแอตทริบิวต์เพิ่มเติมสำหรับ AsString

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

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

Operation operation

เอาท์พุท

::tensorflow::Output output

งานสาธารณะ

AsString

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

AsString

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

โหนด

::tensorflow::Node * node() const 

ตัวดำเนินการ::tensorflow::อินพุต

 operator::tensorflow::Input() const 

ตัวดำเนินการ::tensorflow::เอาต์พุต

 operator::tensorflow::Output() const 

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

เติม

Attrs Fill(
  StringPiece x
)

ความแม่นยำ

Attrs Precision(
  int64 x
)

ทางวิทยาศาสตร์

Attrs Scientific(
  bool x
)

สั้นที่สุด

Attrs Shortest(
  bool x
)

ความกว้าง

Attrs Width(
  int64 x
)