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

Method Schedule

tensorflow/core/common_runtime/memory_planner.cc:147–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145 }
146}
147void MemoryPlanner::Schedule(std::function<void()> f) {
148 if (thread_pool_ == nullptr) {
149 f();
150 } else {
151 thread_pool_->Schedule(std::move(f));
152 }
153}
154
155void MemoryPlanner::TrackAllocate(size_t alignment, size_t num_bytes) {
156 if (!is_stats_.load()) {

Callers 15

RunInternalMethod · 0.45
PRunSetupMethod · 0.45
RunClosureMethod · 0.45
BenchmarkMethod · 0.45
RunWithArgsMethod · 0.45
TEST_FFunction · 0.45
CreateMethod · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
EagerContextMethod · 0.45

Calls 1

fFunction · 0.50

Tested by 8

BenchmarkMethod · 0.36
RunWithArgsMethod · 0.36
TEST_FFunction · 0.36
CreateMethod · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
BM_AllocationThreadedFunction · 0.36