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 # ============================================================================== 15 16 """TensorFlow versions.""" 17 18 from __future__ import absolute_import 19 from __future__ import division 20 from __future__ import print_function 21 22 from tensorflow.python import pywrap_tensorflow 23 from tensorflow.python.util.tf_export import tf_export 24 25 __version__ = pywrap_tensorflow.__version__ 26 __git_version__ = pywrap_tensorflow.__git_version__ 27 __compiler_version__ = pywrap_tensorflow.__compiler_version__ 28 __cxx11_abi_flag__ = pywrap_tensorflow.__cxx11_abi_flag__ 29 __monolithic_build__ = pywrap_tensorflow.__monolithic_build__ 30 31 VERSION = __version__ 32 tf_export("VERSION").export_constant(__name__, "VERSION") 33 GIT_VERSION = __git_version__ 34 tf_export("GIT_VERSION").export_constant(__name__, "GIT_VERSION") 35 COMPILER_VERSION = __compiler_version__ 36 tf_export("COMPILER_VERSION").export_constant(__name__, "COMPILER_VERSION") 37 CXX11_ABI_FLAG = __cxx11_abi_flag__ 38 tf_export("CXX11_ABI_FLAG").export_constant(__name__, "CXX11_ABI_FLAG") 39 MONOLITHIC_BUILD = __monolithic_build__ 40 tf_export("MONOLITHIC_BUILD").export_constant(__name__, "MONOLITHIC_BUILD") 41 42 GRAPH_DEF_VERSION = pywrap_tensorflow.GRAPH_DEF_VERSION 43 tf_export("GRAPH_DEF_VERSION").export_constant(__name__, "GRAPH_DEF_VERSION") 44 GRAPH_DEF_VERSION_MIN_CONSUMER = ( 45 pywrap_tensorflow.GRAPH_DEF_VERSION_MIN_CONSUMER) 46 tf_export("GRAPH_DEF_VERSION_MIN_CONSUMER").export_constant( 47 __name__, "GRAPH_DEF_VERSION_MIN_CONSUMER") 48 GRAPH_DEF_VERSION_MIN_PRODUCER = ( 49 pywrap_tensorflow.GRAPH_DEF_VERSION_MIN_PRODUCER) 50 tf_export("GRAPH_DEF_VERSION_MIN_PRODUCER").export_constant( 51 __name__, "GRAPH_DEF_VERSION_MIN_PRODUCER") 52 53 __all__ = [ 54 "__version__", 55 "__git_version__", 56 "__compiler_version__", 57 "__cxx11_abi_flag__", 58 "__monolithic_build__", 59 "COMPILER_VERSION", 60 "CXX11_ABI_FLAG", 61 "GIT_VERSION", 62 "GRAPH_DEF_VERSION", 63 "GRAPH_DEF_VERSION_MIN_CONSUMER", 64 "GRAPH_DEF_VERSION_MIN_PRODUCER", 65 "VERSION", 66 "MONOLITHIC_BUILD", 67 ] 68