Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/tensorflow/python/framework/versions.py: 100%
28 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# Copyright 2015 The TensorFlow Authors. All Rights Reserved.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14# ==============================================================================
16"""TensorFlow versions."""
18from tensorflow.python.client import pywrap_tf_session
19from tensorflow.python.util.tf_export import tf_export
21__version__ = pywrap_tf_session.__version__
22__git_version__ = pywrap_tf_session.__git_version__
23__compiler_version__ = pywrap_tf_session.__compiler_version__
24__cxx11_abi_flag__ = pywrap_tf_session.__cxx11_abi_flag__
25__monolithic_build__ = pywrap_tf_session.__monolithic_build__
26__cxx_version__ = pywrap_tf_session.__cxx_version__
28VERSION = __version__
29tf_export(
30 "version.VERSION",
31 "__version__",
32 v1=["version.VERSION", "VERSION", "__version__"]).export_constant(
33 __name__, "VERSION")
34GIT_VERSION = __git_version__
35tf_export(
36 "version.GIT_VERSION",
37 "__git_version__",
38 v1=["version.GIT_VERSION", "GIT_VERSION",
39 "__git_version__"]).export_constant(__name__, "GIT_VERSION")
40COMPILER_VERSION = __compiler_version__
41tf_export(
42 "version.COMPILER_VERSION",
43 "__compiler_version__",
44 v1=["version.COMPILER_VERSION", "COMPILER_VERSION",
45 "__compiler_version__"]).export_constant(__name__, "COMPILER_VERSION")
47CXX11_ABI_FLAG = __cxx11_abi_flag__
48tf_export(
49 "sysconfig.CXX11_ABI_FLAG",
50 "__cxx11_abi_flag__",
51 v1=["sysconfig.CXX11_ABI_FLAG", "CXX11_ABI_FLAG",
52 "__cxx11_abi_flag__"]).export_constant(__name__, "CXX11_ABI_FLAG")
53CXX_VERSION = __cxx_version__
54tf_export(
55 "sysconfig.CXX_VERSION",
56 "__cxx_version__",
57 v1=["sysconfig.CXX_VERSION", "CXX_VERSION",
58 "__cxx_version__"]).export_constant(__name__, "CXX_VERSION")
59MONOLITHIC_BUILD = __monolithic_build__
60tf_export(
61 "sysconfig.MONOLITHIC_BUILD",
62 "__monolithic_build__",
63 v1=[
64 "sysconfig.MONOLITHIC_BUILD", "MONOLITHIC_BUILD", "__monolithic_build__"
65 ]).export_constant(__name__, "MONOLITHIC_BUILD")
67GRAPH_DEF_VERSION = pywrap_tf_session.GRAPH_DEF_VERSION
68tf_export(
69 "version.GRAPH_DEF_VERSION",
70 v1=["version.GRAPH_DEF_VERSION", "GRAPH_DEF_VERSION"]).export_constant(
71 __name__, "GRAPH_DEF_VERSION")
72GRAPH_DEF_VERSION_MIN_CONSUMER = (
73 pywrap_tf_session.GRAPH_DEF_VERSION_MIN_CONSUMER)
74tf_export(
75 "version.GRAPH_DEF_VERSION_MIN_CONSUMER",
76 v1=[
77 "version.GRAPH_DEF_VERSION_MIN_CONSUMER",
78 "GRAPH_DEF_VERSION_MIN_CONSUMER"
79 ]).export_constant(__name__, "GRAPH_DEF_VERSION_MIN_CONSUMER")
80GRAPH_DEF_VERSION_MIN_PRODUCER = (
81 pywrap_tf_session.GRAPH_DEF_VERSION_MIN_PRODUCER)
82tf_export(
83 "version.GRAPH_DEF_VERSION_MIN_PRODUCER",
84 v1=[
85 "version.GRAPH_DEF_VERSION_MIN_PRODUCER",
86 "GRAPH_DEF_VERSION_MIN_PRODUCER"
87 ]).export_constant(__name__, "GRAPH_DEF_VERSION_MIN_PRODUCER")
89__all__ = [
90 "__version__",
91 "__git_version__",
92 "__compiler_version__",
93 "__cxx11_abi_flag__",
94 "__monolithic_build__",
95 "COMPILER_VERSION",
96 "CXX11_ABI_FLAG",
97 "GIT_VERSION",
98 "GRAPH_DEF_VERSION",
99 "GRAPH_DEF_VERSION_MIN_CONSUMER",
100 "GRAPH_DEF_VERSION_MIN_PRODUCER",
101 "VERSION",
102 "MONOLITHIC_BUILD",
103]