tensorflow:: אופס:: ParallelConcat
#include <array_ops.h>
משרשרת רשימה של N
טנסורים לאורך הממד הראשון.
תַקצִיר
טנסור הקלט נדרש לכולם להיות בגודל 1 בממד הראשון.
לְדוּגמָה:
# 'x' is [[1, 4]] # 'y' is [[2, 5]] # 'z' is [[3, 6]] parallel_concat([x, y, z]) => [[1, 4], [2, 5], [3, 6]] # Pack along first dim.
ההבדל בין concat ל-parallel_concat הוא ש-concat דורש שכל התשומות יחושבו לפני שהפעולה תתחיל אך לא מחייב שצורות הקלט יהיו ידועות במהלך בניית הגרף. חיבור מקביל יעתיק חלקים מהקלט לפלט כשהם יהיו זמינים, במצבים מסוימים זה יכול לספק יתרון ביצועים.
טיעונים:
- scope: אובייקט Scope
- ערכים: טנסורים שיש לשרשר. כולם חייבים להיות בגודל 1 בממד הראשון ובאותה צורה.
- צורה: הצורה הסופית של התוצאה; צריך להיות שווה לצורות של כל קלט אבל עם מספר ערכי הקלט בממד הראשון.
החזרות:
-
Output
: הטנזור המשורשר.
בנאים והורסים | |
---|---|
ParallelConcat (const :: tensorflow::Scope & scope, :: tensorflow::InputList values, PartialTensorShape shape) |
תכונות ציבוריות | |
---|---|
operation | |
output |
תפקידים ציבוריים | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
תכונות ציבוריות
מִבצָע
Operation operation
תְפוּקָה
::tensorflow::Output output
תפקידים ציבוריים
ParallelConcat
ParallelConcat( const ::tensorflow::Scope & scope, ::tensorflow::InputList values, PartialTensorShape shape )
צוֹמֶת
::tensorflow::Node * node() const
מפעיל::tensorflow::קלט
operator::tensorflow::Input() const
אופרטור::tensorflow::פלט
operator::tensorflow::Output() const
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-25 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-25 (שעון UTC)."],[],[],null,["# tensorflow::ops::ParallelConcat Class Reference\n\ntensorflow::ops::ParallelConcat\n===============================\n\n`#include \u003carray_ops.h\u003e`\n\nConcatenates a list of `N` tensors along the first dimension.\n\nSummary\n-------\n\nThe input tensors are all required to have size 1 in the first dimension.\n\nFor example:\n\n\n```scdoc\n# 'x' is [[1, 4]]\n# 'y' is [[2, 5]]\n# 'z' is [[3, 6]]\nparallel_concat([x, y, z]) =\u003e [[1, 4], [2, 5], [3, 6]] # Pack along first dim.\n```\n\n\u003cbr /\u003e\n\nThe difference between concat and parallel_concat is that concat requires all of the inputs be computed before the operation will begin but doesn't require that the input shapes be known during graph construction. Parallel concat will copy pieces of the input into the output as they become available, in some situations this can provide a performance benefit.\n\nArguments:\n\n- scope: A [Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- values: Tensors to be concatenated. [All](/versions/r1.15/api_docs/cc/class/tensorflow/ops/all#classtensorflow_1_1ops_1_1_all) must have size 1 in the first dimension and same shape.\n- shape: the final shape of the result; should be equal to the shapes of any input but with the number of input values in the first dimension.\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output): The concatenated tensor.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [ParallelConcat](#classtensorflow_1_1ops_1_1_parallel_concat_1a60020ca0a0ad9b1f1f1ab296cc49745d)`(const ::`[tensorflow::Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::InputList](/versions/r1.15/api_docs/cc/class/tensorflow/input-list#classtensorflow_1_1_input_list)` values, PartialTensorShape shape)` ||\n\n| ### Public attributes ||\n|---------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_parallel_concat_1af663fb0e8d0b48dbdd39c4663f6a995c) | [Operation](/versions/r1.15/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [output](#classtensorflow_1_1ops_1_1_parallel_concat_1ad8442cea6d8145bdcdc7fa4546c3a25c) | `::`[tensorflow::Output](/versions/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n\n| ### Public functions ||\n|---------------------------------------------------------------------------------------------------------------------------|------------------------|\n| [node](#classtensorflow_1_1ops_1_1_parallel_concat_1ac4a6ff40acbc954f1d49c80fc94645df)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_parallel_concat_1a2bf16ff17da885269b998bbd3053caea)`() const ` | ` ` ` ` |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_parallel_concat_1ab99eff81cc7f72feedcba5cb98e7b689)`() const ` | ` ` ` ` |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\n### output\n\n```text\n::tensorflow::Output output\n``` \n\nPublic functions\n----------------\n\n### ParallelConcat\n\n```gdscript\n ParallelConcat(\n const ::tensorflow::Scope & scope,\n ::tensorflow::InputList values,\n PartialTensorShape shape\n)\n``` \n\n### node\n\n```gdscript\n::tensorflow::Node * node() const \n``` \n\n### operator::tensorflow::Input\n\n```gdscript\n operator::tensorflow::Input() const \n``` \n\n### operator::tensorflow::Output\n\n```gdscript\n operator::tensorflow::Output() const \n```"]]