python-tensorflowHow do I show the version of Python TensorFlow I am using?
To show the version of Python TensorFlow you are using, you can use the tf.version
module. This module provides access to the TensorFlow version information as a named tuple of Python strings.
Example code
import tensorflow as tf
print(tf.version)
Output example
<module 'tensorflow_core._api.v2.version' from '/usr/local/lib/python3.6/dist-packages/tensorflow_core/_api/v2/version/__init__.py'>
The version information is stored as a tuple of strings, which can be accessed using the following code:
from tensorflow.version import VERSION
print(VERSION)
Output example
2.1.0
The tf.version
module provides access to the following information:
VERSION
: A string containing the version of TensorFlow, e.g. "2.1.0"GIT_VERSION
: A string containing the git commit hash of the TensorFlow repositoryCOMPILER_VERSION
: A string containing the version of the compiler used to compile TensorFlowBUILD_INFO
: A string containing the build information of TensorFlow
You can find more information about the tf.version
module in the TensorFlow documentation.
More of Python Tensorflow
- How do I resolve a SymbolAlreadyExposedError when the symbol "zeros" is already exposed as () in TensorFlow Python util tf_export?
- How can I use Python and TensorFlow to handle illegal hardware instructions in Zsh?
- ¿Cómo implementar reconocimiento facial con TensorFlow y Python?
- How can I use Python and TensorFlow to implement YOLO object detection?
- How can I use TensorFlow 2.x to optimize my Python code?
- How do I use the Xception model in TensorFlow with Python?
- How do I use Python TensorFlow 1.x?
- How can I use Tensorflow 1.x with Python 3.8?
- How can I use XGBoost, Python, and Tensorflow together for software development?
- How can I use Python and TensorFlow to create an XOR gate?
See more codes...