From: 이한종/동작제어Lab(SR)/Engineer/삼성전자 Date: Thu, 26 Apr 2018 09:01:17 +0000 (+0900) Subject: Reduce indent level (#927) X-Git-Tag: 0.1~112 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a66eaa31b0b0de114b13041bdc7a8a6d45f0880f;p=platform%2Fcore%2Fml%2Fnnfw.git Reduce indent level (#927) Signed-off-by: Hanjoung Lee --- diff --git a/tools/tflite_run/src/tflite_run.cc b/tools/tflite_run/src/tflite_run.cc index cc16037..522d321 100644 --- a/tools/tflite_run/src/tflite_run.cc +++ b/tools/tflite_run/src/tflite_run.cc @@ -138,21 +138,16 @@ int main(const int argc, char **argv) assert(status == kTfLiteOk); }; - // NOTE Block is introduced to minimize code diff - // TODO Reduce nesting level + std::cout << "input tensor indices = ["; + for (const auto &o : interpreter->inputs()) { + std::cout << o << ","; + } + std::cout << "]" << std::endl; - std::cout << "input tensor indices = ["; - for (const auto &o : interpreter->inputs()) - { - std::cout << o << ","; - } - std::cout << "]" << std::endl; - - for (const auto &o : interpreter->inputs()) - { - image.AssignTensor(interpreter->tensor(o)); - } + for (const auto &o : interpreter->inputs()) + { + image.AssignTensor(interpreter->tensor(o)); } t_invoke.measure() << [&status, &interpreter, &image](void) {