MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / get_cancellation_token

Method get_cancellation_token

tensorflow/core/framework/cancellation.cc:56–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56CancellationToken CancellationManager::get_cancellation_token() {
57 mutex_lock l(mu_);
58 return next_cancellation_token_++;
59}
60
61bool CancellationManager::RegisterCallback(CancellationToken token,
62 CancelCallback callback) {

Callers 15

StarRunGraphAsyncMethod · 0.80
ComputeMethod · 0.80
RecvAsyncMethod · 0.80
TESTFunction · 0.80
RunInternalMethod · 0.80
AcquireAsyncMethod · 0.80
TryDequeueManyMethod · 0.80
TryTakeGradMethod · 0.80
TryEnqueueMethod · 0.80
TryEnqueueManyMethod · 0.80
TryDequeueMethod · 0.80
TryDequeueManyMethod · 0.80

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.64