Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/tensorflow/_api/v2/compat/v1/compat/v2/compat/__init__.py: 100%
15 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"""Compatibility functions.
5The `tf.compat` module contains two sets of compatibility functions.
7## Tensorflow 1.x and 2.x APIs
9The `compat.v1` and `compat.v2` submodules provide a complete copy of both the
10`v1` and `v2` APIs for backwards and forwards compatibility across TensorFlow
11versions 1.x and 2.x. See the
12[migration guide](https://www.tensorflow.org/guide/migrate) for details.
14## Utilities for writing compatible code
16Aside from the `compat.v1` and `compat.v2` submodules, `tf.compat` also contains
17a set of helper functions for writing code that works in both:
19* TensorFlow 1.x and 2.x
20* Python 2 and 3
23## Type collections
25The compatibility module also provides the following aliases for common
26sets of python types:
28* `bytes_or_text_types`
29* `complex_types`
30* `integral_types`
31* `real_types`
33"""
35import sys as _sys
37from tensorflow.python.compat.compat import forward_compatibility_horizon
38from tensorflow.python.compat.compat import forward_compatible
39from tensorflow.python.framework.tensor_shape import dimension_at_index
40from tensorflow.python.framework.tensor_shape import dimension_value
41from tensorflow.python.util.compat import as_bytes
42from tensorflow.python.util.compat import as_str
43from tensorflow.python.util.compat import as_str_any
44from tensorflow.python.util.compat import as_text
45from tensorflow.python.util.compat import bytes_or_text_types
46from tensorflow.python.util.compat import complex_types
47from tensorflow.python.util.compat import integral_types
48from tensorflow.python.util.compat import path_to_str
49from tensorflow.python.util.compat import real_types