เทนเซอร์โฟลว์:: ปฏิบัติการ:: StringToNumber
#include <parsing_ops.h>แปลงแต่ละสตริงใน เทนเซอร์ อินพุตให้เป็นประเภทตัวเลขที่ระบุ
สรุป
(โปรดทราบว่า int32 overflow ส่งผลให้เกิดข้อผิดพลาด ในขณะที่ float overflow ส่งผลให้เกิดค่าปัดเศษ)
ข้อโต้แย้ง:
- ขอบเขต: วัตถุ ขอบเขต
 แอ็ตทริบิวต์ทางเลือก (ดู Attrs ):
-  out_type: ประเภทตัวเลขที่จะตีความแต่ละสตริงใน string_tensorเป็น
ผลตอบแทน:
| ตัวสร้างและผู้ทำลาย | |
|---|---|
| StringToNumber (const :: tensorflow::Scope & scope, :: tensorflow::Input string_tensor) | |
| StringToNumber (const :: tensorflow::Scope & scope, :: tensorflow::Input string_tensor, const StringToNumber::Attrs & attrs) | 
| คุณลักษณะสาธารณะ | |
|---|---|
| operation | |
| output | |
| งานสาธารณะ | |
|---|---|
| node () const | ::tensorflow::Node * | 
| operator::tensorflow::Input () const | |
| operator::tensorflow::Output () const | |
| ฟังก์ชันคงที่สาธารณะ | |
|---|---|
| OutType (DataType x) | |
| โครงสร้าง | |
|---|---|
| เทนเซอร์โฟลว์ :: ops :: StringToNumber :: Attrs | ตัวตั้งค่าแอ็ตทริบิวต์ทางเลือกสำหรับ StringToNumber | 
คุณลักษณะสาธารณะ
การดำเนินการ
Operation operation
เอาท์พุท
::tensorflow::Output output
งานสาธารณะ
StringToNumber
StringToNumber( const ::tensorflow::Scope & scope, ::tensorflow::Input string_tensor )
StringToNumber
StringToNumber( const ::tensorflow::Scope & scope, ::tensorflow::Input string_tensor, const StringToNumber::Attrs & attrs )
โหนด
::tensorflow::Node * node() const
ตัวดำเนินการ::tensorflow::อินพุต
operator::tensorflow::Input() const
ตัวดำเนินการ::tensorflow::เอาต์พุต
operator::tensorflow::Output() const
ฟังก์ชันคงที่สาธารณะ
ประเภทออก
Attrs OutType( DataType x )