tensorflow::ops::StringToNumber

#include <parsing_ops.h>

Chuyển đổi từng chuỗi ký tự trong Tensor đầu vào sang kiểu dữ liệu số được chỉ định.

Bản tóm tắt

(Lưu ý rằng tràn số kiểu int32 sẽ dẫn đến lỗi, trong khi tràn số kiểu float sẽ dẫn đến giá trị được làm tròn.)

Luận điểm:

Các thuộc tính tùy chọn (xem Attrs ):

  • out_type: Kiểu dữ liệu số dùng để diễn giải từng chuỗi trong string_tensor .

Trả về:

  • Output : Một Tensor có cùng hình dạng với chuỗi đầu vào string_tensor .

Hàm khởi tạo và hàm hủy

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

Thuộc tính công khai

operation
output

Chức năng công cộng

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

Các hàm tĩnh công khai

OutType (DataType x)

Cấu trúc

tensorflow::ops::StringToNumber::Attrs

Các thiết lập thuộc tính tùy chọn cho StringToNumber .

Thuộc tính công khai

hoạt động

Operation operation

đầu ra

::tensorflow::Output output

Chức năng công cộng

Chuyển đổi chuỗi thành số

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

Chuyển đổi chuỗi thành số

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

nút

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const 

Các hàm tĩnh công khai

OutType

Attrs OutType(
  DataType x
)