How to see your Tensorflow version

Last updated on December 8, 2021 Pennywise Loading... Post a comment

TL;DR: You can check the version of Tensorflow that you are working with by using the __version__ attribute.

Example

import tensorflow as tf
print(tf.__version__)

After executing the preceding code, you will get a result similar to this:

2.7.0

Further reading

You can also check out our Machine Learning category page or Python category page for more tutorials and examples.

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments

You May Also Like