add brackets and new line
authorKoan-Sin Tan <koansin.tan@gmail.com>
Wed, 31 Jan 2018 05:22:54 +0000 (13:22 +0800)
committerKoan-Sin Tan <koansin.tan@gmail.com>
Wed, 31 Jan 2018 05:25:04 +0000 (13:25 +0800)
Add curly brackets and new line to address the format problem
mentioned in review.

tensorflow/contrib/lite/examples/label_image/bitmap_helpers_impl.h

index 942906e26983bacf2d44c0581d6c08f76439298c..33ea695dda8a27ab2f0dd1c75538833debb26b95 100644 (file)
@@ -67,7 +67,9 @@ void resize(T* out, uint8_t* in, int image_height, int image_width,
   // fill input image
   // in[] are integers, cannot do memcpy() directly
   auto input = interpreter->typed_tensor<float>(0);
-  for (int i = 0; i < number_of_pixels; i++) input[i] = in[i];
+  for (int i = 0; i < number_of_pixels; i++) {
+    input[i] = in[i];
+  }
 
   // fill new_sizes
   interpreter->typed_tensor<int>(1)[0] = wanted_height;