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

Method MaybeExtendGraph

tensorflow/cc/client/client_session.cc:93–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93Status ClientSession::Impl::MaybeExtendGraph() const {
94 mutex_lock l(mu_);
95 int num_nodes = graph_->num_node_ids();
96 if (num_nodes > last_num_graph_nodes_) {
97 GraphDef graph_def;
98 graph_->ToGraphDefSubRange(&graph_def, last_num_graph_nodes_);
99 last_num_graph_nodes_ = num_nodes;
100 return session_->Extend(graph_def);
101 }
102 return Status::OK();
103}
104
105Status ClientSession::Run(const RunOptions& run_options, const FeedType& inputs,
106 const std::vector<Output>& fetch_outputs,

Callers 2

RunMethod · 0.80
MakeCallableMethod · 0.80

Calls 3

ToGraphDefSubRangeMethod · 0.80
num_node_idsMethod · 0.45
ExtendMethod · 0.45

Tested by

no test coverage detected