# How to see your Tensorflow version

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**

- Tensorflow 2 – How to Reverse a Tensor
- Tensorflow 2 – How to Print only the Value of a Tensor
- Tensorflow 2 – One Hot Encoding Examples
- Tensorflow 2 – Removing all Single Dimensions from a Tensor
- Tensorflow 2 – Using tf.Variable examples

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

Subscribe

0 Comments