Skip to content

Fix CIFAR10 test path #37

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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
4 changes: 2 additions & 2 deletions problems.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def cifar10(path, # pylint: disable=invalid-name
"data_batch_{}.bin".format(i))
for i in xrange(1, 6)]
elif mode == "test":
filenames = [os.path.join(path, "test_batch.bin")]
filenames = [os.path.join(path, "cifar-10-batches-bin/test_batch.bin")]
else:
raise ValueError("Mode {} not recognised".format(mode))

Expand Down Expand Up @@ -258,7 +258,7 @@ def _conv_activation(x): # pylint: disable=invalid-name
use_batch_norm=batch_norm)

if batch_norm:
linear_activation = lambda x: tf.nn.relu(snt.BatchNorm()(x))
linear_activation = lambda x: tf.nn.relu(snt.BatchNorm()(x, is_training=True))
else:
linear_activation = tf.nn.relu

Expand Down