Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
przepływ tensorowy:: ops:: BarieraZamknij:: Atrybuty
#include <data_flow_ops.h>
Opcjonalne moduły ustawiające atrybuty dla BarrierClose .
Streszczenie
Funkcje publiczne |
---|
CancelPendingEnqueues (bool x) | Jeśli ma wartość true, wszystkie oczekujące żądania umieszczenia w kolejce, które są zablokowane w kolejce bariery, zostaną anulowane. |
Atrybuty publiczne
anuluj_oczekujące_kolejki_
bool tensorflow::ops::BarrierClose::Attrs::cancel_pending_enqueues_ = false
Funkcje publiczne
Anuluj oczekujące kolejki
TF_MUST_USE_RESULT Attrs tensorflow::ops::BarrierClose::Attrs::CancelPendingEnqueues(
bool x
)
Jeśli ma wartość true, wszystkie oczekujące żądania umieszczenia w kolejce, które są zablokowane w kolejce bariery, zostaną anulowane.
Funkcja InsertMany zakończy się niepowodzeniem, nawet jeśli nie zostanie wprowadzony żaden nowy klucz.
Domyślnie jest to fałsz
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-25 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-25 UTC."],[],[],null,["# tensorflow::ops::BarrierClose::Attrs Struct Reference\n\ntensorflow::ops::BarrierClose::Attrs\n====================================\n\n`#include \u003cdata_flow_ops.h\u003e`\n\nOptional attribute setters for [BarrierClose](/versions/r1.15/api_docs/cc/class/tensorflow/ops/barrier-close#classtensorflow_1_1ops_1_1_barrier_close).\n\nSummary\n-------\n\n| ### Public attributes ||\n|-------------------------------------------------------------------------------------------------------------------------------|--------|\n| [cancel_pending_enqueues_](#structtensorflow_1_1ops_1_1_barrier_close_1_1_attrs_1ab1dc592b05a8bb3491a8230b43ea719c)` = false` | `bool` |\n\n| ### Public functions ||\n|----------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [CancelPendingEnqueues](#structtensorflow_1_1ops_1_1_barrier_close_1_1_attrs_1a40057f3edbb48bbc7756552300b69689)`(bool x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/barrier-close/attrs#structtensorflow_1_1ops_1_1_barrier_close_1_1_attrs) If true, all pending enqueue requests that are blocked on the barrier's queue will be canceled. |\n\nPublic attributes\n-----------------\n\n### cancel_pending_enqueues_\n\n```scdoc\nbool tensorflow::ops::BarrierClose::Attrs::cancel_pending_enqueues_ = false\n``` \n\nPublic functions\n----------------\n\n### CancelPendingEnqueues\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::BarrierClose::Attrs::CancelPendingEnqueues(\n bool x\n)\n``` \nIf true, all pending enqueue requests that are blocked on the barrier's queue will be canceled.\n\nInsertMany will fail, even if no new key is introduced.\n\nDefaults to false"]]