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
相關文章
相關標籤/搜索