tensorflow::ops::TensorArrayGather

#include <data_flow_ops.h>

Thu thập các phần tử cụ thể từ TensorArray vào value đầu ra.

Bản tóm tắt

Tất cả các phần tử được chọn bằng indices phải có cùng hình dạng.

Luận điểm:

  • phạm vi: Một đối tượng Phạm vi
  • handle: Con trỏ đến một TensorArray .
  • chỉ số: Vị trí trong TensorArray mà từ đó đọc các phần tử tensor.
  • flow_in: Một giá trị vô hướng kiểu float đảm bảo sự nối tiếp chính xác của các thao tác.
  • dtype: Kiểu dữ liệu của phần tử được trả về.

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

  • element_shape: Hình dạng dự kiến ​​của một phần tử, nếu được biết. Được sử dụng để xác thực hình dạng của các phần tử TensorArray . Nếu hình dạng này không được chỉ định đầy đủ, việc thu thập các TensorArray có kích thước bằng không sẽ gây ra lỗi.

Trả về:

  • Output : Tất cả các phần tử trong TensorArray được nối lại với nhau dọc theo một trục mới (chiều 0 mới).

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

TensorArrayGather (const :: tensorflow::Scope & scope, :: tensorflow::Input handle, :: tensorflow::Input indices, :: tensorflow::Input flow_in, DataType dtype)
TensorArrayGather (const :: tensorflow::Scope & scope, :: tensorflow::Input handle, :: tensorflow::Input indices, :: tensorflow::Input flow_in, DataType dtype, const TensorArrayGather::Attrs & attrs)

Thuộc tính công khai

operation
value

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

ElementShape (PartialTensorShape x)

Cấu trúc

tensorflow::ops::TensorArrayGather::Attrs

Các phương thức thiết lập thuộc tính tùy chọn cho TensorArrayGather .

Thuộc tính công khai

hoạt động

Operation operation

giá trị

::tensorflow::Output value

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

TensorArrayGather

 TensorArrayGather(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input handle,
  ::tensorflow::Input indices,
  ::tensorflow::Input flow_in,
  DataType dtype
)

TensorArrayGather

 TensorArrayGather(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input handle,
  ::tensorflow::Input indices,
  ::tensorflow::Input flow_in,
  DataType dtype,
  const TensorArrayGather::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

Hình dạng phần tử

Attrs ElementShape(
  PartialTensorShape x
)