to_graph, but returns Python source code as a string.
tf.autograph.to_code( entity, recursive=True, experimental_optional_features=None )
to_graph returns the Python source code that can be used to generate a
TensorFlow graph that is functionally identical to the input Python code.
entity: Python callable or class to convert.
recursive: Whether to recursively convert any functions that the converted function may call.
None, a tuple of, or a single
tf.autograph.experimental.Featurevalue. Controls the use of optional features in the conversion process.
The converted code as string.