Deep-Learning-with-TensorFlow-book
Deep-Learning-with-TensorFlow-book copied to clipboard
6.3.2代码问题
作者你好,6.3.2中写的是model = layers.Sequential([...])
,但是报错,layers没有Sequential域
经过查阅后,发现写法model = keras.Sequential() model.add(...)
可行
尝试后发现,将layers.Sequential([...])
改为tf.keras.Sequential([...])
即可