提交 5647e651 编写于 作者: D dolphin8

clang-format fix style

上级 8016ce5d
......@@ -357,13 +357,13 @@ std::shared_ptr<framework::Tensor> Executor<Dtype, P>::Predict(
{
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 << "========================[ ]==========================";
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册