# Update TensorFlow version to 2.2

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fupdate-tensorflow-version-to-2-2%2F253%3E%5C
**Category:** 🤗Transformers\
**Created:** [July 13, 2020, 3:21pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fupdate-tensorflow-version-to-2-2%2F253 "2020-07-13T15:21:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jplu](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/jplu/32/148_2.png) [@jplu](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fjplu)%5C
**Post date:** [July 13, 2020, 3:21pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fupdate-tensorflow-version-to-2-2%2F253%2F1 "2020-07-13T15:21:05Z")

</div>

Hi there!!

I’m gathering some feebacks from the community in order to know what you guys think to fix the minimum TensorFlow version to 2.2?

This would allow the models to be compliant with several cool features such as:

- `Model.train_step` method to create simple custom training loop that can be used with `Model.fit`
- Pre-computed SavedModel inputs/outputs with `Model._saved_model_inputs_spec`
- Make use of the new `tf.data.experimental.assert_cardinality` that can fix a size to a TFRecord or `from_generator` TensorFlow Datasets.
- Drop the Python 2 support such as transformers itself.

Let me know here all your suggestions about this 🙂
