เทนเซอร์โฟลว์:: ปฏิบัติการ:: TensorArrayConcat
bookmark_borderbookmark
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
#include <data_flow_ops.h>
เชื่อมต่อ องค์ประกอบจาก TensorArray เข้ากับค่า value
สรุป
ใช้องค์ประกอบ T
ของรูปร่าง
(n0 x d0 x d1 x ...), (n1 x d0 x d1 x ...), ..., (n(T-1) x d0 x d1 x ...)
และต่อเข้าด้วยกันเป็นรูป ทรงเทนเซอร์ :
```(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))
.
คุณลักษณะสาธารณะ
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 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.2/api_docs/cc/class/tensorflow/ops/concat#classtensorflow_1_1ops_1_1_concat) the elements from the [TensorArray](/versions/r2.2/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.2/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.2/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.2/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.2/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output value: /versions/r2.2/api_docs/cc/class/tensorflow/ops/all#classtensorflow_1_1ops_1_1_all of the elements in the /versions/r2.2/api_docs/cc/class/tensorflow/ops/tensor-array#classtensorflow_1_1ops_1_1_tensor_array, concatenated along the first\n axis.\n * /versions/r2.2/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.2/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope` & scope, ::`/versions/r2.2/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input` handle, ::`/versions/r2.2/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.2/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope` & scope, ::`/versions/r2.2/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input` handle, ::`/versions/r2.2/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input` flow_in, DataType dtype, const `/versions/r2.2/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.2/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.2/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.2/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.2/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.2/api_docs/cc/struct/tensorflow/ops/tensor-array-concat/attrs\n \n \n Optional attribute setters for /versions/r2.2/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````"]]