tensorflow:: אופס:: BarrierInsertMany
#include <data_flow_ops.h>
עבור כל מקש, מקצה את הערך המתאים לרכיב שצוין.
תַקצִיר
אם מפתח לא נמצא במחסום, פעולה זו תיצור אלמנט חדש שאינו שלם. אם נמצא מפתח במחסום, ולרכיב כבר יש ערך ב-component_index, פעולה זו תיכשל עם INVALID_ARGUMENT, ותשאיר את המחסום במצב לא מוגדר.
טיעונים:
- scope: אובייקט Scope
- ידית: הידית למחסום.
- keys: טנזור חד מימדי של מפתחות, באורך n.
- ערכים: טנסור מכל מימד של ערכים, המשויכים למפתחות המתאימים. הממד ה-0 חייב להיות באורך n.
- component_index: הרכיב של רכיבי המחסום שמוקצים.
החזרות:
-
Operation
שנוצר
בנאים והורסים | |
---|---|
BarrierInsertMany (const :: tensorflow::Scope & scope, :: tensorflow::Input handle, :: tensorflow::Input keys, :: tensorflow::Input values, int64 component_index) |
תכונות ציבוריות | |
---|---|
operation |
תפקידים ציבוריים | |
---|---|
operator::tensorflow::Operation () const |
תכונות ציבוריות
מִבצָע
Operation operation
תפקידים ציבוריים
BarrierInsertMany
BarrierInsertMany( const ::tensorflow::Scope & scope, ::tensorflow::Input handle, ::tensorflow::Input keys, ::tensorflow::Input values, int64 component_index )
אופרטור::tensorflow::פעולה
operator::tensorflow::Operation() const
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-26 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-26 (שעון UTC)."],[],[],null,["# tensorflow::ops::BarrierInsertMany Class Reference\n\ntensorflow::ops::BarrierInsertMany\n==================================\n\n`#include \u003cdata_flow_ops.h\u003e`\n\nFor each key, assigns the respective value to the specified component.\n\nSummary\n-------\n\nIf a key is not found in the barrier, this operation will create a new incomplete element. If a key is found in the barrier, and the element already has a value at component_index, this operation will fail with INVALID_ARGUMENT, and leave the barrier in an undefined state.\n\nArguments:\n\n- scope: A [Scope](/versions/r2.2/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- handle: The handle to a barrier.\n- keys: A one-dimensional tensor of keys, with length n.\n- values: An any-dimensional tensor of values, which are associated with the respective keys. The 0th dimension must have length n.\n- component_index: The component of the barrier elements that is being assigned.\n\n\u003cbr /\u003e\n\nReturns:\n\n- the created [Operation](/versions/r2.2/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation)\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [BarrierInsertMany](#classtensorflow_1_1ops_1_1_barrier_insert_many_1a8ee6cfc13fdf57f11e86b4d6692898b8)`(const ::`[tensorflow::Scope](/versions/r2.2/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.2/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` handle, ::`[tensorflow::Input](/versions/r2.2/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` keys, ::`[tensorflow::Input](/versions/r2.2/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` values, int64 component_index)` ||\n\n| ### Public attributes ||\n|-------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_barrier_insert_many_1aa3425272e66a4448615caa6b258f4a66) | [Operation](/versions/r2.2/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n\n| ### Public functions ||\n|----------------------------------------------------------------------------------------------------------------------------------|---------|\n| [operator::tensorflow::Operation](#classtensorflow_1_1ops_1_1_barrier_insert_many_1ad8ad6d9598344b4090c7d2af0ace852d)`() const ` | ` ` ` ` |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\nPublic functions\n----------------\n\n### BarrierInsertMany\n\n```gdscript\n BarrierInsertMany(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input handle,\n ::tensorflow::Input keys,\n ::tensorflow::Input values,\n int64 component_index\n)\n``` \n\n### operator::tensorflow::Operation\n\n```gdscript\n operator::tensorflow::Operation() const \n```"]]