dòng chảy căng:: ôi:: TensorArrayTập hợp

#include <data_flow_ops.h>

Tập hợp các phần tử cụ thể từ TensorArray thành value đầu ra.

Bản tóm tắt

Tất cả các phần tử được chọn theo indices phải có hình dạng giống nhau.

Tranh luận:

  • phạm vi: Một đối tượng Phạm vi
  • tay cầm: Tay cầm của TensorArray .
  • chỉ mục: Các vị trí trong TensorArray để đọc các phần tử tensor.
  • flow_in: Một vô hướng float thực thi chuỗi hoạt động thích hợp.
  • dtype: Kiểu của phần tử được trả về.

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 biết. Được sử dụng để xác nhận 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 đủ thì việc thu thập TensorArrays có kích thước bằng 0 là một lỗi.

Trả về:

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

Hàm 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

Trình 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

TensorArrayTập hợp

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

TensorArrayTập hợp

 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 

toán tử::tenorflow::Đầu vào

 operator::tensorflow::Input() const 

toán tử::tenorflow::Đầu ra

 operator::tensorflow::Output() const 

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

Hình dạng phần tử

Attrs ElementShape(
  PartialTensorShape x
)