python-tensorflowHow do I check the version of Python Tensorflow I'm using?
To check the version of Python Tensorflow you are using, you can use the tf.version
module. This module provides a version string of the form major.minor.patch, which can be used to check the version of TensorFlow.
Example
import tensorflow as tf
print(tf.version.VERSION)
Output example
2.2.0
The code above imports the tensorflow
module and prints out the version of TensorFlow using the tf.version.VERSION
attribute.
The tf.version
module also provides other attributes, such as tf.version.COMPILER_VERSION
which can be used to check the version of the compiler used to compile TensorFlow.
Helpful links
More of Python Tensorflow
- How can I use Python and TensorFlow to handle illegal hardware instructions in Zsh?
- How do I resolve a SymbolAlreadyExposedError when the symbol "zeros" is already exposed as () in TensorFlow Python util tf_export?
- ¿Cómo implementar reconocimiento facial con TensorFlow y Python?
- How can I test my Python TensorFlow code?
- How do I troubleshoot a BLAS GEMM Launch Failed error in TensorFlow Python Framework?
- How can I troubleshoot a TensorFlow Python Framework ResourceExhaustedError graph execution error?
- How can I use Python and TensorFlow together?
- How do I install CUDA for Python TensorFlow?
- How can I use Python and TensorFlow to implement YOLO object detection?
- How do I use the Xception model in TensorFlow with Python?
See more codes...