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

Method Initialize

tensorflow/core/grappler/clusters/single_machine.cc:122–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122Status SingleMachine::Initialize(const GrapplerItem& item) {
123 mutex_lock l(this->last_graph_mu_);
124 if (last_graph_ != &item.graph || last_graph_id_ != item.id) {
125 init_ops_ = item.init_ops;
126 expected_init_time_s_ = item.expected_init_time;
127 last_graph_ = nullptr;
128 queue_runner_defs_ = item.queue_runners;
129 last_graph_id_ = item.id;
130 }
131 return Status::OK();
132}
133
134Status SingleMachine::Shutdown() {
135 TF_RETURN_IF_ERROR(ShutdownSession());

Callers 3

TEST_FFunction · 0.45
RunInfiniteTFLoopFunction · 0.45
TEST_FFunction · 0.45

Calls

no outgoing calls

Tested by 3

TEST_FFunction · 0.36
RunInfiniteTFLoopFunction · 0.36
TEST_FFunction · 0.36