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

Function ExpandInlineFunctions

tensorflow/core/common_runtime/function.h:357–359  ·  view source on GitHub ↗

For each node in "graph", if "lib" indicates that the node is a function call, inline the function body. Returns true if at least one node is inlined. This routine goes through "graph" nodes once and applies the inlining. The caller may decide to apply the inlining on "graph" multiple times by calling ExpandInlineFunctions a few times. Function calls that can't be safely inlined into the graph (

Source from the content-addressed store, hash-verified

355// FunctionLibraryDefinition and FunctionDefToBodyHelper to implement this (see
356// lower_function_call.cc).
357inline bool ExpandInlineFunctions(FunctionLibraryRuntime* lib, Graph* graph) {
358 return ExpandInlineFunctions(lib, graph, ExpandInlineFunctionsOptions());
359}
360
361// Extracts function name and attributes from `call_def`
362// `call_def` can be a native function call (where the op type is the function

Callers 3

TEST_FFunction · 0.70
OptimizeMethod · 0.70
InlineAllFunctionsFunction · 0.50

Calls 1

Tested by 1

TEST_FFunction · 0.56