tensorflow:: ops:: BarrierTakeMany

#include <data_flow_ops.h>

לוקח את המספר הנתון של אלמנטים שהושלמו ממחסום.

תַקצִיר

פעולה זו משרשרת טנזורים רכיביים של אלמנטים שהושלמו לאורך המימד ה-0 כדי ליצור טנזור רכיבי יחיד.

אלמנטים יוצאים מהמחסום כשהם שלמים, ובסדר שבו הונחו במחסום. פלט האינדקסים מספק מידע על האצווה שבה כל אלמנט הוכנס במקור למחסום.

טיעונים:

  • היקף: אובייקט היקף
  • ידית: הידית למחסום.
  • 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)

מאפיינים ציבוריים

indices
keys
operation
values

פונקציות סטטיות ציבוריות

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
)

פונקציות סטטיות ציבוריות

אפשר אצווה קטנה

Attrs AllowSmallBatch(
  bool x
)

פסק זמן גברת

Attrs TimeoutMs(
  int64 x
)

המתן למשך לא הושלם

Attrs WaitForIncomplete(
  bool x
)