Skip to content
This repository was archived by the owner on Jan 1, 2021. It is now read-only.

revise some minor typos #69

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions examples/07_convnet_mnist.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import time

import tensorflow as tf
import tf.contrib.layers as layers
import tensorflow.contrib.layers as layers
from tensorflow.examples.tutorials.mnist import input_data

import utils
Expand Down Expand Up @@ -61,7 +61,7 @@
conv1 = tf.nn.relu(conv + biases, name=scope.name)

# output is of dimension BATCH_SIZE x 28 x 28 x 32
conv1 = layers.conv2d(images, 32, 5, 1, activation_fn=tf.nn.relu, padding='SAME')
#conv1 = layers.conv2d(images, 32, 5, 1, activation_fn=tf.nn.relu, padding='SAME')

with tf.variable_scope('pool1') as scope:
pool1 = tf.nn.max_pool(conv1, ksize=[1, 2, 2, 1], strides=[1, 2, 2, 1],
Expand Down Expand Up @@ -177,4 +177,4 @@
accuracy = tf.reduce_sum(tf.cast(correct_preds, tf.float32))
total_correct_preds += sess.run(accuracy)

print("Accuracy {0}".format(total_correct_preds/mnist.test.num_examples))
print("Accuracy {0}".format(total_correct_preds/mnist.test.num_examples))