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

Function GetInputNode

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

Source from the content-addressed store, hash-verified

268}
269
270NodeDef* GetInputNode(const NodeDef& node, const MutableGraphView& graph) {
271 if (node.input_size() == 0) return nullptr;
272 MutableGraphView::InputPort input_port = graph.GetInputPort(node.name(), 0);
273 return graph.GetRegularFanin(input_port).node;
274}
275
276NodeDef* GetInputNode(const NodeDef& node, const MutableGraphView& graph,
277 int64 i) {

Callers 15

FindMapAndBatchPatternFunction · 0.70
RecursivelyHandleOpFunction · 0.70
TESTFunction · 0.70
MutateBatchSizeFunction · 0.70
RecursivelyHandleOpFunction · 0.70
RebatchWithFallbackFunction · 0.70

Calls 4

GetInputPortMethod · 0.80
nameMethod · 0.65
input_sizeMethod · 0.45
GetRegularFaninMethod · 0.45

Tested by 1

TESTFunction · 0.56