TensorFlow知识点总结

1 iter和next

原文链接:https://blog.csdn.net/weixin_43544406/article/details/103091988

2 summary

model = Sequential ([ 
    layers.Dense(256, activation = tf.nn.relu), #[m, 784] => [m,256]
    layers.Dense(128, activation = tf.nn.relu), #[m, 256] => [m,128]
    layers.Dense(64, activation = tf.nn.relu), #[m, 128] => [m,64]
    layers.Dense(32, activation = tf.nn.relu), #[m, 64] => [m,32]
    layers.Dense(10) #[m, 32] => [m,10]  
])
# model = Sequential([
#     layers.Dense(512, activation= tf.nn.relu), #dense 全链接
#     layers.Dense(256, activation='relu'),
#     layers.Dense(10)
# ])
model.build(input_shape = [None, 28*28])
model.summary() #打印网络结构

3 zip

原文链接:https://www.cnblogs.com/liuhuacai/p/11732198.html

 

展开阅读全文

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 编程工作室 设计师: CSDN官方博客
应支付0元
点击重新获取
扫码支付

支付成功即可阅读