tensorflow:: אופס:: BarrierTakeMany
#include <data_flow_ops.h>
לוקח את המספר הנתון של אלמנטים שהושלמו ממחסום.
תַקצִיר
פעולה זו משרשרת טנסורים של רכיבים שלמים לאורך הממד ה-0 כדי ליצור טנסור רכיב בודד.
אלמנטים יוצאים מהמחסום כשהם שלמים, ובסדר שבו הוכנסו למחסום. פלט המדדים מספק מידע על האצווה שבה כל אלמנט הוכנס במקור למחסום.
טיעונים:
- scope: אובייקט Scope
- ידית: הידית למחסום.
- num_elements: טנזור בעל אלמנט יחיד המכיל את מספר האלמנטים שיש לקחת.
- component_types: הסוג של כל רכיב בערך.
מאפיינים אופציונליים (ראה Attrs
):
- allow_small_batch: אפשר להחזיר פחות מ-num_elements פריטים אם המחסום כבר סגור.
- timeout_ms: אם התור ריק, פעולה זו תחסום למשך עד timeout_ms אלפיות השנייה. הערה: אפשרות זו אינה נתמכת עדיין.
החזרות:
- מדדי
Output
: טנזור חד מימדי של מדדים, עם אורך num_elems. מדדים אלו מתייחסים לאצווה שבה הוצבו הערכים במחסום (החל מ-MIN_LONG ועולה עם כל BarrierInsertMany ). - מפתחות
Output
: טנסור חד מימדי של מפתחות, עם אורך num_elements. - ערכי
OutputList
: טנסור אחד בכל מימדי לכל רכיב באלמנט מחסום. לכל הערכים יש אורך num_elements בממד ה-0.
בנאים והורסים | |
---|---|
BarrierTakeMany (const :: tensorflow::Scope & scope, :: tensorflow::Input handle, :: tensorflow::Input num_elements, const DataTypeSlice & component_types) | |
BarrierTakeMany (const :: tensorflow::Scope & scope, :: tensorflow::Input handle, :: tensorflow::Input num_elements, const DataTypeSlice & component_types, const BarrierTakeMany::Attrs & attrs) |
פונקציות סטטיות ציבוריות | |
---|---|
AllowSmallBatch (bool x) | |
TimeoutMs (int64 x) | |
WaitForIncomplete (bool x) |
מבנים | |
---|---|
tensorflow:: ops:: BarrierTakeMany:: Attrs | קובעי תכונות אופציונליים עבור BarrierTakeMany . |
תכונות ציבוריות
מדדים
::tensorflow::Output indices
מפתחות
::tensorflow::Output keys
מִבצָע
Operation operation
ערכים
::tensorflow::OutputList values
תפקידים ציבוריים
BarrierTakeMany
BarrierTakeMany( const ::tensorflow::Scope & scope, ::tensorflow::Input handle, ::tensorflow::Input num_elements, const DataTypeSlice & component_types )
BarrierTakeMany
BarrierTakeMany( const ::tensorflow::Scope & scope, ::tensorflow::Input handle, ::tensorflow::Input num_elements, const DataTypeSlice & component_types, const BarrierTakeMany::Attrs & attrs )