Module: tf.contrib.autograph

Defined in tensorflow/contrib/autograph/__init__.py.

Autograph compiles Python code into equivalent TensorFlow code.

Equivalent here means that they have the same effect when executed.

Classes

class AutographParseError

class GraphConstructionError: Error for graph construction errors from AutoGraph generated code.

class RunMode: Specifies the way a converted function or method should be executed in TF.

class TfRuntimeError: Error wrapper for runtime errors raised by AutoGraph generated code.

Functions

convert(...): Decorator that compiles a function to use TensorFlow ops.

converted_call(...): Compiles a function call inline. For internal use only.

do_not_convert(...): Decorator that suppresses the conversion of a function.

improved_errors(...): Context manager that rewrites runtime errors.

set_element_type(...): Indicates that the entity is expected hold items of specified type/shape.

set_loop_options(...): Specifies additional arguments to be passed to the enclosing while_loop.

stack(...): Stacks the input, if it admits the notion of stacking.

tensor_list(...): Creates an tensor list and populates it with the given elements.

to_code(...): Returns the equivalent code that uses TensorFlow ops.

to_graph(...): Converts a Python entity into equivalent code that uses TensorFlow ops.