Home
last modified time | relevance | path

Searched refs:CancellationManager (Results 1 – 25 of 72) sorted by relevance

123

/external/tensorflow/tensorflow/core/framework/
Dcancellation.cc26 const CancellationToken CancellationManager::kInvalidToken = -1;
28 CancellationManager::CancellationManager() in CancellationManager() function in tensorflow::CancellationManager
33 CancellationManager::CancellationManager(CancellationManager* parent) in CancellationManager() function in tensorflow::CancellationManager
38 void CancellationManager::StartCancel() { in StartCancel()
40 std::forward_list<CancellationManager*> children_to_cancel; in StartCancel()
52 CancellationManager* child = state_->first_child; in StartCancel()
71 for (CancellationManager* child : children_to_cancel) { in StartCancel()
84 bool CancellationManager::RegisterCallback(CancellationToken token, in RegisterCallback()
98 bool CancellationManager::DeregisterCallback(CancellationToken token) { in DeregisterCallback()
124 bool CancellationManager::RegisterChild(CancellationManager* child) { in RegisterChild()
[all …]
Dcancellation_test.cc31 CancellationManager* manager = new CancellationManager(); in TEST()
44 CancellationManager* manager = new CancellationManager(); in TEST()
55 CancellationManager* manager = new CancellationManager(); in TEST()
65 CancellationManager* manager = new CancellationManager(); in TEST()
79 CancellationManager* manager = new CancellationManager(); in TEST()
103 CancellationManager* cm = new CancellationManager(); in TEST()
124 CancellationManager cm; in TEST()
149 CancellationManager* manager = new CancellationManager(); in TEST()
162 CancellationManager* manager = new CancellationManager(); in TEST()
176 CancellationManager* manager = new CancellationManager(); in TEST()
[all …]
Dcancellation.h48 class CancellationManager {
53 CancellationManager();
59 explicit CancellationManager(CancellationManager* parent);
61 ~CancellationManager();
156 CancellationManager* first_child = nullptr; // Not owned.
159 bool RegisterChild(CancellationManager* child);
160 void DeregisterChild(CancellationManager* child);
166 CancellationManager* const parent_ = nullptr; // Not owned.
176 CancellationManager* prev_sibling_ GUARDED_BY(parent_->mu_) =
178 CancellationManager* next_sibling_ GUARDED_BY(parent_->mu_) =
Dcollective.h30 class CancellationManager; variable
173 CancellationManager* cancel_mgr,
180 CancellationManager* cancel_mgr,
187 CancellationManager* cancel_mgr,
286 CancellationManager* cancel_mgr, in CompleteParamsAsync()
Drendezvous_test.cc159 auto* cm = new CancellationManager(); in TEST_F()
173 auto* cm = new CancellationManager(); in TEST_F()
193 auto* cm = new CancellationManager(); in TEST_F()
213 auto* cm = new CancellationManager(); in TEST_F()
482 auto* cm = new CancellationManager(); in BM_PingPong()
/external/tensorflow/tensorflow/core/distributed_runtime/
Dpartial_run_mgr_test.cc28 CancellationManager* cancellation_manager; in TEST()
37 CancellationManager* cancellation_manager; in TEST()
40 CancellationManager* found_cancellation_manager; in TEST()
49 CancellationManager* cancellation_manager; in TEST()
53 CancellationManager* new_cancellation_manager; in TEST()
63 CancellationManager* cancellation_manager; in TEST()
111 CancellationManager* cancellation_manager; in TEST_P()
127 CancellationManager* cancellation_manager; in TEST_P()
Dcollective_param_resolver_distributed.h35 CancellationManager* cancel_mgr,
40 CancellationManager* cancel_mgr,
45 CancellationManager* cancel_mgr,
63 CancellationManager* cancel_mgr,
81 CancellationManager* cancel_mgr,
Dpartial_run_mgr.h53 bool FindOrCreate(int step_id, CancellationManager** cancellation_manager);
72 std::unique_ptr<CancellationManager> cancellation_manager;
Dcancellable_call.h30 CancellableCall(CancellationManager* cancel_mgr, const string& remote_worker, in CancellableCall()
57 CancellationManager* const cancel_mgr_; // Not owned
Dcollective_param_resolver_distributed.cc30 CancellationManager* cancel_mgr, in CompleteGroupCall()
54 bool is_source, CancellationManager* cancel_mgr, in CompleteInstanceCall()
101 const string& device, CollectiveParams* cp, CancellationManager* cancel_mgr, in CompleteParamsAsync()
119 CancellationManager* cancel_mgr, const StatusCallback& done) { in CompleteGroupAsync()
154 CancellationManager* cancel_mgr, const StatusCallback& done) { in CompleteInstanceAsync()
274 const string& device, CollectiveParams* cp, CancellationManager* cancel_mgr, in CompleteGroupDistributed()
370 CancellationManager* cancel_mgr, const StatusCallback& done) { in CompleteInstanceDistributed()
Dpartial_run_mgr.cc23 CancellationManager** cancellation_manager) { in FindOrCreate()
34 tensorflow::MakeUnique<CancellationManager>(); in FindOrCreate()
Dworker.h29 class CancellationManager; variable
123 CancellationManager cancellation_manager_;
Dgraph_mgr.h94 CancellationManager* cancellation_manager,
171 CancellationManager* cancellation_manager,
/external/tensorflow/tensorflow/core/kernels/
Dconditional_accumulator_base.h96 CancellationManager* cancellation_manager; // not owned
102 OpKernelContext* context, CancellationManager* cancellation_manager, in Attempt()
116 CleanUp(DoneCallback&& f, CancellationToken ct, CancellationManager* cm) in CleanUp()
120 CancellationManager* cm;
138 void Cancel(CancellationManager* cancellation_manager,
Dqueue_base.h98 CleanUp(DoneCallback&& f, CancellationToken ct, CancellationManager* cm) in CleanUp()
102 CancellationManager* cm;
121 void Cancel(Action action, CancellationManager* cancellation_manager,
158 CancellationManager* cancellation_manager; // not owned
167 OpKernelContext* context, CancellationManager* cancellation_manager, in Attempt()
Dconditional_accumulator_base.cc72 CancellationManager* cm = ctx->cancellation_manager(); in TryTakeGrad()
111 CancellationManager* cancellation_manager, CancellationToken token) { in Cancel()
180 if (to_clean.to_deregister != CancellationManager::kInvalidToken) { in FlushUnlocked()
Dfifo_queue.cc52 CancellationManager* cm = ctx->cancellation_manager(); in TryEnqueue()
110 CancellationManager* cm = ctx->cancellation_manager(); in TryEnqueueMany()
156 CancellationManager* cm = ctx->cancellation_manager(); in TryDequeue()
247 CancellationManager* cm = ctx->cancellation_manager(); in TryDequeueMany()
Dpriority_queue.cc73 CancellationManager* cm = ctx->cancellation_manager(); in TryEnqueue()
138 CancellationManager* cm = ctx->cancellation_manager(); in TryEnqueueMany()
199 CancellationManager* cm = ctx->cancellation_manager(); in TryDequeue()
290 CancellationManager* cm = ctx->cancellation_manager(); in TryDequeueMany()
/external/tensorflow/tensorflow/core/common_runtime/eager/
Dkernel_and_device.cc208 CancellationManager* cancellation_manager, in Run()
218 CancellationManager* cancellation_manager, in Run()
233 CancellationManager cancellation_manager;
239 std::vector<Tensor>* outputs, CancellationManager* cancellation_manager, in Run()
255 CancellationManager default_cancellation_manager; in Run()
308 std::vector<Tensor>* outputs, CancellationManager* cancellation_manager, in Run()
339 CancellationManager cm; in Run()
Dkernel_and_device.h123 CancellationManager* cancellation_manager,
128 std::vector<Tensor>* outputs, CancellationManager* cancellation_manager,
189 CancellationManager* cancellation_manager,
195 CancellationManager* cancellation_manager,
269 CancellationManager* cancellation_manager,
274 CancellationManager* cancellation_manager,
Deager_operation.h99 CancellationManager* GetCancellationManager() const { in GetCancellationManager()
102 void SetCancellationManager(CancellationManager* cancellation_manager) { in SetCancellationManager()
145 CancellationManager* cancellation_manager_ = nullptr; // Not owned.
Dexecute_node.h79 CancellationManager* cancellation_manager, bool async, in ExecuteNode()
151 CancellationManager* const cancellation_manager_;
/external/tensorflow/tensorflow/core/util/rpc/
Dcall_container.h107 : CancellationManager::kInvalidToken), in CallContainer()
115 if (token_ != CancellationManager::kInvalidToken) { in CallContainer()
133 if (token_ != CancellationManager::kInvalidToken) { in CallContainer()
/external/tensorflow/tensorflow/core/common_runtime/
Dcollective_param_resolver_local.h48 CancellationManager* cancel_mgr,
53 CancellationManager* cancel_mgr,
58 CancellationManager* cancel_mgr,
/external/tensorflow/tensorflow/core/distributed_runtime/eager/
Dremote_copy_node.h148 CancellationManager* recv_cancellation() { return &recv_cancellation_; } in recv_cancellation()
152 CancellationManager recv_cancellation_;

123