Commit c3e2ae5e authored by Toby Boyd's avatar Toby Boyd
Browse files

Fixed typos and redudant with CPU:0

parent 3909e4bd
......@@ -162,10 +162,7 @@ def train():
opt = tf.train.GradientDescentOptimizer(lr)
# Get images and labels for CIFAR-10.
# Force input pipeline to CPU:0 to avoid opertaios sometimes ending up on GPU
# and resulting in a slow down.
with tf.device('/CPU:0'):
images, labels = cifar10.distorted_inputs()
images, labels = cifar10.distorted_inputs()
# Calculate the gradients for each model tower.
tower_grads = []
......
......@@ -62,8 +62,8 @@ def train():
global_step = tf.contrib.framework.get_or_create_global_step()
# Get images and labels for CIFAR-10.
# Force input pipeline to CPU:0 to avoid opertaios sometimes ending up
# on GPU and resulting in a slow down.
# Force input pipeline to CPU:0 to avoid operations sometimes ending up on
# GPU and resulting in a slow down.
with tf.device('/CPU:0'):
images, labels = cifar10.distorted_inputs()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment