تينسورفلو :: العمليات :: BarrierTakeMany
#include <data_flow_ops.h>
يأخذ العدد المحدد للعناصر المكتملة من الحاجز.
ملخص
تجمع هذه العملية موترات مكون العنصر المكتمل على طول البعد 0 لعمل موتر مكون واحد.
تخرج العناصر من الحاجز عندما تكتمل ، وبترتيب وضعها في الحاجز. يوفر إخراج الفهارس معلومات حول الدُفعة التي تم فيها إدراج كل عنصر في الأصل في الحاجز.
الحجج:
- النطاق: كائن النطاق
- المقبض: مقبض الحاجز.
- عدد_العناصر: موتر أحادي العنصر يحتوي على عدد العناصر المطلوب أخذها
- Compon_types: نوع كل مكون في القيمة.
السمات الاختيارية (انظر Attrs
):
- allow_small_batch: السماح بإرجاع أقل من num_elements من العناصر إذا كان الحاجز مغلقًا بالفعل.
- timeout_ms: إذا كانت قائمة الانتظار فارغة ، فسيتم حظر هذه العملية لمدة تصل إلى timeout_ms مللي ثانية. ملاحظة: هذا الخيار غير مدعوم حتى الآن.
عائدات:
- مؤشرات
Output
: موتر أحادي البعد للمؤشرات بطول عدد وعناصر. تشير هذه المؤشرات إلى الدُفعة التي تم فيها وضع القيم في الحاجز (بدءًا من MIN_LONG وتزداد مع كل BarrierInsertMany ). - مفاتيح
Output
: موتر أحادي البعد للمفاتيح ، بطول عدد_العناصر. - قيم
OutputList
: موتر واحد أي بُعد لكل مكون في عنصر حاجز. جميع القيم لها طول عدد_العناصر في البعد 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 )
وظائف ثابتة عامة
AllowSmallBatch
Attrs AllowSmallBatch( bool x )
مهلة
Attrs TimeoutMs( int64 x )
WaitForIncomplete
08 abaf7a40Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-04-20 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"Translation issue"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"مشكلة في العيّنات / التعليمات البرمجية"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]