# tf.contrib.autograph.StackTraceMapper

<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/impl/api.py#L120-L149) |

Remaps generated code to code it originated from.

    tf.contrib.autograph.StackTraceMapper(
        converted_fn
    )

## Methods

### `get_effective_source_map`

[View source](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/autograph/impl/api.py#L126-L149)

    get_effective_source_map()

Returns a map (filename, lineno) -\> (filename, lineno, function_name).

### `reset`

[View source](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/util/tf_stack.py#L91-L92)

    reset()

### `__enter__`

[View source](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/util/tf_stack.py#L61-L77)

    __enter__()

### `__exit__`

[View source](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/util/tf_stack.py#L79-L81)

    __exit__(
        unused_type, unused_value, unused_traceback
    )