python-tensorflowHow do I check which version of TensorFlow I am using with Python?
To check which version of TensorFlow you are using with Python, you can use the following code:
import tensorflow as tf
print(tf.__version__)
This will print out the version of TensorFlow you are using, e.g. 2.2.0
.
The code consists of the following parts:
import tensorflow as tf
: This imports the TensorFlow module and assigns it to the variabletf
.print(tf.__version__)
: This prints out the version of TensorFlow you are using.
For more information on how to check the version of TensorFlow you are using, please see the following links:
More of Python Tensorflow
- How can I use Python and TensorFlow to handle illegal hardware instructions in Zsh?
- How can I check the compatibility of different versions of Python and TensorFlow?
- How do I use Python and TensorFlow Placeholders?
- How can I install TensorFlow for Python 3.7?
- How do I use Python and TensorFlow together to create a Wiki?
- How do I save a trained model using Python and TensorFlow?
- How can I release GPU memory when using Python TensorFlow?
- How can I generate a summary of my TensorFlow model in Python?
- How do I uninstall Python TensorFlow?
See more codes...