Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
30
void WorkerThread::Schedule(std::function<void()> fn) {
31
CHECK(fn != nullptr);
32
absl::MutexLock lock(&mu_);
33
work_queue_.push(std::move(fn));
34
}
35
36
bool WorkerThread::WorkAvailable() { return !work_queue_.empty(); }
37
Callers
13
CompileAsynchronous
Method · 0.45
ForEachIndexInternal
Method · 0.45
ReplayComputation
Function · 0.45
RealMain
Function · 0.45
FromHostBuffer
Method · 0.45
ExecuteOnLocalDevices
Method · 0.45
ThenExecuteOnCallbackThread
Method · 0.45
TEST
Function · 0.45
ExecuteOnLocalDevices
Method · 0.45
GetStreamExecutors
Method · 0.45
ExecuteReplicated
Method · 0.45
TEST_F
Function · 0.45
Calls
1
push
Method · 0.45
Tested by
3
TEST
Function · 0.36
TEST_F
Function · 0.36
XLA_TEST_F
Function · 0.36