# tf.contrib.autograph.ConversionOptions

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/autograph/core/converter.py#L145-L233) |

Immutable container for global conversion flags.

    tf.contrib.autograph.ConversionOptions(
        recursive=False, user_requested=False, internal_convert_user_code=True,
        optional_features=tf.autograph.experimental.Feature.ALL
    )

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `recursive` | bool, whether to recursively convert any user functions or classes that the converted function may use. |
| `user_requested` | bool, whether the conversion was explicitly requested by the user, as opposed to being performed as a result of other logic. This value always auto-resets resets to False in child conversions. |
| `optional_features` | Union\[Feature, Set\[Feature\]\], controls the use of optional features in the conversion process. See Feature for available options. |

<br />

## Methods

### `as_tuple`

[View source](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/autograph/core/converter.py#L176-L178)

    as_tuple()

### `call_options`

[View source](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/autograph/core/converter.py#L194-L200)

    call_options()

Returns the corresponding options to be used for recursive conversion.

### `to_ast`

[View source](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/autograph/core/converter.py#L202-L233)

    to_ast()

Returns a representation of this object as an AST node.

The AST node encodes a constructor that would create an object with the
same contents.

<br />

<br />

<br />

| Returns ||
|---|---|
| ast.Node ||

<br />

### `uses`

[View source](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/autograph/core/converter.py#L190-L192)

    uses(
        feature
    )

### `__eq__`

[View source](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/autograph/core/converter.py#L183-L185)

    __eq__(
        other
    )

Return self==value.