tfm.core.train_utils.convert_variables_to_constants_v2_as_graph
Replaces all the variables in a graph with constants of the same values.
tfm.core.train_utils.convert_variables_to_constants_v2_as_graph(
func, lower_control_flow=True, aggressive_inlining=False
)
This function works as same as convert_variables_to_constants_v2, but it
returns the intermediate GraphDef
as well. This GraphDef
contains all the
debug information after all the transformations in the frozen phase.
Args |
func
|
ConcreteFunction.
|
lower_control_flow
|
Boolean indicating whether or not to lower control flow
ops such as If and While. (default True)
|
aggressive_inlining
|
Boolean indicating whether or not to do aggressive
function inlining (might be unsafe if function has stateful ops, not
properly connected to control outputs).
|
Returns |
ConcreteFunction containing a simplified version of the original, and also
the intermediate GraphDef containing the node debug information for the
transformations in the frozen phase.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2022-10-28 UTC.
[null,null,["Last updated 2022-10-28 UTC."],[],[]]