mirror of
https://github.com/zebrajr/tensorflow.git
synced 2026-01-15 12:15:41 +00:00
Typo fix in file 'fully_connected_feed.py' (#14033)
* Typo fix in file 'fully_connected_feed.py' * Minor edits to coding style
This commit is contained in:
committed by
Benoit Steiner
parent
3c8ade09e7
commit
d9cee35b66
@@ -109,7 +109,7 @@ def do_eval(sess,
|
||||
labels_placeholder)
|
||||
true_count += sess.run(eval_correct, feed_dict=feed_dict)
|
||||
precision = float(true_count) / num_examples
|
||||
print(' Num examples: %d Num correct: %d Precision @ 1: %0.04f' %
|
||||
print('Num examples: %d Num correct: %d Precision @ 1: %0.04f' %
|
||||
(num_examples, true_count, precision))
|
||||
|
||||
|
||||
|
||||
@@ -82,7 +82,7 @@ def deepnn(x):
|
||||
W_fc1 = weight_variable([7 * 7 * 64, 1024])
|
||||
b_fc1 = bias_variable([1024])
|
||||
|
||||
h_pool2_flat = tf.reshape(h_pool2, [-1, 7*7*64])
|
||||
h_pool2_flat = tf.reshape(h_pool2, [-1, 7 * 7 * 64])
|
||||
h_fc1 = tf.nn.relu(tf.matmul(h_pool2_flat, W_fc1) + b_fc1)
|
||||
|
||||
# Dropout - controls the complexity of the model, prevents co-adaptation of
|
||||
|
||||
Reference in New Issue
Block a user