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

Method CostSchedule

tensorflow/core/lib/core/threadpool.cc:125–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125void ThreadPool::CostSchedule(std::function<void()> fn, int64 cost) {
126 CHECK(fn != nullptr);
127 if (cost < 1) {
128 underlying_threadpool_->Schedule(std::move(fn));
129 } else {
130 underlying_threadpool_->Schedule(std::move(fn), cost);
131 }
132}
133
134void ThreadPool::Schedule(std::function<void()> fn) {
135 CHECK(fn != nullptr);

Callers 7

RunInternalMethod · 0.80
PRunSetupMethod · 0.80
BenchmarkMethod · 0.80
RunWithArgsMethod · 0.80
CreateMethod · 0.80

Calls 1

ScheduleMethod · 0.45

Tested by 4

BenchmarkMethod · 0.64
RunWithArgsMethod · 0.64
CreateMethod · 0.64