Guest User

Untitled

a guest
Mar 19th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. pool2_flat = tf.reshape(pool2, [-1, 7*7*64])
  2. dense = tf.layers.dense(inputs=pool2_flat, units=1024, activation=tf.nn.relu)
  3. dropout = tf.layers.dropout(inputs=dense, rate=0.4, training = mode == tf.estimator.ModeKeys.TRAIN)
  4.  
  5. logits = tf.layers.dense(inputs=dropout, units=10)
  6.  
  7. predictions = {
  8. "classes": tf.argmax(input=logits, axis=1),
  9. "probabilities": tf.nn.softmax(logits, name="softmax_tensor")
  10. }
Add Comment
Please, Sign In to add comment