提交 d0d877a4 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!2841 Fix optimizer step counter bug

Merge pull request !2841 from Kang/master
......@@ -184,7 +184,8 @@ class Optimizer : public std::enable_shared_from_this<Optimizer> {
}
}
};
use_profile ? (WITH(MsProfile::GetProfile()->Lap(counter++)) run_runc) : run_runc();
use_profile ? (WITH(MsProfile::GetProfile()->Lap(counter)) run_runc) : run_runc();
counter++;
if (run_only_once_) {
break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册