Skip to content

Commit

Permalink
Set mode
Browse files Browse the repository at this point in the history
  • Loading branch information
raviqqe committed Dec 24, 2016
1 parent 31166b5 commit 4ab996b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/mnist/mnist.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def minimize(loss):
"Adam")


def mnist_model(image, number):
def mnist_model(image, number, mode):
h = tf.contrib.layers.fully_connected(image, 200)
h = tf.contrib.layers.fully_connected(h, 10, activation_fn=None)

Expand All @@ -50,7 +50,8 @@ def mnist_model(image, number):
predictions=predictions,
loss=loss,
train_op=train_op,
eval_metric_ops=eval_metric_ops)
eval_metric_ops=eval_metric_ops,
mode=mode)

return predictions, loss, train_op, eval_metric_ops

Expand Down

0 comments on commit 4ab996b

Please sign in to comment.