# RandomFlip not in tfl error

**URL:** <https://community.deeplearning.ai/t/randomflip-not-in-tfl-error/182809>\
**Category:** Convolutional Neural Networks\
**Tags:** coursera-platform\
**Created:** [August 11, 2022, 11:05am UTC](https://community.deeplearning.ai/t/randomflip-not-in-tfl-error/182809 "2022-08-11T11:05:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sathvik\_Appana](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@Sathvik\_Appana](https://community.deeplearning.ai/u/Sathvik_Appana)\
**Post date:** [August 11, 2022, 11:05am UTC](https://community.deeplearning.ai/t/randomflip-not-in-tfl-error/182809/1 "2022-08-11T11:05:29Z")

</div>

Hi, when I try to call tfl.RandomFlip() or tf.keras.layers.RandomFlip() or anything else like it, I keep getting the following error.

 ![image](https://global.discourse-cdn.com/dlai/original/3X/e/6/e601c37bf93d74251e09f1d04a99180c2bdd2446.png)

However, in the RandomFlip documentation, it says the following, and so I’m not sure how I can fix the error I’m getting.

 ![image](https://global.discourse-cdn.com/dlai/original/3X/5/7/57fe8f3ca479626e6cc6ef21534a79999d6eaedc.png)

Any help would be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![anon57530071](https://avatars.discourse-cdn.com/v4/letter/a/46a35a/32.png) [@anon57530071](https://community.deeplearning.ai/u/anon57530071)\
**Post date:** [August 11, 2022, 11:25am UTC](https://community.deeplearning.ai/t/randomflip-not-in-tfl-error/182809/2 "2022-08-11T11:25:10Z")

</div>

It depends on the version of tensorflow.

In the recent release, it is “`tf.keras.layers.RandomFlip`”, but in the older version of Tensorflow, it is " `tf.keras.layers.experimental.preprocessing.RandomFlip`".

I think you refer the document for the latest version of TF, but, Coursera platform uses the older one.

Hope this helps.

---

<div class="post-metadata">

**Author:** ![Sathvik\_Appana](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@Sathvik\_Appana](https://community.deeplearning.ai/u/Sathvik_Appana)\
**Post date:** [August 15, 2022, 3:07pm UTC](https://community.deeplearning.ai/t/randomflip-not-in-tfl-error/182809/3 "2022-08-15T15:07:24Z")

</div>

Thank you! The older version worked
