tensorflow::ops::StringStrip

#include <string_ops.h>

Loại bỏ khoảng trắng đầu và cuối khỏi Tensor .

Bản tóm tắt

Luận điểm:

  • phạm vi: Một đối tượng Phạm vi
  • Đầu vào: Một Tensor chuỗi có bất kỳ hình dạng nào.

Trả về:

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

Ví dụ:

tf.strings.strip(["\nTensorFlow", " Thư viện Python "]).numpy() array([b'TensorFlow', b'Thư viện Python'], dtype=object)

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

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

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

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

Dải dây

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

nút

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const