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

Function GetFetchNode

tensorflow/core/grappler/optimizers/data/graph_utils.cc:357–368  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

355}
356
357Status GetFetchNode(const MutableGraphView& graph, const GrapplerItem& item,
358 NodeDef** fetch_node) {
359 if (item.fetch.size() != 1) {
360 return errors::InvalidArgument(
361 "Expected only one fetch node but there were ", item.fetch.size(), ": ",
362 absl::StrJoin(item.fetch, ", "));
363 }
364
365 *fetch_node = graph.GetNode(item.fetch.at(0));
366
367 return Status::OK();
368}
369
370} // namespace graph_utils
371} // namespace grappler

Callers 3

OptimizeGraphFunction · 0.85
TESTFunction · 0.85
OptimizeGraphFunction · 0.85

Calls 4

InvalidArgumentFunction · 0.85
sizeMethod · 0.45
GetNodeMethod · 0.45
atMethod · 0.45

Tested by 1

TESTFunction · 0.68