tf.contrib.autograph.to_code

tf.contrib.autograph.to_code(
    e,
    recursive=True,
    arg_values=None,
    arg_types=None,
    partial_types=None,
    indentation='  '
)

Defined in tensorflow/contrib/autograph/impl/api.py.

Returns the equivalent code that uses TensorFlow ops.

Also see: to_graph, convert

Args:

  • e: Union[Callable, Type], the Python entity to convert.
  • recursive: bool, whether to recursively convert any functions that the converted function may call.
  • arg_values: Optional[Dict[Text, Any]], value hints for symbols including function arguments.
  • arg_types: Optional[Dict[Text, Type]], type hints for symbols including function arguments.
  • partial_types: Set[Type], reserved for internal use.
  • indentation: Text, when to use for each level of indentation.

Returns:

Text, the converted code.