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.
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. |