From 5647e6517d3cf5a658c7de03b37def9ece2c8ff0 Mon Sep 17 00:00:00 2001 From: dolphin8 Date: Tue, 12 Jun 2018 15:38:20 +0800 Subject: [PATCH] clang-format fix style --- src/io/io.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/io/io.cpp b/src/io/io.cpp index b1906fb333..7afb44bb45 100644 --- a/src/io/io.cpp +++ b/src/io/io.cpp @@ -346,24 +346,24 @@ std::shared_ptr Executor::Predict( for (int j = 0; j < ops_of_block_[*to_predict_block.get()].size(); ++j) { auto op = ops_of_block_[*to_predict_block.get()][j]; #ifdef PADDLE_MOBILE_PROFILE - _profile[op->Type()] = clock(); + _profile[op->Type()] = clock(); #endif op->Run(); #ifdef PADDLE_MOBILE_PROFILE - _profile[op->Type()] = clock() - _profile[op->Type()]; + _profile[op->Type()] = clock() - _profile[op->Type()]; #endif } #ifdef PADDLE_MOBILE_PROFILE { DLOG << "========================[ profile ]=========================="; clock_t _ptotal = 0; - for (auto const & p : _profile) { + for (auto const &p : _profile) { _ptotal += p.second; } - for (auto const & p : _profile) { - DLOG << p.first << std::string(16-p.first.size(), ' ') - << "\t" << (float)p.second - << "\t\t" << (float)p.second / (float)_ptotal * 100.0; + for (auto const &p : _profile) { + DLOG << p.first << std::string(16 - p.first.size(), ' ') << "\t" + << (float)p.second << "\t\t" + << (float)p.second / (float)_ptotal * 100.0; } DLOG << "========================[ ]=========================="; } -- GitLab