Make indent consistent with PEP-8
authorJustin <shenk.justin@gmail.com>
Fri, 24 Nov 2017 17:56:09 +0000 (18:56 +0100)
committerGitHub <noreply@github.com>
Fri, 24 Nov 2017 17:56:09 +0000 (18:56 +0100)
- Changed 2-spacing to 4-spacing
- Make self-consistent indentation

examples/tensorflow/inception_v3/inception-v3.py

index 42c186b5db40617f5bdff1a8c651dd0b5284e323..7154f049a8bfe344a450b2754181ce5ae8cbf213 100644 (file)
@@ -8,16 +8,16 @@ from tensorflow.contrib.slim.nets import inception
 slim = tf.contrib.slim
 
 def run(name, image_size, num_classes):
-  with tf.Graph().as_default():
-    image = tf.placeholder("float", [1, image_size, image_size, 3], name="input")
-    with slim.arg_scope(inception.inception_v3_arg_scope()):
-        logits, _ = inception.inception_v3(image, num_classes, is_training=False, spatial_squeeze=False)
-    probabilities = tf.nn.softmax(logits)
-    init_fn = slim.assign_from_checkpoint_fn('inception_v3.ckpt', slim.get_model_variables('InceptionV3'))
+    with tf.Graph().as_default():
+      image = tf.placeholder("float", [1, image_size, image_size, 3], name="input")
+      with slim.arg_scope(inception.inception_v3_arg_scope()):
+          logits, _ = inception.inception_v3(image, num_classes, is_training=False, spatial_squeeze=False)
+      probabilities = tf.nn.softmax(logits)
+      init_fn = slim.assign_from_checkpoint_fn('inception_v3.ckpt', slim.get_model_variables('InceptionV3'))
 
-    with tf.Session() as sess:
-        init_fn(sess)
-        saver = tf.train.Saver(tf.global_variables())
-        saver.save(sess, "output/"+name)
+      with tf.Session() as sess:
+          init_fn(sess)
+          saver = tf.train.Saver(tf.global_variables())
+          saver.save(sess, "output/"+name)
 
 run('inception-v3', 299, 1001)