Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pool2_flat = tf.reshape(pool2, [-1, 7*7*64])
- dense = tf.layers.dense(inputs=pool2_flat, units=1024, activation=tf.nn.relu)
- dropout = tf.layers.dropout(inputs=dense, rate=0.4, training = mode == tf.estimator.ModeKeys.TRAIN)
- logits = tf.layers.dense(inputs=dropout, units=10)
- predictions = {
- "classes": tf.argmax(input=logits, axis=1),
- "probabilities": tf.nn.softmax(logits, name="softmax_tensor")
- }
Add Comment
Please, Sign In to add comment