Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
dòng chảy căng:: ôi:: TensorArrayConcat
#include <data_flow_ops.h>
Nối các phần tử từ TensorArray thành value
trị value .
Bản tóm tắt
Lấy các phần tử T
của hình dạng
(n0 x d0 x d1 x ...), (n1 x d0 x d1 x ...), ..., (n(T-1) x d0 x d1 x ...)
và nối chúng thành một Tensor có hình dạng:
```(n0 + n1 + ... + n(T-1) x d0 x d1 x ...)
All elements must have the same shape (excepting the first dimension).
Arguments:
* scope: A Scope object
* handle: The handle to a TensorArray.
* flow_in: A float scalar that enforces proper chaining of operations.
* dtype: The type of the elem that is returned.
Optional attributes (see Attrs
):
* element_shape_except0: The expected shape of an element, if known,
excluding the first dimension. Used to validate the shapes of
TensorArray elements. If this shape is not fully specified, concatenating
zero-size TensorArrays is an error.
Returns:
* Output
value: All of the elements in the TensorArray, concatenated along the first
axis.
* Output
lengths: A vector of the row sizes of the original T elements in the
value output. In the example above, this would be the values:
(n1, n2, ..., n(T-1))
.
Thuộc tính công khai
Chức năng công cộng
Các hàm tĩnh công khai
Yếu tốHình dạngNgoại trừ0
Attrs ElementShapeExcept0(
PartialTensorShape x
)
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[],[],null,["# tensorflow::ops::TensorArrayConcat Class Reference\n\ntensorflow::ops::TensorArrayConcat\n==================================\n\n`#include \u003cdata_flow_ops.h\u003e`\n\n[Concat](/versions/r2.3/api_docs/cc/class/tensorflow/ops/concat#classtensorflow_1_1ops_1_1_concat) the elements from the [TensorArray](/versions/r2.3/api_docs/cc/class/tensorflow/ops/tensor-array#classtensorflow_1_1ops_1_1_tensor_array) into value `value`.\n\nSummary\n-------\n\nTakes `T` elements of shapes\n\n\n```text\n (n0 x d0 x d1 x ...), (n1 x d0 x d1 x ...), ..., (n(T-1) x d0 x d1 x ...)\n \n```\n\n\u003cbr /\u003e\n\nand concatenates them into a [Tensor](/versions/r2.3/api_docs/cc/class/tensorflow/tensor#classtensorflow_1_1_tensor) of shape:\n\n\\`\\`\\`(n0 + n1 + ... + n(T-1) x d0 x d1 x ...) \n\n````text\n\n \n /versions/r2.3/api_docs/cc/class/tensorflow/ops/all#classtensorflow_1_1ops_1_1_all elements must have the same shape (excepting the first dimension).\n \n \n \n```carbon\nArguments:\n* scope: A Scope object\n* handle: The handle to a TensorArray.\n* flow_in: A float scalar that enforces proper chaining of operations.\n* dtype: The type of the elem that is returned.\n```\n\n \n \n \n Optional attributes (see /versions/r2.3/api_docs/cc/struct/tensorflow/ops/tensor-array-concat/attrs#structtensorflow_1_1ops_1_1_tensor_array_concat_1_1_attrs):\n * element_shape_except0: The expected shape of an element, if known,\n excluding the first dimension. Used to validate the shapes of\n TensorArray elements. If this shape is not fully specified, concatenating\n zero-size TensorArrays is an error.\n\n\n\n \n \n \n Returns:\n * /versions/r2.3/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output value: /versions/r2.3/api_docs/cc/class/tensorflow/ops/all#classtensorflow_1_1ops_1_1_all of the elements in the /versions/r2.3/api_docs/cc/class/tensorflow/ops/tensor-array#classtensorflow_1_1ops_1_1_tensor_array, concatenated along the first\n axis.\n * /versions/r2.3/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output lengths: A vector of the row sizes of the original T elements in the\n value output. In the example above, this would be the values:\n (n1, n2, ..., n(T-1)). \n\n\n\n \n \n \n \n \n### Constructors and Destructors\n\n\n \n \n \n \n #classtensorflow_1_1ops_1_1_tensor_array_concat_1aab54b53cc7e1c5f65154a9ab7a3a2b6f`(const ::`/versions/r2.3/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope` & scope, ::`/versions/r2.3/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input` handle, ::`/versions/r2.3/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input` flow_in, DataType dtype)`\n \n\n \n \n \n \n #classtensorflow_1_1ops_1_1_tensor_array_concat_1adce330002ce711626c4b067bca8eb40e`(const ::`/versions/r2.3/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope` & scope, ::`/versions/r2.3/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input` handle, ::`/versions/r2.3/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input` flow_in, DataType dtype, const `/versions/r2.3/api_docs/cc/struct/tensorflow/ops/tensor-array-concat/attrs#structtensorflow_1_1ops_1_1_tensor_array_concat_1_1_attrs` & attrs)`\n \n\n \n \n \n \n \n \n \n### Public attributes\n\n\n \n \n \n \n #classtensorflow_1_1ops_1_1_tensor_array_concat_1af3dca4f4a395a0bb0702e092086e7b03\n \n \n \n `::`/versions/r2.3/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output\n \n \n \n \n \n #classtensorflow_1_1ops_1_1_tensor_array_concat_1a680b113e26c09068a4f01c01f797b085\n \n \n \n /versions/r2.3/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation\n \n \n \n \n \n #classtensorflow_1_1ops_1_1_tensor_array_concat_1a636fe92f677b9f2e9d667fa338837b4e\n \n \n \n `::`/versions/r2.3/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output\n \n \n \n \n \n \n \n \n### Public static functions\n\n\n \n \n \n \n #classtensorflow_1_1ops_1_1_tensor_array_concat_1a2e0ae98efaf62f30ca8b83f5f42baa76`(PartialTensorShape x)`\n \n \n \n /versions/r2.3/api_docs/cc/struct/tensorflow/ops/tensor-array-concat/attrs#structtensorflow_1_1ops_1_1_tensor_array_concat_1_1_attrs\n \n \n \n \n \n \n \n \n### Structs\n\n\n \n \n \n \n /versions/r2.3/api_docs/cc/struct/tensorflow/ops/tensor-array-concat/attrs\n \n \n Optional attribute setters for /versions/r2.3/api_docs/cc/class/tensorflow/ops/tensor-array-concat#classtensorflow_1_1ops_1_1_tensor_array_concat. \n\n \n \n \n Public attributes\n \n \n### lengths\n\n\n \n\n\n```text\n::tensorflow::Output lengths\n```\n\n \n\n \n \n \n### operation\n\n\n \n\n\n```text\nOperation operation\n```\n\n \n\n \n \n \n### value\n\n\n \n\n\n```text\n::tensorflow::Output value\n```\n\n \n\n \n Public functions\n \n \n### TensorArrayConcat\n\n\n \n\n\n```gdscript\n TensorArrayConcat(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input handle,\n ::tensorflow::Input flow_in,\n DataType dtype\n)\n```\n\n \n\n \n \n \n### TensorArrayConcat\n\n\n \n\n\n```gdscript\n TensorArrayConcat(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input handle,\n ::tensorflow::Input flow_in,\n DataType dtype,\n const TensorArrayConcat::Attrs & attrs\n)\n```\n\n \n\n \n Public static functions\n \n \n### ElementShapeExcept0\n\n\n \n\n\n```text\nAttrs ElementShapeExcept0(\n PartialTensorShape x\n)\n```\n\n \n\n \n\n \n\n \n````"]]