เทนเซอร์โฟลว์:: ปฏิบัติการ:: StringLength
#include <string_ops.h> ความยาวสตริงของ input
สรุป
คำนวณความยาวของแต่ละสตริงที่กำหนดในเทนเซอร์อินพุต
ข้อโต้แย้ง:
- ขอบเขต: วัตถุ ขอบเขต
- input: สตริงที่ใช้คำนวณความยาว
 แอ็ตทริบิวต์ทางเลือก (ดู Attrs ):
-  unit: หน่วยที่นับเพื่อคำนวณความยาวสตริง หนึ่งใน: "BYTE"(สำหรับจำนวนไบต์ในแต่ละสตริง) หรือ"UTF8_CHAR"(สำหรับจำนวนจุดโค้ด Unicode ที่เข้ารหัส UTF-8 ในแต่ละสตริง) ผลลัพธ์ไม่ได้ถูกกำหนดไว้หากunit=UTF8_CHARและสตริงinputไม่มี UTF-8 ที่ถูกต้องเชิงโครงสร้าง
ผลตอบแทน:
-  Output: เทนเซอร์จำนวนเต็มที่มีรูปร่างเหมือนกับinputเอาต์พุตประกอบด้วยความยาวสตริงที่ชาญฉลาดของinput
| ตัวสร้างและผู้ทำลาย | |
|---|---|
| StringLength (const :: tensorflow::Scope & scope, :: tensorflow::Input input) | |
| StringLength (const :: tensorflow::Scope & scope, :: tensorflow::Input input, const StringLength::Attrs & attrs) | 
| คุณลักษณะสาธารณะ | |
|---|---|
| operation | |
| output | |
| งานสาธารณะ | |
|---|---|
| node () const | ::tensorflow::Node * | 
| operator::tensorflow::Input () const | |
| operator::tensorflow::Output () const | |
| ฟังก์ชันคงที่สาธารณะ | |
|---|---|
| Unit (StringPiece x) | |
| โครงสร้าง | |
|---|---|
| เทนเซอร์โฟลว์ :: ops :: StringLength :: Attrs | ตัวตั้งค่าแอ็ตทริบิวต์ทางเลือกสำหรับ StringLength | 
คุณลักษณะสาธารณะ
การดำเนินการ
Operation operation
เอาท์พุท
::tensorflow::Output output
งานสาธารณะ
StringLength
StringLength( const ::tensorflow::Scope & scope, ::tensorflow::Input input )
StringLength
StringLength( const ::tensorflow::Scope & scope, ::tensorflow::Input input, const StringLength::Attrs & attrs )
โหนด
::tensorflow::Node * node() const
ตัวดำเนินการ::tensorflow::อินพุต
operator::tensorflow::Input() const
ตัวดำเนินการ::tensorflow::เอาต์พุต
operator::tensorflow::Output() const
ฟังก์ชันคงที่สาธารณะ
หน่วย
Attrs Unit( StringPiece x )