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

Method Schedule

tensorflow/compiler/xla/python/worker_thread.cc:30–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30void WorkerThread::Schedule(std::function<void()> fn) {
31 CHECK(fn != nullptr);
32 absl::MutexLock lock(&mu_);
33 work_queue_.push(std::move(fn));
34}
35
36bool WorkerThread::WorkAvailable() { return !work_queue_.empty(); }
37

Callers 13

CompileAsynchronousMethod · 0.45
ForEachIndexInternalMethod · 0.45
ReplayComputationFunction · 0.45
RealMainFunction · 0.45
FromHostBufferMethod · 0.45
ExecuteOnLocalDevicesMethod · 0.45
TESTFunction · 0.45
ExecuteOnLocalDevicesMethod · 0.45
GetStreamExecutorsMethod · 0.45
ExecuteReplicatedMethod · 0.45
TEST_FFunction · 0.45

Calls 1

pushMethod · 0.45

Tested by 3

TESTFunction · 0.36
TEST_FFunction · 0.36
XLA_TEST_FFunction · 0.36