【发布时间】:2022-01-18 11:58:55
【问题描述】:
当我尝试时:
normalization_layer = layers.Rescaling(1./255)
错误信息:
AttributeError: module 'tensorflow.keras.layers' has no attribute 'Rescaling'
如何解决?
【问题讨论】:
-
您可能使用了错误的 tf 版本。
-
你使用的是哪个 tensorflow 版本?
标签: tensorflow keras