Skip to content

Commit

Permalink
Initial
Browse files Browse the repository at this point in the history
  • Loading branch information
fjnunes committed Apr 25, 2016
1 parent 58c1781 commit 17f0874
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fully_connected.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def loss(logits, labels):
cross_entropy = tf.nn.softmax_cross_entropy_with_logits(logits,
onehot_labels,
name='xentropy')
loss = tf.add(tf.reduce_mean(cross_entropy, name='xentropy_mean'), tf.nn.l2_normalize(logits, dim=1))
loss = tf.reduce_mean(cross_entropy, name='xentropy_mean')
return loss


Expand Down
Binary file modified output_graph.pb
Binary file not shown.
2 changes: 1 addition & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
flags = tf.app.flags
FLAGS = flags.FLAGS
flags.DEFINE_float('learning_rate', 0.01, 'Initial learning rate.')
flags.DEFINE_integer('max_steps', 40000, 'Number of steps to run trainer.')
flags.DEFINE_integer('max_steps', 20000, 'Number of steps to run trainer.')
flags.DEFINE_integer('hidden1', 128, 'Number of units in hidden layer 1.')
flags.DEFINE_integer('hidden2', 32, 'Number of units in hidden layer 2.')
flags.DEFINE_integer('batch_size', 100, 'Batch size. '
Expand Down

0 comments on commit 17f0874

Please sign in to comment.