What are the ways to check the version of TensorFlow?

  1. You can check the current installed version of TensorFlow in a Python code by using the following code:
import tensorflow as tf
print(tf.__version__)
  1. You can also check the TensorFlow version by running the following command in the command line:
pip show tensorflow
  1. You can also check the TensorFlow version by running the following code in Jupyter Notebook.
!pip show tensorflow
  1. You can also check the TensorFlow version by running the following command in the command line.
pip freeze | grep tensorflow
Leave a Reply 0

Your email address will not be published. Required fields are marked *