解决module ‘tensorflow.python.layers.layers’ has no attribute ‘Input

module ‘tensorflow.python.layers.layers’ has no attribute ‘Input’

可能是导包导错啦!

解决方法

更换导的包名

from tensorflow_core.python.keras import models, layers

你可能感兴趣的:(Python,python,tensorflow)