"examples/vscode:/vscode.git/clone" did not exist on "2f7ca41459da49148664371292063c202d88835b"
Commit c3e2ae5e authored by Toby Boyd's avatar Toby Boyd
Browse files

Fixed typos and redudant with CPU:0

parent 3909e4bd
...@@ -162,9 +162,6 @@ def train(): ...@@ -162,9 +162,6 @@ def train():
opt = tf.train.GradientDescentOptimizer(lr) opt = tf.train.GradientDescentOptimizer(lr)
# Get images and labels for CIFAR-10. # 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. # Calculate the gradients for each model tower.
......
...@@ -62,8 +62,8 @@ def train(): ...@@ -62,8 +62,8 @@ def train():
global_step = tf.contrib.framework.get_or_create_global_step() global_step = tf.contrib.framework.get_or_create_global_step()
# Get images and labels for CIFAR-10. # Get images and labels for CIFAR-10.
# Force input pipeline to CPU:0 to avoid opertaios sometimes ending up # Force input pipeline to CPU:0 to avoid operations sometimes ending up on
# on GPU and resulting in a slow down. # GPU and resulting in a slow down.
with tf.device('/CPU:0'): with tf.device('/CPU:0'):
images, labels = cifar10.distorted_inputs() 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