MCPcopy Create free account
hub / github.com/alibaba/nann / PruneFunctionBody

Function PruneFunctionBody

tensorflow/tensorflow/core/common_runtime/function.cc:885–913  ·  view source on GitHub ↗

Removes all stateless nodes that do not contribute to a return value from the function body. Unlike `RemoveDeadNodes()`, which is triggered by `OptimizerOptions.do_function_inlining`, this pass ignores the SINK node, from which (by definition) all nodes are reverse reachable, and preserves all nodes that are reachable from control output nodes. TODO(ezhulenev, skyewm): Function body should not ha

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

CreateItemMethod · 0.85

Calls 11

FixupSourceAndSinkEdgesFunction · 0.85
signatureMethod · 0.80
IsControlFlowMethod · 0.80
nameMethod · 0.65
insertMethod · 0.45
nodesMethod · 0.45
is_statefulMethod · 0.45
op_defMethod · 0.45
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected