tensorflow::ops::StringToNumber

#include <parsing_ops.h>

แปลงสตริงแต่ละสตริงใน เทนเซอร์ อินพุตให้เป็นประเภทตัวเลขที่ระบุ

สรุป

(โปรดทราบว่า หากค่า int32 เกินขีดจำกัด จะทำให้เกิดข้อผิดพลาด ในขณะที่หากค่า float เกินขีดจำกัด จะทำให้ได้ค่าที่ปัดเศษ)

ข้อโต้แย้ง:

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

  • out_type: ประเภทตัวเลขที่จะใช้ในการตีความสตริงแต่ละสตริงใน string_tensor

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

  • Output : เทนเซอร์ ที่มีรูปร่างเหมือนกับ 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)

โครงสร้าง

tensorflow::ops::StringToNumber::Attrs

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

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

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

Operation operation

เอาต์พุต

::tensorflow::Output output

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

แปลงสตริงเป็นตัวเลข

 StringToNumber(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input string_tensor
)

แปลงสตริงเป็นตัวเลข

 StringToNumber(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input string_tensor,
  const StringToNumber::Attrs & attrs
)

โหนด

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const 

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

ประเภทเอาต์พุต

Attrs OutType(
  DataType x
)