TensorFlow 2.0 笔记(三)—— 神经网络与全链接层

全链接层 自动推导输入数据的格式html x = tf.random.normal([4, 784]) net = tf.keras.layers.Dense(512) out = net(x) out.shape net.kernel.shape,net.bias.shape net.build() 可屡次build 预先设置输入格式,若是不匹配,不能输入python net = tf.kera
相关文章
相关标签/搜索