dragen1860 / Deep-Learning-with-TensorFlow-book

深度学习入门开源书,基于TensorFlow 2.0案例实战。Open source Deep Learning book, based on TensorFlow 2.0 framework.
http://www.ai101edu.com
13.2k stars 4.08k forks source link

【4.5.2 向量】In[43] 中对 layers.Dense没有进行导包 #85

Closed youngxhui closed 4 years ago

youngxhui commented 4 years ago

书中的代码并没有对 tf.keras 进行处理,这里直接使用 layers.Dense 会报错。建议改为 fc = tf.keras.layers.Dense(3)

image

youngxhui commented 4 years ago

该章节 In[45] 同样的问题 image

youngxhui commented 4 years ago

image

同上

dragen1860 commented 4 years ago

目前layers, keras等常用包都是默认导入的。谢谢反馈!