Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/tensorflow/_api/v2/autograph/__init__.py: 100%
7 statements
« prev ^ index » next coverage.py v7.4.0, created at 2024-01-03 07:57 +0000
« prev ^ index » next coverage.py v7.4.0, created at 2024-01-03 07:57 +0000
1# This file is MACHINE GENERATED! Do not edit.
2# Generated by: tensorflow/python/tools/api/generator/create_python_api.py script.
3"""Conversion of eager-style Python into TensorFlow graph code.
5NOTE: In TensorFlow 2.0, AutoGraph is automatically applied when using
6`tf.function`. This module contains lower-level APIs for advanced use.
8AutoGraph transforms a subset of Python which operates on TensorFlow objects
9into equivalent TensorFlow graph code. When executing the graph, it has the same
10effect as if you ran the original code in eager mode.
11Python code which doesn't operate on TensorFlow objects remains functionally
12unchanged, but keep in mind that `tf.function` only executes such code at trace
13time, and generally will not be consistent with eager execution.
15For more information, see the
16[AutoGraph reference documentation](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/autograph/g3doc/reference/index.md),
17and the [tf.function guide](https://www.tensorflow.org/guide/function#autograph_transformations).
19"""
21import sys as _sys
23from . import experimental
24from tensorflow.python.autograph.impl.api import to_code
25from tensorflow.python.autograph.impl.api import to_graph
26from tensorflow.python.autograph.utils.ag_logging import set_verbosity
27from tensorflow.python.autograph.utils.ag_logging import trace