I am trying to run a project. My TensorFlow version is 2.9.2. I need to import BatchNormalization, but I cannot import it. Here is the error message: AttributeError: module 'tensorflow.python.keras.layers' has no attribute 'BatchNormalization' enter image description here enter image description here
I need to import BatchNormalization from TensorFlow.
This works for me ->
just remove .python from your code