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

Method RegisterRunner

tensorflow/cc/training/coordinator.cc:38–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38Status Coordinator::RegisterRunner(std::unique_ptr<RunnerInterface> runner) {
39 {
40 mutex_lock l(mu_);
41 if (should_stop_) {
42 return Status(error::FAILED_PRECONDITION,
43 "The coordinator has been stopped.");
44 }
45 }
46 mutex_lock l(runners_lock_);
47 runners_.push_back(std::move(runner));
48 return Status::OK();
49}
50
51bool Coordinator::AllRunnersStopped() {
52 mutex_lock l(runners_lock_);

Callers 4

RunMethod · 0.80
StartRunnersMethod · 0.80
TESTFunction · 0.80
TESTFunction · 0.80

Calls 2

StatusClass · 0.50
push_backMethod · 0.45

Tested by 2

TESTFunction · 0.64
TESTFunction · 0.64