bryanlimy / tf2-transformer-chatbot

Transformer Chatbot in TensorFlow 2 with TPU support.
MIT License
130 stars 58 forks source link

AttributeError: module 'tensorflow.python.keras.api._v2.keras.layers' has no attribute 'LayerNormalization' #4

Closed lucasjinreal closed 5 years ago

lucasjinreal commented 5 years ago

Why does this got?

AttributeError: module 'tensorflow.python.keras.api._v2.keras.layers' has no attribute 'LayerNormalization'
bryanlimy commented 5 years ago

Hi, tensorflow==2.0.0-alpha0 has LayerNormalization under tf.keras.layers.experimental, whereas the latest nightly version or tensorflow==2.0.0-beta0 has it under tf.keras.layers, so please update your TF version :)

lucasjinreal commented 5 years ago

@bryanlimy Thanks! beta is just arrived!