# Module: tf.contrib.autograph

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/contrib/autograph/__init__.py) |

This is the legacy module for AutoGraph, kept for backward compatibility.

New users should instead use `tensorflow.python.autograph`.

## Classes

[`class AutoGraphError`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/contrib/autograph/AutoGraphError): Base class for all AutoGraph exceptions.

[`class ConversionOptions`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/contrib/autograph/ConversionOptions): Immutable container for global conversion flags.

[`class Feature`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/autograph/experimental/Feature): This enumeration represents optional conversion options.

[`class StackTraceMapper`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/contrib/autograph/StackTraceMapper): Remaps generated code to code it originated from.

## Functions

[`convert(...)`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/contrib/autograph/convert): Decorator that compiles a function to use TensorFlow ops.

[`converted_call(...)`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/contrib/autograph/converted_call): Compiles a function call inline.

[`do_not_convert(...)`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/autograph/experimental/do_not_convert): Decorator that suppresses the conversion of a function.

[`set_element_type(...)`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/contrib/autograph/set_element_type): Indicates that the entity is expected hold items of specified type/shape.

[`stack(...)`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/contrib/autograph/stack): Stacks the input, if it admits the notion of stacking.

[`to_code(...)`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/compat/v2/autograph/to_code): Similar to `to_graph`, but returns Python source code as a string.

[`to_graph(...)`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/compat/v2/autograph/to_graph): Converts a Python entity into a TensorFlow graph.