Getting error: module 'tensorflow.keras.layers' has no attribute 'Normalization'

Getting error: module 'tensorflow.keras.layers' has no attribute 'Normalization'

我正在使用

tf.keras.layers.Normalization(axis=-1)

并且出现以下错误:

module 'tensorflow.keras.layers' has no attribute 'Normalization'

我正在学习可用的 tensorflow 教程 here. I went through the solution given 并将我的 tensorflow 更新到 v2.6.0。但仍然收到错误。我是张量流的新手。任何帮助将不胜感激。

对于可能正在寻找答案的任何人,我完全放弃了 Anconda 并从头开始设置所有内容。感谢大家的回复。